8 built-in modes with tool guardrails — switch with /mode <name> or let kbcode auto-pick the right one.
The default mode. Full read, write, edit, and command execution. kbcode starts here and auto-switches into lighter modes when the task fits (asking a question, planning, debugging). Use this for any hands-on coding work.
/mode code or auto-selected on task detectionHigh-level design & planning. Reads the codebase and proposes architecture, but cannot edit or run anything. Perfect for planning a feature before implementing it. When auto_handoff is on, the plan seamlessly hands off to code mode for implementation.
/mode architectRead-only Q&A. Can read files, search the codebase, and answer questions — but never edits or runs commands. Safe for exploration and learning without risk of accidental changes.
/mode askTriage & systematic failure analysis. Reproduces the bug, isolates the root cause, then applies the smallest fix. Never guesses — reads code, runs diagnostics, and states the cause plainly before patching.
/mode debugGathers requirements before building. When a new goal or feature needs clarification, driven mode asks the right questions first — scope, constraints, preferences — then hands off to code mode once everything is clear. Never builds on assumptions.
/mode drivenSelf-prompting autonomous mode. Plans todos with manage_todos and drives itself to completion — no waiting for user input between steps. Capped at 25 self-prompts per turn to prevent runaway loops.
/mode pilotDecompose & delegate. Breaks a large job into independent pieces, delegates each to a specialist subagent (autopilot, code-explorer, fixer), and stitches the results into one report. Subagents run concurrently for speed.
/mode orchestratorAutonomous multi-phase execution. Breaks complex work into independent phases, verifies each result as it completes, and stitches everything together — no context pollution between phases. Ideal for large tasks that benefit from a clean slate at each step.
/mode agiCreate your own mode. Write a .kbcode/modes/<name>.md file with your own instructions and tool permissions. Pin a model to it so switching modes also switches the AI. kbcode hot-loads it — no restart needed.
/mode <name> in chat, or write the .md file directly