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/rulogb/compendio-mcp/agents-mdgit clone --depth 1 https://github.com/RuloGB/compendio-mcpWrote 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/rulogb/compendio-mcp/agents-md)<a href="https://agentmods.dev/instructions/rulogb/compendio-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/rulogb/compendio-mcp/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.12038 | $0.12038 |
| Opus 5 | $0.06019 | $0.06019 |
| Sonnet 5 | $0.02408 | $0.02408 |
| Haiku 4.5 | $0.01204 | $0.01204 |
Grade A, and why
compendio-mcp AGENTS.md scanned grade A with 1 finding 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 4d 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.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
the link discards the 8.3 prefix with it. Pinned by `test/cli-subprocess.test.ts`'s "invoked How it starts
The opening of the file, as written. The whole thing — 387 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
This file provides guidance to working with code in this repository.
What this is
Compendio is an MCP server that indexes a project's markdown documentation and exposes it to AI agents through local hybrid search (BM25/FTS5 + embeddings via RRF fusion). Everything runs locally: one SQLite file, embeddings on CPU (transformers.js), zero network calls at query time.
Commands
npm run build # compiles to dist/ (tsc)
npm test # vitest run — full suite
npm run test:watch # vitest watch mode
npx vitest run test/domain/chunking.test.ts # single file
npx vitest run -t "name of the test" # single test by name
npm run typecheck # tsc --noEmit
npm run dev -- <args> # run the CLI without compiling (tsx src/cli.ts)
There is no lint script configured.
Manual smoke test against the example corpus:
node dist/cli.js --root ejemplos index
node dist/cli.js --root ejemplos eval
node dist/cli.js --root ejemplos search "¿cuándo se considera duplicado un lead?"
Manual smoke test for index progress reporting (not automatable in CI: a real cold download is
~129 MB). Run node dist/cli.js, not compendio — the bare name resolves to whatever is
installed globally from npm, which is how a change like this gets reported as "not working" while
being perfectly fine in dist/. Clear the transformers.js model cache
(node_modules/@huggingface/transformers/.cache, ~130 MB), then in an interactive terminal:
node dist/cli.js --root ejemplos index
COMPENDIO_PROGRESS=bar node dist/cli.js --root ejemplos index 2>frames.txt
COMPENDIO_PROGRESS=none node dist/cli.js --root ejemplos index
What to expect (measured, not assumed — see timing-measurement.md's addendum in the archived
change):
- Cold cache: the bar tracks the download live, climbing 4% → 100% with the elapsed counter advancing. This is the case the feature exists for. Observed: 20 frames, 1 681 bytes on stderr.
- Warm cache: the run still crosses
BAR_MIN_ELAPSED_MS(1 500 ms) and draws, but few frames —onnxruntime-nodeblocks Node's main thread for the whole of each inference call, so the repaint heartbeat only fires during network download and in the gaps between batches, never during inference itself. A near-emptyframes.txton a warm one-batch corpus is expected, not a regression. COMPENDIO_PROGRESS=none: stderr carries no progress output.stdoutis byte-identical in every mode apart from the run-duration figure.
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.
- 4d ago First seen · 387 lines · 12,038 tokens per session scan A 644ed8348f83
compendio-mcp AGENTS.md is an instructions file published in the GitHub repository RuloGB/compendio-mcp (3 stars, last pushed 5d ago), licensed MIT. It adds 12,038 tokens to every session, about $0.0602 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other instructions, from other repositories
jaz AGENTS.md
AGENTS.md instructions for gluonfield/jaz, covering engineering rules, backend architecture and integrations goal.
cortex-md AGENTS.md
Instructions for AlfonsoM0/cortex-md, covering base operating instructions for the agent (system prompt), 1. base behavioral guidelines, 2. repository context, 3. continuous memory system (cortex-md) and mandatory operational workflows.
hindsight CLAUDE.md
Claude Code instructions for vectorize-io/hindsight, covering claude.md, project overview, development commands, local development (api + ui) and start both api server and control plane ui.
paseo CLAUDE.md
Claude Code instructions for getpaseo/paseo, covering claude.md, repository map, docs, writing docs and doc voice.
research-os AGENTS.md
Instructions for lxinfei5/research-os, covering researchos — constitution, §0 what this is, §1 directory discipline, §2 half-life (innovation 1) — memory design and §3 behavior pillars (innovations 2–5).
souls-directory AGENTS.md
Instructions for thedaviddias/souls-directory, covering agents.md, learned user preferences and learned workspace facts.