Agent Integrations
todos.md gives agents a task API they can trust. Agents should read the backlog, claim work, update status, and report what changed.
Supported hosts
| Agent | Expected setup |
|---|---|
| Codex | CLI, MCP, and API key access to the hosted workspace. |
| Claude Code | MCP and API key access with task and run tools. |
| Takumi | CLI, MCP, and API key access for hosted plan execution. |
| OpenCode | MCP registration through the host config. |
| Antigravity | MCP and API key access through the agy host. |
| MCP hosts | Any host that can call the todos MCP gateway. |
Adapter contracts
The first-class hosted adapters are Codex, Claude Code, and Takumi. Each adapter uses the same project, todos, plan, and run contract so a plan can move between hosts without changing task state.
| Adapter | Surfaces | Goal command |
|---|---|---|
| Codex | CLI, MCP, API | /goal execute <plan-id> with todos.md |
| Claude Code | MCP, API | /goal execute <plan-id> through todos MCP |
| Takumi | CLI, MCP, API | /goal execute <plan-id> with takumi |
Hosted setup
- Install the public local package with Bun.
- Register the
todosMCP server for the host agent. - Create a scoped hosted API key for tasks, plans, runs, and storage.
- Store the key in the agent environment as
PLATFORM_TODOS_API_KEY.
bun install -g @hasna/todostodos mcp --register codextodos mcp --register claudetodos mcp --register allCheck available surfaces
platform-todos docs catalog --surface mcpAgent flow
- Read the current task list.
- Claim one task.
- Work in the repo.
- Add comments when state changes.
- Mark the task done only after verification.
Plan execution contract
Every hosted adapter follows the same steps:
- Resolve the active project.
- Read the plan and ordered task graph.
- List tasks and skip blocked dependencies.
- Claim exactly one task.
- Add progress comments during execution.
- Run the agent against the requested plan step.
- Upload verification evidence, logs, receipts, or artifacts.
- Comment with the verification commands and evidence references.
- Complete the task only after evidence exists.
- Report safe failure details if execution cannot finish.
Verification evidence upload uses /api/v1/runs/{runId}/artifacts/upload-url and must include run id, content type, byte size, file name, and checksum.
Clear failure messages
| Failure | Agent behavior |
|---|---|
| Missing auth | Create a scoped API key before claiming work. |
| MCP unavailable | Re-register the host MCP server and retry without changing task state. |
| Plan blocked | Add a blocker comment and stop downstream execution. |
| Evidence missing | Upload logs or command output before completion. |
| Unknown failure | Preserve safe run logs and report the last non-secret error. |
MCP tools
The MCP gateway should expose tasks, projects, runs, feedback, docs, and organization context from the same API as the CLI.