Claude Code's built-in todo system gives long agent sessions a persistent, structured task list the model reads and writes between tool calls. This post explains how TodoWrite and the Task tools work, when to opt in, and how the underlying pattern keeps autonomous agents honest across hundreds of turns.