Skip to content

Replace plan mode with TodoList in co ai workflow #121

@wu-changxing

Description

@wu-changxing

Problem

The current co ai agent workflow forces plan mode (enter_plan_modewrite_planexit_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 → edit agent.py directly. No planning needed.
  • Complex agents: Use todo to 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_plan tools from co ai
  • Remove tools/enter_plan_mode.md prompt
  • Remove system-reminders/plan_mode.md reminder
  • Update workflow.md to use TodoList-based approach
  • Update main.md references 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions