Repo Memory and Durable State

Chat history is volatile. The repo is durable. The workbench stores agent state in versioned files so the next session, the next agent, and the next reviewer all read from the same source of truth.

Build 1 hr Python (stdlib + `jsonschema` optional)

Prerequisites: Phase 14 · 32 (Minimal Workbench)

#Learning Objectives

  • Define what belongs in repo memory and what belongs in chat history.
  • Author JSON Schemas for agent_state.json and task_board.json.
  • Build a state manager that loads, validates, mutates, and persists state atomically.
  • Use the schema to refuse bad writes before they corrupt the workbench.
Full Access lesson

Keep going. The rest of this lesson is one step away.

Unlock all 503 lessons, video, code, quizzes and every future update. Pay in your own currency with Paystack.

The text and code of this lesson are based on AI Engineering from Scratch by Rohit Ghumare, MIT licensed.