---
title: "Todo list pattern for AI agents | Agentic Pattern Language"
description: "The agent keeps a task list in its context and rewrites it as it works, so the goal stays in view. Sourced from Manus, Cursor, and Anthropic."
url: https://agenticpatternlanguage.com/patterns/todo-list/
---

27 [One agent](https://agenticpatternlanguage.com/#one-agent)

# Todo list

The agent keeps a task list in its context and rewrites it as it works, so the goal stays in view.

Also called Task planning

Manus, Cursor, Anthropic, LangChain

[How to read this](https://agenticpatternlanguage.com/notation/)

## Part of

* [Agent loop](https://agenticpatternlanguage.com/patterns/agent-loop/)

## Alternatives

* [Structured note-taking](https://agenticpatternlanguage.com/patterns/structured-note-taking/)
* [Plan-and-execute](https://agenticpatternlanguage.com/patterns/plan-and-execute/)

## The problem

Over a long run of tool calls, an agent drifts off-topic or forgets its earlier goals.

> A typical task in Manus requires around 50 tool calls on average. That's a long loop—and since Manus relies on LLMs for decision-making, it's vulnerable to drifting off-topic or forgetting earlier goals, especially in long contexts or complicated tasks.

Manus [Context Engineering for AI Agents: Lessons from Building Manus](https://manus.im/blog/Context-Engineering-for-AI-Agents-Lessons-from-Building-Manus)

## Therefore

> In a session that has the task-tracking tools, Claude keeps a written todo list, updating each item’s status as it works.

Anthropic [Track todos](https://platform.claude.com/docs/en/agent-sdk/todo-tracking)

> By constantly rewriting the todo list, Manus is reciting its objectives into the end of the context.

Manus [Context Engineering for AI Agents: Lessons from Building Manus](https://manus.im/blog/Context-Engineering-for-AI-Agents-Lessons-from-Building-Manus)

> Task planning is an opt-in harness capability that lets agents maintain a structured task list during execution.

LangChain [Deep Agents overview](https://docs.langchain.com/oss/python/deepagents/overview)

## In use

Manus

> If you've worked with Manus, you've probably noticed something curious: when handling complex tasks, it tends to create a todo.md file—and update it step-by-step as the task progresses, checking off completed items.

Manus [Context Engineering for AI Agents: Lessons from Building Manus](https://manus.im/blog/Context-Engineering-for-AI-Agents-Lessons-from-Building-Manus)

Claude Code

> In a session that has the task-tracking tools, Claude creates todos for most multi-step work

Anthropic [Track todos](https://platform.claude.com/docs/en/agent-sdk/todo-tracking)

Cursor

> Agents now plan ahead with structured to-do lists, making long-horizon tasks easier to understand and track.

Cursor [Agent Planning, Better Context & Faster Tab](https://cursor.com/changelog/1-2) Jul 3, 2025

## Where it breaks

Newer models track multi-step work without one, and some harnesses now leave it off by default.

> Newer models track multi-step work without a written todo list

Anthropic [Track todos](https://platform.claude.com/docs/en/agent-sdk/todo-tracking)

> Starting in v0.7 task planning is opt-in only. In earlier versions, task planning middleware was included by default.

LangChain [Deep Agents overview](https://docs.langchain.com/oss/python/deepagents/overview)

## Sources

1. [Context Engineering for AI Agents: Lessons from Building Manus](https://manus.im/blog/Context-Engineering-for-AI-Agents-Lessons-from-Building-Manus) Yichao 'Peak' Ji, Manus
2. [Agent Planning, Better Context & Faster Tab](https://cursor.com/changelog/1-2) Cursor, Jul 3, 2025
3. [Track todos](https://platform.claude.com/docs/en/agent-sdk/todo-tracking) Anthropic
4. [Deep Agents overview](https://docs.langchain.com/oss/python/deepagents/overview) LangChain

Added Nov 14, 2026
