Plan mode for Sero — read-only code exploration with progress-tracked plan execution.
Plan mode restricts the agent to read-only tools so it can safely explore a codebase, build a step-by-step plan, then execute it with full tool access and live progress tracking.
| Mode | Tools | Description |
|---|---|---|
| Normal | Full access | Default — no restrictions |
| Plan | Read-only | Bash is filtered to an allowlist of safe commands. Agent creates a numbered plan via plan_todos. |
| Execute | Full access | Agent works through plan steps in order, marking each done via plan_todos. |
| Command | Description |
|---|---|
/plan |
Toggle plan mode on / off |
/plan-execute |
Start executing the current plan |
/plan-todos |
Show current plan progress in chat |
Bundled skill (skills/plan-exit-review/SKILL.md) that provides a thorough
plan review workflow before implementation — challenges scope, architecture,
code quality, tests, and performance.
Install in Sero → Admin → Plugins with:
git:https://github.com/monobyte/sero-plan-mode-tracker.git
Sero clones the source repo, installs dependencies, builds the UI, and hot-loads the plugin into the sidebar.
Install as a Pi package:
pi install git:https://github.com/monobyte/sero-plan-mode-tracker.gitThe agent gains the plan_todos tool, /plan, /plan-execute, and
/plan-todos commands, plus the --plan flag for starting in plan mode.
npm install
npm run build # Build UI → dist/ui/remoteEntry.js
npm run typecheck # Typecheck UI (zero errors required)
npm run dev # Dev server on port 5180workspace-root/
└── .sero/
└── apps/
└── planmode/
├── state.json # Current mode + steps
├── index.json # Archive manifest
└── plan-*.json # Archived completed plans
{
"mode": "plan",
"steps": [
{ "step": 1, "text": "Analyse the auth module", "completed": false },
{ "step": 2, "text": "Refactor token validation", "completed": false }
]
}Both the Pi extension (write) and web UI (read via useAppState) share
this file. Changes from the agent are reflected instantly in the UI.