JJ Pointer Flow
When JJ is installed and the workspace is a JJ repository:- A task executes, making filesystem changes via agent tools.
- The task completes (success or failure).
- Smithers captures the JJ change/operation ID into
_smithers_attempts.jj_pointer. - The next task continues from this point.
Recorded Data
| Column | Type | Description |
|---|---|---|
jj_pointer | text (nullable) | JJ change/operation ID after attempt completion. null if JJ unavailable. |
Revert
RevertStarted and RevertFinished events.
Without JJ
jj_pointerisnullfor all attempts.revertfails with an error.- All other Smithers functionality is unaffected.
Setup
Programmatic Helpers
Smithers exports helpers for running rawjj commands, checking repo status, reading/restoring pointers, and managing JJ workspaces. See VCS Helper Reference.
Cache Key Integration
JJ pointers are included in the cache key when caching is enabled (<Workflow cache> or { cache: true }):
| Component |
|---|
| Workflow name + nodeId |
| Prompt text or static payload |
| Model ID and parameters |
| Tool allowlist and versions |
| Output schema signature |
| JJ pointer |
Next Steps
- Resumability — Crash recovery and state persistence.
- Caching — Cache key mechanics.
- CLI Reference — All CLI commands including
revert.