Install
Install with PiG
pig install npm:@justjoshn/pi-modesInstall with Pi
pi install npm:@justjoshn/pi-modesReview before installing
Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"extensions": [
"./src/index.ts"
]
}README
Written by the package's publisher, shown as published in version 0.1.3 (README.md). PiG does not review it.
@justjoshn/pi-modes
Four Pi-native execution modes for Pi (part of the no-ceilings package suite):
| Mode | Purpose | Tool Access & Behavior |
|---|---|---|
| Agent | Default full-capability agent execution | Full active tools; tracks plan execution steps ([DONE:n]) with a live progress widget |
| Ask | Read-only Q&A and code explanation | Disables edit/write; blocks mutating bash commands; injects read-only Q&A guidance |
| Plan | Read-only exploration and structured planning | Disables edit/write; blocks mutating bash; provides ask_question and create_plan (a .plan.md in ~/.pi/agent/plans/ with a session header and YAML todos when present, plus phases for project plans); interactive Ready to build? flow |
| Debug | Hypothesis-driven runtime debugging | Starts a local NDJSON HTTP ingest server (127.0.0.1:7242-7942/ingest/<uuid>) writing to .pi/debug-<6-char-id>.log; live Runtime Logs widget; <reproduction_steps> interactive Proceed / Mark as fixed / Follow-up flow |
Commands & Shortcuts
Ctrl+Alt+M— Cycle modes:Agent → Plan → Debug → AskCtrl+Alt+P— Toggle Plan mode/mode [agent|plan|debug|ask]— Switch mode directly or open picker/agent [<prompt>]— Switch to Agent mode (optionally submitting a prompt)/plan [<prompt>]— Enter Plan mode, submit a planning prompt, or review an existing plan/ask [<prompt>]— Toggle Ask mode or submit a read-only question/debug [<prompt>]— Toggle Debug mode or submit a debugging prompt/logs— Show the current Debug NDJSON log path and recent entries
CLI Flags
--mode <agent|plan|debug|ask>--plan(shorthand for--mode=plan)
Tools Registered
switch_mode— Agent-initiated mode switch proposal with interactive user approvalask_question— Structured single/multi-select clarifying questions with automatic"Other"freeform optioncreate_plan— Persists structured markdown plans to~/.pi/agent/plans/; writes YAMLtodoswhen present andphasesfor project plans