Engages formal planning mode. Instead of immediately modifying code or running potentially destructive terminal commands, the agent performs read-only exploration of the codebase, identifies all touchpoints, outlines architectural options, assesses operational risk, and produces a structured plan for operator review before execution.
/plan Migrate the HTTP server in server.js from static file routing to an Express-compatible middleware pipeline with rate-limiting.
1. Agent scans server.js, package.json, and public/ assets using read-file and codebase-search.
2. Formulates an execution artifact detailing:
- Target architecture & middleware order (logger -> security headers -> rate-limiter -> static).
- Compatibility impact on reverse-proxy (Nginx port 3302).
- Step-by-step phased rollout with rollback plan.
3. Pauses and requests operator sign-off before making edits.