-
Notifications
You must be signed in to change notification settings - Fork 98
Replace plan mode with TodoList in co ai workflow #121
Description
Problem
The current co ai agent workflow forces plan mode (enter_plan_mode → write_plan → exit_plan_and_implement) every time a user wants to create an agent. This is over-engineered for simple agents where the tools are obvious.
Plan mode has dedicated tools, READ-ONLY restrictions, a YAML spec format, and a rigid enter/exit workflow — all for something that a TodoList can handle more naturally.
Proposal
Replace plan mode with the existing TodoList tool for agent creation workflow:
- Simple agents:
co create→ editagent.pydirectly. No planning needed. - Complex agents: Use
todoto break down the work into steps, then execute them. The user can see progress and provide feedback naturally.
TodoList is more flexible — it doesn't lock the agent into a read-only mode, doesn't require a rigid YAML format, and lets the agent work incrementally.
Changes needed
- Remove
enter_plan_mode,exit_plan_and_implement,write_plantools from co ai - Remove
tools/enter_plan_mode.mdprompt - Remove
system-reminders/plan_mode.mdreminder - Update
workflow.mdto use TodoList-based approach - Update
main.mdreferences to plan mode - Remove plan mode plugin from agent.py tool list
Context
Part of the system prompt simplification effort — the base prompt was already reduced from ~25,800 to ~12,186 chars by making workflow/index/examples load on-demand via intent detection.