Skip to content

[Opportunity] Kimi CLI — Plan Mode Implementation #4

@howardpen9

Description

@howardpen9

Target Project

Kimi CLI (MoonshotAI/kimi-cli)

Related Issue(s)

What

Implement a plan mode where users can:

  1. Ask the agent to create a step-by-step plan before executing
  2. Review and edit the plan
  3. Approve execution step by step or all at once
  4. Track progress through the plan

Why

Prior Art

Claude Code

  • Toggle with Shift+Tab or /plan command
  • Creates numbered step list
  • User can edit steps before execution
  • Integrated with permission system

OpenCode

  • Similar plan/execute flow
  • Subagent session forking for plan exploration

Implementation Plan

  1. Add plan mode state to agent session (planning vs executing)
  2. Create plan data structure (steps, status, dependencies)
  3. Add /plan command or Ctrl-P toggle
  4. Render plan in TUI with step status indicators
  5. Allow step editing before execution
  6. Execute steps sequentially with approval gates
  7. Resume from failed step

Estimated Effort

Large (2-3 weeks)

Status

  • Research complete
  • Implementation started
  • PR submitted
  • PR merged

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions