npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@sion10032/pi-modes

v0.2.0

Published

Pi extension: Codex-like /plan collaboration mode and minimal /ro read-only mode.

Readme

🧭 pi-modes — Plan/ReadOnly Mode for Pi

Pi extension License: MIT

Pi extension that adds a Codex-like /plan collaboration mode and a minimal /ro read-only mode. Supports two-level tool config storage: project-level (.pi/mode-tools.json) and user-level (~/.pi/mode-tools.json).

✨ Features

Plan Mode (/plan)

  • Enter Plan mode for read-only exploration, clarifying questions, and a final <proposed_plan> block.
  • Blocks mutating tools (edit, write, rm, git commit, etc.) while Plan mode is active.
  • Injects Codex-like instructions: explore first, ask decision questions, finish with <proposed_plan>.
  • Provides plan_mode_question tool for structured questions before finalizing a plan.
  • Detects proposed plans and prompts you to implement, stay, or exit.
  • Persists Plan mode state across session resumptions.

Read-only Mode (/ro)

  • Enter Read-only mode for safe code exploration without any modification risk.
  • Blocks all mutating tools and bash commands.
  • Shares the same tool safety strategies as Plan mode.

📦 Install

pi install npm:@sion10032/pi-modes

Try without installing permanently:

pi -e npm:@sion10032/pi-modes

🚀 Usage

Plan Mode

/plan              # Toggle Plan mode
/plan <prompt>     # Enter Plan mode and submit prompt
/plan tools        # Configure tools for Plan mode
/plan exit         # Exit Plan mode

When Plan mode is active:

  • The agent explores code and asks decision questions via plan_mode_question.
  • Mutating built-in tools and unsafe bash commands are blocked.
  • Extension/custom tools are disabled by default; enable via /plan tools at your own risk.
  • When the agent produces a <proposed_plan> block, you can implement, stay, or exit.

Read-only Mode

/ro                # Toggle Read-only mode
/ro <prompt>       # Enter Read-only mode and submit prompt
/ro tools          # Configure tools for Read-only mode
/ro exit           # Exit Read-only mode

🧠 Plan Mode Behavior

  • Conversational collaboration, not TODO/progress tracking.
  • Agent should explore first, then ask questions for high-impact ambiguity.
  • Final plan appears as exactly one <proposed_plan> block:
<proposed_plan>
# Title

## Summary
...

## Key Changes
...

## Test Plan
...

## Assumptions
...
</proposed_plan>
  • After plan detection, /plan offers: implement, stay, or exit.
  • Implementing restores full tools and starts implementation with the plan.
  • Exiting discards the proposed plan.

🗂️ Package Layout

pi-modes/
├── src/
│   ├── index.ts              # Unified extension entry
│   ├── plan-mode.ts          # Plan mode logic
│   ├── readonly-mode.ts      # Read-only mode logic
│   └── shared/
│       ├── mode-types.ts     # Shared mode types
│       ├── tool-config.ts    # Configuration persistence
│       ├── tool-safety.ts    # Tool safety strategies
│       ├── tool-selector.ts  # Tool selection UI
│       ├── messages.ts       # Message utilities
│       ├── constants.ts      # Shared constants
│       └── types.ts          # Shared types
├── README.md
├── LICENSE
├── tsconfig.json
└── package.json

🔎 Keywords

Pi extension, Pi coding agent, plan mode, read-only mode, Codex-like plan mode, AI coding workflow.

🙏 Acknowledgments

This project is based on @narumitw/pi-plan-mode by narumiruna. Extended with read-only mode, and unified configuration.

📄 License

MIT. See LICENSE.