pi-subagents
AGENTS.md1.2k starsChanged 3 months agoMITView on GitHub
Read the file that covers a surface before changing its behavior; update it in the same change. README.md holds the reference tables and links out; docs/ holds the long-form guides. Each guide states its audience in its first three lines — read that before deciding it is the wrong file. Renaming an event, an RPC channel, a reply-envelope field, or a workflow global is a docs change too. The steps individually, when you need to isolate a failure:
- Deletes or force-pushes
- Commits and pushes
Trending
Quiet since September.about the whole repository
Who's talking about tintinweb/pi-subagents
- nicobailon/pi-subagents“Poor user-experience in seeing what subagents are doing”GitHub · Jul 8, 2026 · 3 reactions
- juicesharp/rpiv-mono“Add the option for different web search and tools provider”GitHub · May 17, 2026 · 2 reactions
- guwidoe/pi-prompt-suggester“The plugin interferes with other plugins”GitHub · Mar 23, 2026 · 2 reactions
- @scottw.com“Swapped my Pi-Subagents over to @tintinweb’s implementation: github.com/tintinweb/p.... The “other” …”Bluesky · Aug 31, 2026 · 1 likes
- HerbertGao/pi-extensions“fix(pi-subagents): retain unread results and support current Pi”GitHub · Sep 23, 2026
The biggest 5 of 27 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 27
Talked about on GitHub and Bluesky (27 times).
On GitHub · 26
- Jul 8, 2026Poor user-experience in seeing what subagents are doing — nicobailon/pi-subagents3 reactions · 1 comment
- May 17, 2026Add the option for different web search and tools provider — juicesharp/rpiv-mono2 reactions · 3 comments
- Mar 23, 2026The plugin interferes with other plugins — guwidoe/pi-prompt-suggester2 reactions · 3 comments
- Sep 23, 2026fix(pi-subagents): retain unread results and support current Pi — HerbertGao/pi-extensions0 reactions · 1 comment
- Sep 9, 2026build(deps): bump the runner-deps group in /container/agent-runner with 8 updates — treasuresyq/miniclaw0 reactions · 2 comments
21 more on GitHub
- Aug 17, 2026chore(pi-subagents): review post-0.16.1 upstream commits — HerbertGao/pi-extensions0 reactions
- Aug 17, 2026chore(pi-subagents): sync upstream 0.16.1 — HerbertGao/pi-extensions0 reactions
- Aug 15, 2026为 subagent result wait 增加 bounded timeout,避免主会话长期阻塞 — eddiearc/larkin0 reactions · 1 comment
- Aug 14, 2026chore(pi-subagents): sync upstream 0.16.0 — HerbertGao/pi-extensions0 reactions · 1 comment
- Aug 14, 2026chore(pi-subagents): sync upstream 0.15.1 — HerbertGao/pi-extensions0 reactions
- Aug 12, 2026chore(pi-subagents): review post-0.15.0 upstream fixes — HerbertGao/pi-extensions0 reactions
- Aug 11, 2026chore(pi-subagents): port upstream malformed-agent handling — HerbertGao/pi-extensions0 reactions
- Aug 9, 2026调研 @tintinweb/pi-subagents:能力边界 + 与 Claude Code subagents 异同 + hapilon 机制矛盾评估 — nekomorph-woo/hapilon0 reactions · 2 comments
- Aug 5, 2026Feature: Subagents (nested harness / Claude Code-style agents) — muddlebee/tau0 reactions · 1 comment
- Jul 28, 2026fix(pi-subagents): replace turn glyph (#669) — gotgenes/pi-packages0 reactions · 1 comment
- Jul 27, 2026pi-subagents: formatTurns() glyph U+27F3 (⟳) overflows its monospace cell, overlapping the next column — gotgenes/pi-packages0 reactions · 1 comment
- Jul 17, 2026Evaluate a first-party subagent capability for my-pi — spences10/my-pi0 reactions · 1 comment
- Jul 6, 2026WS1: Research Pi (pi.dev) HITL/extension model + Claude Code native, for the ask-the-human loop — FriendlyInternet/nuxt-crouton0 reactions
- Jul 3, 2026Audit candidate: tintinweb/pi-subagents — xiaolai/nlpm0 reactions · 2 comments
- Jul 2, 2026general purpose subagent support — jamestrew/pi-bites0 reactions · 1 comment
- Jun 19, 2026TPS not registering tool calls or subagents — gsanhueza/pi-token-speed0 reactions · 2 comments
- Jun 7, 2026Pi Subagent — first-fluke/oh-my-agent0 reactions · 1 comment
- May 1, 2026 Add per-task model + opt-in subagent execution — tintinweb/pi-schedule-prompt0 reactions · 1 comment
- Apr 30, 2026chore: move pi runtime packages from dependencies to peerDependencies — tintinweb/pi-supervisor0 reactions
- Apr 30, 2026chore: move pi runtime packages to peerDependencies — tintinweb/pi-tasks0 reactions
- Mar 22, 2026feat: subagents-api (eventbus) subagent-stop; switch to new API envs; fix bugs — tintinweb/pi-tasks0 reactions
On Bluesky · 1
- Aug 31, 2026Swapped my Pi-Subagents over to @tintinweb’s implementation: github.com/tintinweb/p.... The “other” pi-subagents was very solid, but… — @scottw.com1 likes and repost · 1 reply
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
30 rules. About 0 are common, 20 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈20
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 5
Keep answers short and concise
- Distinctive: line 6
No emojis in issues, PR comments, or code
- Distinctive: line 7
No fluff or cheerful filler text (e.g., "Thanks @user" not "Thanks so much @user!")
- Distinctive: line 9
When the user asks a question, answer it first before making edits or running implementation commands.
- Distinctive: line 10
When responding to user feedback or an analysis, explicitly say whether you agree or disagree before saying what you changed.
- Distinctive: line 14
Read files in full before wide-ranging changes, before editing files you have not fully inspected, and when asked to investigate or audit.
- Very specific: line 17
Check node_modules for external API types (@earendil-works/pi-*, @sinclair/typebox, etc.).
- Distinctive: line 19
Never remove or downgrade code to fix type errors from outdated deps.
- Distinctive: line 21
Always ask before removing functionality or code that appears intentional.
- Distinctive: line 22
Do not preserve backward compatibility unless the user asks for it.
- Distinctive: line 24
When reviewing a diff, favor solutions that are elegant, not overengineered — flag needless abstraction, layering, or defensive code that …
- Distinctive: line 28
Read the file that covers a surface before changing its behavior.
- Distinctive: line 42
After code changes (not docs), run the full check suite and fix all errors and warnings:
- Distinctive: line 54
If you create or modify a test file, run it and iterate on the test or implementation until it passes.
- Distinctive: line 63
Never run history- or worktree-destroying commands: git reset --hard, git checkout ., git clean -fd, git stash, git add -A, git add ., git …
- Distinctive: line 64
Leave the working tree as the user left it — don't stage, stash, or revert files you didn't change.
- Very specific: line 72
Write the body to a temp file and pass --body-file (gh pr create, gh pr edit).
- Distinctive: line 76
Write for a reviewer who will not read the whole diff: what changed, then what it costs.
- Distinctive: line 78
Every claim checkable — from the diff, or from a command you actually ran.
- Very specific: line 99
Add sections a change needs.
- Very specific: line 105
Do not run gh pr checkout, git switch, or otherwise move the worktree to the PR branch unless the user explicitly asks.
- Very specific: line 106
Use gh pr view, gh pr diff, gh api, and local git show/git diff against fetched refs to inspect PR metadata, commits, and patches without …
- Very specific: line 107
If you need PR file contents, fetch/read them into temporary files or use git show <ref>:<path> without switching branches.
- Very specific: line 111
Write the comment to a temp file and post with gh issue/pr comment --body-file (never multi-line markdown via --body).
- Distinctive: line 112
Keep comments concise, technical, and in the user's tone.
- Very specific: line 118
All new entries go under ## [Unreleased], in the right subsection (### Added, ### Changed, ### Fixed, ### Removed, ### Security, ### …
- Very specific: line 135
Update CHANGELOG.md — move the ## [Unreleased] entries under a new ## [X.Y.Z] version section, and add a fresh empty ## [Unreleased] for …
- Very specific: line 136
Update README.md if user-facing behavior changed (features list, settings, usage), and the matching guide in docs/ if the change touches …
- Distinctive: line 137
Run the full check suite plus the e2e tests, and fix anything that fails:
- Distinctive: line 154
If the user's instructions conflict with any rule in this document, ask for explicit confirmation before overriding.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Development Rules
Conversational Style
- Keep answers short and concise
- No emojis in issues, PR comments, or code
- No fluff or cheerful filler text (e.g., "Thanks @user" not "Thanks so much @user!")
- Technical prose only, be direct
- When the user asks a question, answer it first before making edits or running implementation commands.
- When responding to user feedback or an analysis, explicitly say whether you agree or disagree before saying what you changed.
Code Quality
- Read files in full before wide-ranging changes, before editing files you have not fully inspected, and when asked to investigate or audit. Do not rely on search snippets for broad changes.
- No
anyunless absolutely necessary. - Inline single-line helpers that have only one call site.
- Check
node_modulesfor external API types (@earendil-works/pi-*,@sinclair/typebox, etc.); don't guess. - No inline imports (
await import(),import("pkg").Type, dynamic type imports). Top-level imports only. - Never remove or downgrade code to fix type errors from outdated deps; upgrade the dep instead.
- Match the surrounding code style — it is enforced by biome (
biome.json). - Always ask before removing functionality or code that appears intentional.
- Do not preserve backward compatibility unless the user asks for it.
- This is a pi extension. Respect the Claude Code-compatible tool names, calling conventions, and UI patterns the extension deliberately mirrors; don't diverge from them without a stated reason.
- When reviewing a diff, favor solutions that are elegant, not overengineered — flag needless abstraction, layering, or defensive code that the change doesn't warrant.
Documentation
Read the file that covers a surface before changing its behavior; update it in the same change.
| File | Covers |
README.md | User-facing reference: features, install, tool parameter tables, commands, settings and defaults, the event table, the RPC channel list, and the src/ file map (## Architecture). Source of truth for defaults and setting names. |
docs/workflows.md | SubagentWorkflow in depth — how the model writes a script, editing and re-running it, saving a named workflow, agent() options, recipes, troubleshooting. Examples in examples/workflows/. |
docs/rpc.md | Calling this extension from another pi extension — pi.events lifecycle events (subagents:completed, subagents:ready, …), the subagents:rpc:* channels (ping, spawn, stop, consume), spawn options, error strings, and the Symbol.for("pi-subagents:manager") registry. Source: src/cross-extension-rpc.ts. |
CONTRIBUTING.md | Contributor guidelines and quality bar. |
SECURITY.md | Vulnerability reporting. |
README.md holds the reference tables and links out; docs/ holds the long-form guides. Each guide states its audience in its first three lines — read that before deciding it is the wrong file. Renaming an event, an RPC channel, a reply-envelope field, or a workflow global is a docs change too.
Commands
- After code changes (not docs), run the full check suite and fix all errors and warnings:
The steps individually, when you need to isolate a failure:npm run check # lint + typecheck + test (what CI runs)npm run lint # biome npm run typecheck # tsc --noEmit npm run test # vitest run npm run lint:fixauto-fixes most style issues.npm run testruns the whole suite, including*-e2e.test.tsfiles. To iterate on a single file, run it directly:npx vitest run test/<file>.test.ts.- If you create or modify a test file, run it and iterate on the test or implementation until it passes.
npm run buildcompiles withtsc; run it only when verifying the build output or when requested.npm run benchruns the benchmarks intest/perf/*.bench.ts(absolute timings, ~1 min). Opt-in: it is not part of the check suite, andnpm run testnever picks bench files up.npm run bench:ab -- <ref>benchmarks the working tree against another commit and prints the delta — use it for a PR's## Performancesection. The*.perf.test.tsguards beside them assert operation counts, not time, and DO run in the normal suite.- For ad-hoc scripts, write them to a temp file (e.g.
/tmp), run, edit if needed, remove when done. Don't embed multi-line scripts inbashcommands.
Git
- Never commit. The user commits manually. At most, suggest a concise commit message as text.
- Never push, tag, or create branches unless the user explicitly asks.
- Never run history- or worktree-destroying commands:
git reset --hard,git checkout .,git clean -fd,git stash,git add -A,git add .,git commit --no-verify, or any force push. - Leave the working tree as the user left it — don't stage, stash, or revert files you didn't change.
Issues and PRs
See CONTRIBUTING.md for the contributor guidelines and quality bar.
Filing PRs
Write the body to a temp file and pass --body-file (gh pr create, gh pr edit); never multi-line markdown via --body. Create or edit a PR only when the user asks.
- One logical change per PR. Title in conventional-commit form (
fix(ui): ...), imperative, no trailing period. - Self-review the diff before filing; drop unrelated refactors and leftover debug code.
- Write for a reviewer who will not read the whole diff: what changed, then what it costs.
- Technical prose, no emojis, no marketing.
- Every claim checkable — from the diff, or from a command you actually ran. Never quote a benchmark, test count, or "no change in output" you did not measure.
- State what the change does not do: deliberate omissions, known gaps, untested surfaces.
Relations — get the verbs right, and note States as of opening.
Closes #Nonly if the PR fully resolves N. Otherwise name the part delivered and say N stays open.- A merge does not auto-close another PR: say supersedes, credit the author (
thanks @user), and say what of theirs was left out and why. - Name PRs touching the same lines; say whether it is a design conflict or just a rebase.
Sections, in this order. Omit one only when it is genuinely empty, and say so:
| Section | Content |
| Lead-in (no heading) | What this closes, supersedes, or partly addresses. |
## Summary | The problem and why it matters — not how it is fixed. Enumerate distinct failure modes. |
## What changed | The design: the one idea, then its consequences. Name files/symbols only where they help. |
## Related work | Table: number, title, state, relation to this PR. |
## Behavior and compatibility | Side effects, breaking changes (or an explicit "none", with reasoning), defaults, settings, migration. |
## Performance | Numbers with the method that produced them. "No measurable change" only if measured. |
## Testing | Commands and results, new coverage, and what is not covered. |
Add sections a change needs; use fenced text blocks or screenshots for UI changes.
Testing section: paste real results (npm run lint, npm run typecheck, npm run build, npm run test with pass/skip/file counts), not "tests pass". Mutation-check every new assertion — break the source line, confirm red, restore — and say what you broke.
Reviewing PRs
- Do not run
gh pr checkout,git switch, or otherwise move the worktree to the PR branch unless the user explicitly asks. - Use
gh pr view,gh pr diff,gh api, and localgit show/git diffagainst fetched refs to inspect PR metadata, commits, and patches without changing branches. - If you need PR file contents, fetch/read them into temporary files or use
git show <ref>:<path>without switching branches.
Posting issue and PR comments
- Write the comment to a temp file and post with
gh issue/pr comment --body-file(never multi-line markdown via--body). - Keep comments concise, technical, and in the user's tone.
Changelog
Location: CHANGELOG.md (single file, Keep a Changelog format).
- All new entries go under
## [Unreleased], in the right subsection (### Added,### Changed,### Fixed,### Removed,### Security,### Refactored). Read the section first and append to existing subsections; never duplicate them. - One bullet per issue/PR. Never combine separate issues or pull requests into a single entry, even when they touch the same or similar components. (A PR together with the issue it closes or that diagnosed it is one change — one bullet citing both.)
- Breaking changes are not a separate subsection. Call them out with a
> **⚠️ Breaking: …**blockquote at the top of the version section, and/or a bold**BREAKING:**bullet under### Changed, with a migration note. - Entries are concise — a bold lead-in stating what changed, then a sentence or two on why it changed and anything a user must do about it. Aim for 2–4 sentences; a genuinely intricate change may run longer, but length is never the goal. Do not match the density of older entries, several of which are far too long.
- Cut what the reader doesn't need: narration of the investigation, alternatives considered and rejected, restatements of the diff, and detail recoverable from the code or the linked issue. Name a file or symbol only when it helps someone find the change.
- Released version sections (e.g.
## [0.12.0]) are immutable; never modify them. - Attribute external contributions:
... ([#456](https://github.com/tintinweb/pi-subagents/pull/456) — thanks [@username](https://github.com/username)).
Releasing
Versioning (all releases are 0.x, no major bumps):
minor(0.x.0) — a notable new feature, or any breaking change.patch(0.x.y) — bug fixes and smaller additions.
Before a release:
- Update
CHANGELOG.md— move the## [Unreleased]entries under a new## [X.Y.Z]version section, and add a fresh empty## [Unreleased]for the next cycle. - Update
README.mdif user-facing behavior changed (features list, settings, usage), and the matching guide indocs/if the change touches workflows or the event/RPC surface. - Run the full check suite plus the e2e tests, and fix anything that fails:
npm run check # lint + typecheck + test npm run test:e2e # faux/scripted e2e — no network, no keys npm run build - For a real pre-publish smoke test, run the live e2e against an actual model:
PI_E2E_LIVE=1 npm run test:e2e # uses your local `pi` login; optional PI_PROVIDER / PI_MODELPI_E2E_LIVE=1swaps the scripted faux suite for the live one (the faux suite isskipIf(LIVE)). (prepublishOnlyruns lint + typecheck + test + build; the live e2e is the smoke test to run by hand before publishing.)
Never publish. The user runs npm version / npm publish and any tagging manually. Do not run those commands unless the user explicitly asks.
User Override
If the user's instructions conflict with any rule in this document, ask for explicit confirmation before overriding. Only then execute their instructions.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

