@dreadedzombie/pi-init

Generates a typed AGENTS.md for your project — /init, /init research, /init debug, /init code

Package details

extension

Install @dreadedzombie/pi-init from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@dreadedzombie/pi-init
Package
@dreadedzombie/pi-init
Version
1.4.0
Published
Apr 5, 2026
Downloads
655/mo · 29/wk
Author
dreadedzombie
License
MIT
Types
extension
Size
16.5 KB
Dependencies
0 dependencies · 0 peers
Pi manifest JSON
{
  "extensions": [
    "./src/index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-init

Adds /init to Pi — generates or updates an AGENTS.md in your current project directory.

Install

# via npm (recommended)
pi install npm:@dreadedzombie/pi-init

# via GitHub
pi install https://github.com/joenilan/pi-init

Pi loads the extension automatically on next start.

Usage

/init              Explore-first project analysis → AGENTS.md
/init code         Same as bare /init
/init research     Research protocol with incremental findings tracking
/init debug        Debug protocol — carries forward research findings automatically

What each type does

/init / /init code — Pi explores the project first (reads package.json, scans structure, reads key source files, checks for .cursorrules/CLAUDE.md), then writes a filled-in AGENTS.md. If AGENTS.md already has content, running /init again flags it for update — Pi re-explores and refreshes stale sections without wiping human-authored notes.

/init research — Writes a research protocol: minimum source count, citation requirements, when to use Playwright vs fetch, sequential-thinking for multi-step reasoning, memory for long sessions. Includes a ## Research Findings section Pi updates incrementally — each topic gets saved to research/<topic>.md and linked here.

/init debug — Writes an investigative protocol: verify before assuming, read logs first, checkpoint with pi-rewind before changes, trace backward from the error. If you ran /init research first, the Research Findings section carries forward automatically — Pi reads those files at step 1 before touching any code.

Research → Debug workflow

/init research        # set up research protocol
# describe your topic — Pi searches, reads sources, saves to research/*.md

/init debug           # switch to debug — research findings carry forward automatically
# Pi reads linked research files before starting any investigation

Colony agents read AGENTS.md from the working directory on every action, so they see research findings and debug context the same way a single-agent session does.