2 min lesson
Resume one local review Agent
Persist one local review Run, restart the process and prove the same Agent and delegated finding return.
Step 1 of 2
Put the JSONL state in an access-controlled directory outside the repository. JsonlLocalAgentStore writes agents.ndjson, runs.ndjson, run_events.ndjson and checkpoints.ndjson there. Create one code-reviewer subagent with a prompt limited to the current authentication diff. Save agentId, run.id and requestId after its review. Close the process, create another JsonlLocalAgentStore for the same directory and call Agent.resume with the saved Agent ID, cwd and store. Ask a follow-up about the earlier finding, then load the stored Run with the same store. The resumed answer, four files and preserved requestId prove that the worker reopened the same state.
Learn more
Optional practice
Test yourself on Resume one local review Agent
QWhich evidence proves the review worker resumed the same local Agent?