Skip to main content

Start Planning

Starts a new planning session. Claude will explore the codebase and generate tasks. Request Body:
Response:
Returns 409 if a planning session is already active for the project.

Get Status

Check whether a planning session is currently running. Response (active):
Response (inactive):

Cancel Planning

Stops the active planning session and kills the Claude process. Response:
Returns 404 if no active planning session exists.

WebSocket Events

Planning progress is streamed via Socket.IO events:

plan:started

Emitted when a planning session begins.

plan:phase

Emitted when the planning phase changes.
Phases: startingexploringwriting → (completed)

plan:progress

Emitted when Claude produces text output.

plan:log

Emitted for tool calls and results.
Types: tool, result, error, phase

plan:stats

Emitted after each Claude turn with updated usage stats.

plan:completed

Emitted when planning finishes. Contains the created tasks.

plan:cancelled

Emitted when a planning session is manually cancelled.