← Catalog

@justjoshn/pi-modes

Four Pi-native execution modes (Agent, Ask, Plan, Debug) with read-only enforcement, structured plan artifacts, interactive clarifying questions, mode-switch proposals, and a local NDJSON debug ingest server.

Package

Install

Install with PiG

pig install npm:@justjoshn/pi-modes

Install with Pi

pi install npm:@justjoshn/pi-modes
Review 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):

ModePurposeTool Access & Behavior
AgentDefault full-capability agent executionFull active tools; tracks plan execution steps ([DONE:n]) with a live progress widget
AskRead-only Q&A and code explanationDisables edit/write; blocks mutating bash commands; injects read-only Q&A guidance
PlanRead-only exploration and structured planningDisables 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
DebugHypothesis-driven runtime debuggingStarts 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 → Ask
  • Ctrl+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 approval
  • ask_question — Structured single/multi-select clarifying questions with automatic "Other" freeform option
  • create_plan — Persists structured markdown plans to ~/.pi/agent/plans/; writes YAML todos when present and phases for project plans