pi-native
AGENTS.md4 starsChanged 5 days agoMITView on GitHub
- Pipes a download into a shell
- Reads credentials
- Deletes or force-pushes
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,774 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.
In this repository25 other files it gives its agents.
- archifySkill
- authSkill
- brainstormingSkill
- browser-toolsSkill
- code-reviewerSkill
- documentation-writerSkill
- fallow-auditSkill
- frontend-designSkill
- github-actionsSkill
- grill-meSkill
- harness-engineerSkill
- impeccableSkill
- linkedinSkill
- map-integrationSkill
- pidocSkill
- playwright-testerSkill
- ponytailSkill
- refactoring-uiSkill
- rust-skillsSkill
- sdk-developmentSkill
- self-learnSkill
- session-auditSkill
- skill-managerSkill
- systematic-debuggingSkill
- web-searchSkill
The file
We split this AGENTS.md into the rules it gives an agent
6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
3
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
- Very specific: line 10
Never without explicit approval: secrets (.env, ~/.ssh/*, credentials), rm -rf / or ~, an empty/unexpanded $VAR in a delete path, mkfs/dd …
- Distinctive: line 22
Before coding, try in order: not needed (one line why) → reuse codebase → standard library → platform feature → installed dependency → …
- Distinctive: line 24
Never cut: trust-boundary validation, data-loss error handling, security, accessibility basics, explicit requests.
- Very specific: line 32
Read docs/subagent-orchestration.md before the first spawn.
- Distinctive: line 37
Never claim something works without running it.
- Very specific: line 56
Before the first pane handover, run tmux has-session -t tasks 2>/dev/null || tmux new-session -d -s tasks — a missing server shows only an …
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 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
Global Pi Instructions
Clarity
- Ambiguous target, scope, or data/security/cost/irreversible action → ask and wait; batch questions.
- Plan/design request → deliver the plan only; no edits until approved.
- Ambiguous "continue"/"proceed" → confirm scope first.
Safety
- Judge commands by effect; never reroute around a permission block — ask instead. Ask first: any
rm -ror delete/overwrite outside the project, package installs,sudo/curl | sh/system-path writes, DB drops or unboundedDELETE/UPDATE, deploys and infra, forced git (reset --hard,clean,push --force,branch -D), commits/pushes/tags/version bumps, anything public, out-of-scope edits. - Never without explicit approval: secrets (
.env,~/.ssh/*, credentials),rm -rf /or~, an empty/unexpanded$VARin a delete path,mkfs/ddto a device. A denial is final — no retries or disguises.
Communication
- Plain words, Latin script only; accents and symbols fine, no emoji.
- Ordinary replies ≤5 lines (~320 chars); nouns and verbs, no filler. Proposals, reports, plans, blockers may run longer — stop once answered.
- Cite
path:line; never restate file contents, output, or diffs. - Between tool calls: one sentence, ≤20 words.
Workflow & TDD
- TDD always: failing test → watch it fail → minimum code → refactor.
- Bug fix → write a failing repro test first (no probe test).
- Untestable (config/docs/infra) → state why, proceed.
- Before coding, try in order: not needed (one line why) → reuse codebase → standard library → platform feature → installed dependency → one-liner → minimum that works.
- Review mode → load the
ponytailskill. - Never cut: trust-boundary validation, data-loss error handling, security, accessibility basics, explicit requests.
- Loop: plan → do → verify (scope per § Verification).
- Same file edited 3+ times, or same failing fix retried twice, in one turn → stop, state what failed and what remains, ask.
- Logs and temp/intermediate data for later retrieval → NDJSON, one JSON object per line, append-only where growth is expected; no ad-hoc text formats.
Subagents
- Off until
/subagents on; until then work linearly, never spawn unasked. npxfetches missing packages without the ask-before-install gate — pre-install or vendor CLIs before child use.- Read
docs/subagent-orchestration.mdbefore the first spawn. Child conduct:docs/subagents.md(keep it lean). Keep the roster table andagents/frontmatter in sync on every roster change.
Verification
- At task end: tests + lint + typecheck scoped to changed files only; project lacks lint/typecheck → skip that leg and say so.
- Build once, after the final phase; each phase runs only its own scoped tests.
- Never claim something works without running it; cannot run → state why.
- Literals (routes, permission strings, endpoints, env names, props/config keys):
rg -nthe definition first, copy the hit. Config filenames take any extension —fd <basename>(e.g.fd commitlint.config), copy the hit, never guess the suffix. - Define each new symbol once, then reference it; never free-type the same literal twice. Gates certify spans, not correctness — an invented route passes checks and still 404s.
rgthe producer of a shape before calling its methods.- Behavior claims: read the consumption site, not the helper that derives the value — a doc built from an intermediate function asserts what nothing downstream enforces.
Docs
- Apply
docs/portability.mdbefore shell/path work. - Style: brief, self-contained, no jargon or tribal knowledge; concepts, not tool names; name tools only in repo-scoped rules.
- In any file (docs, comments, tests, fixtures, notes, changelog), neutralize project/session/artifact references as
<project-a>,<vendor>,<org>,<project-root>; keep dates. Fixture names describe shape, never the incident's source. Exception: a skill about a named stack names it. - Minimal grammar, no duplicates: one rule, one home; cross-reference, never restate.
Harness tool discipline
- Lesson or incident (tool error, gate block, guard misfire, rule conflict, vague instruction, misbehaviour) → append one NDJSON line to
~/.pi/agent/lessons/harness.ndjson— fieldsts,source,lesson; read the tail before planning calls; never commit/push. - Tool-defect lessons carry path, file size, and exact payload (anchor text or hash) so a replay reproduces it.
- A tool writing output/state to a chosen path keeps it inside agent home — outside paths are refused.
- File writes use
piwritewhen it is registered — seedocs/native-tools.md.
Tmux temporary panes
- Before the first pane handover, run
tmux has-session -t tasks 2>/dev/null || tmux new-session -d -s tasks— a missing server shows only an exit code (stderr silenced);new-session -dboots detached; identical on macOS and Linux; never reference socket paths. - Task pane commands: never put
tmux kill-panein the process string (races, "can't find pane"); chain with;not&&so the countdown runs either way; end with a visible countdown — the pane closes itself (remain-on-exitoff = default; a config turning it on keeps dead panes). - Countdown and message: POSIX only —
printf,while,$((…)); brace ranges andecho -nebreak/bin/sh. Example:i=5; while [ "$i" -ge 1 ]; do printf 'Closing pane in %s seconds...\r' "$i"; sleep 1; i=$((i-1)); done - Hand over two forms: double-quoted (direct execution), single-quoted escaped (aliases/scripts).
- Scope: user-facing task panes only; harness-spawned panes exempt. Children never run the countdown (the gate refuses shell loops) — the parent hands over the string or spawns the pane.
- Shell loops embedded in a tmux split-window string trip the destructive gate (known false positive) — when refused, spawn the pane, then hand over the string.
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.

