Borrowing it
Nothing to install: this file belongs to pubky/pubky-app. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/pubky/pubky-app/dev/AGENTS.mdgit clone --depth 1 https://github.com/pubky/pubky-appWrote 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/pubky/pubky-app/agents-md)<a href="https://agentmods.dev/instructions/pubky/pubky-app/agents-md"><img src="https://agentmods.dev/badge/instructions/pubky/pubky-app/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/pubky/pubky-app/agents-md"><img src="https://agentmods.dev/badge/instructions/pubky/pubky-app/agents-md.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.04623 | $0.04623 |
| Opus 5.5 | $0.01849 | $0.01849 |
| Sonnet 5.5 | $0.00925 | $0.00925 |
| Haiku 4.5 | $0.00462 | $0.00462 |
Grade A, and why
pubky-app 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 yesterday.
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 — 207 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Pubky App
Decentralized social app: Next.js 16 App Router, React 19 with the React Compiler, TypeScript, Tailwind v4 + Shadcn UI, Zustand,
Dexie (IndexedDB), TanStack Query. Package name franky. Local-first: writes go to Dexie first and sync to the homeserver;
reads come from Dexie and fall back to Nexus. This file is the entry point for every AI agent (Claude Code, Codex, Cursor);
it indexes docs/, which is canonical and wins over anything here (docs/development-workflow.md is the long version).
Commands
Node 24 (.nvmrc), dependencies via npm ci. The pre-commit hook runs lint-staged then npm run typecheck.
| Task | Command |
|---|---|
| Dev server (port 3000) | npm run dev (staging defaults are built in, no .env needed) |
| Format, lint, types | npm run format:check, npm run lint, npm run typecheck |
| Unit tests (jsdom) | npm test (~13k tests, minutes); one file npm test -- <path>; one name npm test -- -t "x" |
| Visual regression (VRT) | npm run test:vrt (npm run test:vrt:setup once); baselines are CI-owned, never commit local |
| Production build | npm run build (next build --webpack) |
| E2E (Cypress) | npm run test:e2e; needs the full pubky-stack, not runnable from a bare checkout |
Architecture (src/core)
UI (user actions) → Controllers → Application → Services → Models
Coordinators (system) ↗ ↓ ↓
Stores Pipes Database
Services → Pipes (pure transforms; the Nexus services apply the `*.fromNexus` read-boundary mappers)
Hard constraints (review-enforced, not compiler-enforced; docs/architecture.md):
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.
- yesterday Changed · -1 lines · +9 tokens per session 005b8f7c8fff
- 5d ago Changed · +15 tokens per session 80cc089d7029
- 9d ago Changed · +2 lines · +46 tokens per session f1995729a44b
- 14d ago Changed · +2 lines · +59 tokens per session 3d4add286046
- 16d ago Changed · +35 lines · +1,015 tokens per session 08d4042df5b0
- 17d ago Changed · +1 lines · +22 tokens per session 56d5591ba9b5
- 23d ago Changed · -2 tokens per session 4ad219914468
- 25d ago Changed · +12 tokens per session b1d8eb3c8e1c
- 1mo ago Changed · +7 lines · +117 tokens per session bb96a0d406c6
- 1mo ago First seen · 161 lines · 3,330 tokens per session scan A 409498686cea
pubky-app AGENTS.md is an instructions file published in the GitHub repository pubky/pubky-app (28 stars, last pushed yesterday), licensed MIT. It adds 4,623 tokens to every session, about $0.0185 per session on Opus 5.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.
pubky-app AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pubky-app AGENTS.mdpubky/pubky-app | Instructions file | 28 | yesterday | MIT | A | 4,623 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,887 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 144k | today | MIT | A | 7,230 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,685 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 150k | yesterday | MIT | A | 4,951 | Codex, OpenCode |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 291k | today | MIT | A | 4,396 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,303 | GitHub Copilot |