← Catalog

@gavin-hu/my-pi-agent

Personal Pi customizations, packaged as a Pi package: worktree isolation and rewind snapshots, question, todo, goal, plan, serve, subagent, job, watch, web-access, file-browse, code-review, file-open, file-read, memory, context, session-bu…

Skill

Install

Install with PiG

pig install npm:@gavin-hu/my-pi-agent

Install with Pi

pi install npm:@gavin-hu/my-pi-agent
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.

Video

Declared by the package manifest. Open the file ↗

Pi manifest JSON

The pi field of package.json.

{
  "image": "https://raw.githubusercontent.com/gavin-hu/my-pi-agent/main/assets/screens/chrome.png",
  "video": "https://raw.githubusercontent.com/gavin-hu/my-pi-agent/main/assets/video/demo.mp4",
  "skills": [
    "./skills"
  ],
  "themes": [
    "./themes/*.json"
  ],
  "extensions": [
    "./extensions/serve/index.ts",
    "./extensions/worktree/index.ts",
    "./extensions/rewind/index.ts",
    "./extensions/question/index.ts",
    "./extensions/todo/index.ts",
    "./extensions/goal/index.ts",
    "./extensions/plan/index.ts",
    "./extensions/subagent/index.ts",
    "./extensions/job/index.ts",
    "./extensions/watch/index.ts",
    "./extensions/web-access/index.ts",
    "./extensions/file-browse/index.ts",
    "./extensions/code-review/index.ts",
    "./extensions/file-read/index.ts",
    "./extensions/file-open/index.ts",
    "./extensions/memory/index.ts",
    "./extensions/context/index.ts",
    "./extensions/board/index.ts",
    "./extensions/team/index.ts",
    "./extensions/session-bus/index.ts",
    "./extensions/wechat/index.ts",
    "./extensions/bytefly/index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.31.0 (README.md). PiG does not review it.

my-pi-agent

English · 简体中文

CI npm license: MIT built for Pi

my-pi-agent is a single Pi package that adds a curated set of extensions, skills, and themes to the agent you already use — install the pack, turn off what you do not want, and keep using Pi unchanged.

This page is the catalog and the setup instructions. Each feature's own page under docs/extensions/ carries the keys, the commands, and what you should see.

A terminal window running the Pi TUI: the bytefly header naming Pi and bytefly's versions, three key-hint rows, a nameplated message with its answer and an edit diff behind the rail, a notice that two background jobs finished, naming the test run that passed and the build that failed, the turn rule, the goal and todo rails, the input editor with a half-typed request between its two rules, and the two-line footer — the plan chip and the branch above, the context gauge, the priced cost, and the model below

Contents

Why this pack

Pi ships a small, sharp core. This package is the layer on top for people who want the agent to think first and work safely:

  • Plan, then execute. A read-only mode turns a task into a reviewed plan file that the agent then follows step by step.
  • Delegate and parallelize. Specialist subagents in their own Pi processes, long builds in background jobs, and several sessions on one repository through a shared bus.
  • Never wreck the checkout. Isolation is one command: the task moves onto its own branch in a git worktree, and each prompt's first change is snapshotted, so a bad turn is one /rewind away.
  • Remember across sessions. Durable notes live in plain markdown that you can read and edit.
  • Reach the web and your files. Search, fetch, browse, open, and read documents and spreadsheets from inside the session — and answer a WeChat chat through a bridge to the live session.

Install

Requires a working Pi installation.

pi install npm:@gavin-hu/my-pi-agent                        # the latest release
pi install git:github.com/gavin-hu/my-pi-agent@v0.31.0      # a pinned release

git on PATH is needed by worktree and rewind; everything else degrades or disables cleanly, and /bytefly doctor names what is missing, including optional runtime pieces. Windows, macOS, and Linux all work, and the full check suite runs on each in CI.

Everything is optional and independently toggleable. Nothing is forked, and no installed Pi file is written to: Pi discovers the resources through the pi manifest in package.json, so the pack upgrades with Pi like any other.

Then, from inside Pi:

  • /bytefly opens the control center: the sixteen preferences a session changes, every loaded extension and skill with its checkbox, and the doctor report that names anything missing at runtime.
  • /plan <task> starts a task in read-only planning mode.
  • /skill:init creates or updates the instruction file Pi reads through a short interview and a plan you review first.

What you get

22 extensions, 4 packaged skills, and 2 themes, grouped by the work they serve. Each extension's own page in docs/extensions/ has the full tool and command surface, opening with its capabilities.

Plan and delegate

ExtensionTools and commandsWhat it does
planplan, /plan, --planRead-only planning: investigate, then approve before anything is written.
subagentsubagent, /agentsDelegate to a specialist agent in its own process — single, parallel, chained, or background.
todotodo, /todosA persistent task list with one item in progress, in a one-line widget.
goalgoal, /goalA durable session objective, kept in a widget and restated each turn.
questionquestionAsk structured questions with labelled options, and wait for the answer.
jobjob, /jobsRun long-lived shell commands in the background: read the log, wait, or kill.
watchwatch, /watchTail a file or command; alert you or hand a match to the agent.
session-bussession, /sessions (screen)Coordinate parallel sessions on one repository: peers, mail, an inbox, path claims.
serve—One loopback server, so /board, /browse, and a plan review share one port.
boardboard, /boardOne shared feature board per repository, two signatures before a card ships.
teamteam, /teamThe lead's round over that board: assign, offer, ask — spawning nothing.
context/contextShow where the context window goes, and compact from it.

Keep your work safe

ExtensionTools and commandsWhat it does
worktreeworktree, /worktree (screen, enter|exit|prune), --worktreeWork in an isolated git worktree on its own branch; the tools follow.
rewind/rewind, ↺ N status chipSnapshot before each prompt's first change; restore code, conversation, or both.
memorymemory, /memoryDurable cross-session notes as markdown you can read and edit.

Reach the world

ExtensionTools and commandsWhat it does
web-accessweb_search, web_fetchSearch the web and fetch a page as readable text, with paging and find.
file-browse/browseA loopback, read-only browser for the working directory, with Markdown preview.
code-reviewcode_review, /reviewA diff review page: comment on a line, then send the notes back to the session.
file-readread_docExtract text from a local PDF, DOCX, DOC, ODT, RTF, or XLSX, paged.
file-open/open, open_pathOpen or reveal a file or directory in the OS's own application.
wechat/wechat, send_wechatBridge a WeChat chat to the live session: message in, answer out.

Chrome and upkeep

ExtensionTools and commandsWhat it does
bytefly/bytefly (with the doctor, settings, skills, update, and upgrade subcommands), run_doctorThe visible layer: header, footer, transcript blocks, the settings screen, notifications — and bytefly.json, the config every extension reads.

Skills

Packaged workflows loaded on demand: each skill's name and description are advertised to the model, and its instructions load only when the task matches (/skill:<name> forces one).

SkillWhat it does
initCreates or updates the instruction file Pi reads, through an interview and a plan you review.
refactorAudits for duplication, oversized modules, coupling, and drift, then carries the refactor you pick.
nextSuggests what to do next from this conversation, or from the tree when it is empty.
board-triageTurns a board's open cards into a prioritized wave plan.

Themes

bytefly-dark is a GitHub-inspired dark palette and bytefly-light its light companion, with optional automatic light/dark switching. Installing the pack does not change your theme: pick one through /settings → Theme (or /bytefly settings → Theme), or set "theme" in Pi's settings.json to "bytefly-light/bytefly-dark" for switching. The screenshot above uses bytefly-dark.

Frames come from assets/screens/, and the pages under docs/extensions/ use them where a screen shows what the extension does. The tools are one gallery, assets/screens/tool-renderings.png: bun run capture:tools regenerates it, and bun run capture:tool-pngs writes one PNG per tool into assets/tools/.

What runs on its own

Once per interactive session, bytefly asks Pi's package manager which configured packages are behind and posts one themed notice naming pi update --extensions; a newer Pi gets one naming pi update. Nothing about the session is sent, and PI_OFFLINE skips the check — bytefly's page has the header marker and the cache, docs/security.md the trust boundaries.

Configuration

Most extensions need no configuration. Every extension setting lives in one shared document, bytefly.json, read from <agent-dir>/bytefly.json and merged with <cwd>/.pi/bytefly.json (project wins), under a top-level section named for the extension. Each extension's page under docs/extensions/ covers the behaviour around its keys, and docs/configuration.md has the resolution rules, the settings screen walkthrough, and every section's keys with their type, default, and bounds.

Every extension is on by default. To load the pack without some of them, name them in PI_DISABLED_EXTENSIONS (the directory names under extensions/):

PI_DISABLED_EXTENSIONS=todo,job pi -e .

The variable only stops those factories from registering, and configuration has its rules; to drop the whole package, use Pi's --no-extensions or remove it from your settings.

Documentation

GuideWhat it covers
Documentation siteThe browser edition: a home page, install and configuration, and a sidebar over every extension page.
InstallAdding the pack, pinning a release, upgrading, and removing it.
ConfigurationResolution and the settings screen; configuration-reference.md lists every key with its default and bounds.
Extension docsOne page per extension: what it does, how to try it, and the reference half — with a tutorial for each workflow.
Tools and commandsEvery tool and slash command the pack registers, by name, with the page that owns it.
SecurityTrust boundaries for the loopback and remote surfaces.
ContributingSetup, the branch flow, the checks, and the release process.

Contributing

Contributions are welcome. Start with CONTRIBUTING.md for the setup, the worktree branch flow, and the checks a change must pass. AI coding agents should read AGENTS.md.

License

MIT