@agimon-ai/po-plan
Reviewable Pi planning mode that removes file-editing tools and persists implementation plans.
Package details
Install @agimon-ai/po-plan from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@agimon-ai/po-plan- Package
@agimon-ai/po-plan- Version
0.0.0-alpha.232- Published
- Dec 6, 2026
- Downloads
- 28.5K/mo · 6,428/wk
- Author
- agiflow-ai
- License
- FSL-1.1-MIT
- Types
- extension
- Size
- 1.2 MB
- Dependencies
- 8 dependencies · 4 peers
Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
@agimon-ai/po-plan
Explore a repository read-only, save a plan, and ask for explicit approval before implementation.
The seeded presets.yaml selects Plan in default.packages. It starts inactive and requires Node.js 24 or newer.
Planning and approval
Choose Plan in the mode menu or send /mode plan.
Normal planning explores the repository and delegates where available. Debug planning separates verified evidence from hypotheses and provides record_debug_evidence (or plan.recordDebugEvidence in code mode) to record verified facts and diagnostic observations. Custom plan modes can also be defined in host (~/.po/config.yaml) or workspace (.po/config.yaml) configuration and appear in the Plan picker after normal and debug. All plan modes use the same stored-plan and explicit exit-approval flow.
Plan withholds Bash, file editing and other implementation tools. On hosts that dispatch code-mode operations through Po's hooks, Plan refuses unlisted operations and checks them again on approval replay. New Team delegates receive inspection tools only, without MCP tools or extensions. Plan saving and review remain available.
Plan is not a sandbox. It does not stop work that was already running, revoke native modules already loaded by a script, or constrain other sessions.
In code mode, Plan exposes the plan namespace (plan.writePlan(markdown?) and plan.recordDebugEvidence) in place of the direct write_plan and record_debug_evidence tools; complete_plan remains a direct tool. Without code mode, the agent uses write_plan and record_debug_evidence directly.
Present a complete Markdown plan with an H1, then save it with plan.writePlan(markdown?) (or write_plan). Code Mode returns { path, written: true }. The tool saves a unique file under the session artifact folder's plans/ directory when artifacts are available. Otherwise it uses plansDirectory, defaulting to ~/.po/plans.
After saving, complete_plan asks whether to start implementation or continue planning. Only the person's explicit exit approval ends planning. If the previous model is unavailable, Plan exits and warns that it could not restore that model.
Managing custom plan modes (planAdmin)
In Help mode, the planAdmin code-mode namespace manages custom plan modes for the main agent:
planAdmin.list()lists custom plan modes shown afternormalanddebug, their source scope, any modes beyond the 30-mode cap (hidden), and read errors.planAdmin.save({ scope, id, label, description?, brief })creates or replaces a custom mode inhost(~/.po/config.yaml) orworkspace(.po/config.yaml) config with host-owner approval. Workspace entries override host entries with the same ID.planAdmin.remove({ scope, id })removes a mode from the specified scope with host-owner approval.planAdmin.reload()rereads both configuration files after manual edits and refreshes open pickers.
Review and edit
The Activity dock's Plan row opens the saved document. Its source view saves edits back to that file and rejects a stale save instead of overwriting a newer version. If that happens, copy your draft before reloading, reconcile it with the latest file, and save again (not verified live). The agent rereads the saved plan on each turn. The row remains available after implementation starts.
The session API is mounted under /api/workspaces/<workspace-id>/sessions/<session-id>/plugins/plans. Rebuild and reload the owning host after package changes; editing source alone does not update a running client.
Configuration
Set planning models and fallback storage in host ~/.po/config.yaml or repository .po/config.yaml:
modes:
planning:
main:
model: provider/planning-model
thinking: high
subagents:
model: provider/research-model
thinking: medium
plansDirectory: ~/.po/plans
main controls the planner and subagents the delegated research defaults. Provider calls consume quota. The fallback directory can be absolute, repository-relative, or under ~; session artifacts take precedence.
Development
Run pnpm build, pnpm typecheck, pnpm test, and pnpm lint from this package.
License
Functional Source License 1.1, MIT Future License (FSL-1.1-MIT): free for any purpose except a Competing Use; each version converts to MIT two years after release. See LICENSE.