02Chapter 2: What state has to surviveThis chapter assumes you can read basic Python, JSON, and Markdown. It also assumes you know how an LLM agent calls tools in a loop, and that processes and files are familiar to you.2 min read
03Chapter 3: Breaking work into resumable stepsThis chapter assumes you can read basic Python and JSON. It also assumes you know how an agent calls tools in a loop. A long task survives interruption only if it is split into steps with clear boundaries. Here you will learn how to choose those boundaries and how to make each step safe to run twice3 min read
04Chapter 4: Making steps safe to repeatThis chapter assumes you can read basic Python and know that a long task is split into steps. It also assumes you know a crash can interrupt a step partway through.2 min read
05Chapter 5: Saving checkpointsThis chapter assumes you can read Python and JSON, know that an agent calls tools in a loop, and understand that a process can be killed at any moment. It also assumes you have read the earlier chapters on task state and on breaking work into repeatable steps.3 min read
06Chapter 6: Writing checkpoints atomicallyThis chapter assumes you can read basic Python, know what JSON is, and understand that a process can be killed at any moment. It covers how to write a checkpoint file so that a crash never leaves a corrupt one.3 min read
07Chapter 7: Keeping a progress fileThis chapter assumes you can read Markdown and write Python that handles files. It also assumes you know what a checkpoint is: machine state saved after each step.2 min read
08Chapter 8: Resuming from saved stateThis chapter assumes you have read the previous chapters on checkpoints and progress files. You should know how to write a checkpoint atomically and what a progress file records. You also need basic Python and JSON.2 min read
09Chapter 9: Checking saved state against realityA checkpoint records what the agent believed was true when it saved. Between the save and the resume, the world may have changed. This chapter shows how to compare saved state with the real system before you continue. It assumes you have read the chapters on checkpoints, progress files, and the resu2 min read
10Chapter 10: Handing work to another agent or personThis chapter assumes you can read the checkpoint and progress-file examples from earlier chapters and know how a resume routine skips finished steps. A handoff applies the same ideas to a new reader.2 min read
11Chapter 11: What a good handoff note containsThis chapter assumes you have read the earlier chapters on checkpoints and progress files. It also assumes you can read Markdown and JSON, and that you know a new agent or person starts with none of the previous session's memory.2 min read
12Chapter 12: Avoiding conflicting writersThis chapter assumes you have read the chapters on checkpoints and atomic writes. It also assumes you know basic Python file handling. Atomic writes protect a file from a crash. They do not protect it from a second writer.3 min read
13Chapter 13: Common failure modes and how to spot themThis chapter assumes you can read Python, know how an agent calls tools in a loop, and have read the earlier chapters on checkpoints, progress files, resuming, and handoffs. Saved state keeps a long task alive, but it can also fail in quiet ways. Each failure below comes with a symptom you can look 3 min read