Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/pulseaiclub/phi/agents-mdgit clone --depth 1 https://github.com/pulseaiclub/phiWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/pulseaiclub/phi/agents-md)<a href="https://agentmods.dev/instructions/pulseaiclub/phi/agents-md"><img src="https://agentmods.dev/badge/instructions/pulseaiclub/phi/agents-md.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00856 | $0.00856 |
| Opus 5 | $0.00428 | $0.00428 |
| Sonnet 5 | $0.00171 | $0.00171 |
| Haiku 4.5 | $0.00086 | $0.00086 |
Grade A, and why
phi AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 54 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Phi
Minimal Go terminal coding-agent harness. Layout: doc/project-layout.md. Humans: CONTRIBUTING.md.
Communication Preferences
- Dry, concise, low-key humor. No flattery, no forced memes. Skip preambles and postambles.
- Comments explain "why", not "what". English only — this repo was migrated off Chinese comments.
- Error messages: actionable and specific. No vague "something went wrong".
Constraints
- Tool loop is ExtensionPre → Gate/Ask → Run → ExtensionPost. Don't bypass the permission gate when changing the executor. Don't put MCP server tool schemas on the model — only
mcp_list/mcp_inspect/mcp_call. - Extensions are yaegi-loaded Go under
~/.phi/extensions/.phi/extensions. Public API:extpackage. Runtime:internal/extension. See doc/extensions.md. - Keep hashline
edit. Don't replace it with whole-file rewrite. Stale@file path#TAG/LINE#HASHmust fail closed. - Sub-agent transcripts stay under
~/.phi/jobs/<id>/. Parent context gets the wait/task summary only. Child engines have noagent_*tools (no nesting). Default child role is explore (read-only). - UI split:
internal/componentsrender;internal/tuiwires the shell. Non-shell pieces live underinternal/tui/controller(Engine/Bus/Msg),internal/tui/transcript(Mapper); version ininternal/version. Keep widgets dumb. - TUI assembly:
cmdconstructscontroller.Bus/controller.Controller/ App and passes them intoeditor.NewEditor(...), which builds the commands registry (commands.NewBuiltinRegistry). Do not hideGetDefaultProjectinsidetuiconstructors; do not return half-initialized Controllers (engineErrzombies). Prefer constructor parameters overXxxDepsbags. - Stay lean. Direct module deps are few on purpose. Don't add a dependency without a clear need.
- Format with
make fmt(gofumpt / goimports / golines, 120 cols, local prefixgithub.com/pulseaiclub/phi). Don't hand-fight import groups. testing/testifystay in*_test.go.depguardwill fail the lint otherwise.- Tests use testify (
assert/require) for assertions — no rawt.Fatalfchecks. - After dependency changes:
go mod tidy.go.modis not generated.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3d ago First seen · 54 lines · 856 tokens per session scan A 854300692db5
phi AGENTS.md is an instructions file published in the GitHub repository pulseaiclub/phi (201 stars, last pushed 3d ago), licensed MIT. It adds 856 tokens to every session, about $0.0043 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
lightcode copilot-instructions.md
Instructions for Kartik-2239/lightcode, covering copilot instructions, build and test commands, high-level architecture and key conventions.
zot AGENTS.md
Instructions for patriceckhart/zot, covering working agreement for zot, product intent, starting a task, code ownership map and correctness contracts.
llmio CLAUDE.md
Instructions for atopos31/llmio, covering claude.md, project overview, key commands, backend development and build the binary.
pi-go CLAUDE.md
Instructions for dimetron/pi-go, covering claude.md — pi-go, work in a git worktree, not the primary checkout, where worktrees live, what pi-go's agent already does, and why it matters and commits: all commits must be signed.
Whale AGENTS.md
AGENTS.md instructions for usewhale/Whale, covering repository guidelines, project structure & module organization, build, test, and development commands, coding style & naming conventions and testing guidelines.
llmio AGENTS.md
Instructions for atopos31/llmio, covering repository guidelines, 项目结构与模块组织, 构建、测试与开发命令, 代码风格与命名约定 and 测试指南.