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/zuhabul/fetchium/agents-mdgit clone --depth 1 https://github.com/zuhabul/FetchiumWhat 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.02313 | $0.02313 |
| Opus 5 | $0.01156 | $0.01156 |
| Sonnet 5 | $0.00463 | $0.00463 |
| Haiku 4.5 | $0.00231 | $0.00231 |
Grade A, and why
Fetchium 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 2d 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 — 282 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
Guidelines for AI agents (Claude Code, OpenAI Codex, Gemini CLI, etc.) working on the Fetchium codebase.
Build, Lint, and Test Commands
# Check compilation (fast, no linking)
cargo check
# Build the fetchium binary
cargo build -p fetchium-cli
# Build release binary
cargo build -p fetchium-cli --release
# Run all tests (currently 563, target: 0 failures)
cargo test
# Run tests for a specific crate
cargo test -p fetchium-core
# Run a single test by name
cargo test -p fetchium-core segment_type_roundtrip
# Lint (zero warnings policy — enforced in CI)
cargo clippy -- -D warnings
# Format code
cargo fmt
# Run the binary
./target/debug/fetchium --help
./target/debug/fetchium doctor
./target/debug/fetchium provider list
Current Status
- Tests: 563 passing, 0 failing, 0 clippy warnings
- Phases complete: 0–8 + Multi-provider AI system
- Binary:
./target/debug/fetchiumwith 26 commands
Architecture
crates/
├── fetchium-core/ # All algorithms: search, extract, rank, validate, cache, AI, intelligence
├── fetchium-cli/ # Binary: clap derive CLI, one file per command in commands/
├── fetchium-mcp/ # Manual JSON-RPC 2.0 stdio MCP server (5 tools)
└── fetchium-api/ # axum 0.7 REST API server
Data flow: CLI args → FetchiumConfig → fetchium-core pipeline → formatted output
Key Module Map (fetchium-core/src/)
ai/
credentials.rs Subscription OAuth detection (Claude Code, Gemini CLI, Codex CLI)
provider_client.rs Multi-provider chat client with SSE streaming + fallback chain
providers.rs ProviderKind enum, ProvidersConfig, ProviderEntry
pipeline.rs run_ai_pipeline() — search → extract → sandwich → provider
types.rs AiConfig (providers: ProvidersConfig, fast_model: Option<String>)
router.rs select_model(), select_fast_model()
sandwich.rs Ms-PoE sandwich layout
ollama.rs OllamaClient (local Ollama server)
prompt.rs System prompts for synthesis/factual/fallback modes
setup.rs DeviceSpec, recommend_models(), format_setup_guide()
search/
orchestrator.rs Parallel backend dispatch + BM25 rerank + dedup
duckduckgo.rs DDG HTML scraper
fallback.rs FallbackChain async executor
extract/
layer1.rs, layer2.rs CEP CSS+readability extraction
pipeline.rs Speculative parallel extraction
boilerplate.rs QADD pre-filter (strips script/style/svg)
cep_predictor.rs Decision tree ML predictor for CEP layer selection
token/
qatbe.rs BM25 + hybrid embedding ranking, greedy knapsack
scs.rs 8 segment types, token-efficient JSON
pds.rs 4-tier progressive streaming
counter.rs Heuristic tokenizer + TokenBudget
rank/
bm25.rs tantivy-backed Bm25Scorer
signals.rs ScoringContext (batch embeddings), HyperFusion 8-signal ranking
fusion.rs hyperfusion_rank()
validate/
cross_source.rs V4 bigram-Jaccard clustering, negation-aware contradiction
temporal.rs V3 exponential decay, intent classification
authority.rs V1 domain tiers, SSL/redirect penalties
rar.rs 5 reflection checkpoints R1-R5
intelligence/
pie/ STM (source trust), FPM (failure patterns), QPM (query prediction), PKG
edf.rs Evidence decay function, domain half-lives
cce.rs Confidence calibration (isotonic interpolation)
acs.rs Adversarial content shield (shadow/active mode)
crp.rs Contradiction resolution protocol
sgt.rs Source genealogy tracker (bigram-Jaccard mutation detection)
totr.rs Tree-of-Thoughts research
export/
pandoc.rs PDF: typst (~1s) → xelatex → default; check_typst() for doctor
bibtex.rs Pure Rust BibTeX generator
embeddings/
engine.rs fastembed-rs singleton, embed() + embed_batch()
cache.rs SHA-256 keyed SQLite cache
qadd/pipeline.rs 5-step DOM pruning, chunked embed_batch (EMBED_BATCH_SIZE=128)
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.
- 2d ago First seen · 282 lines · 2,313 tokens per session scan A 0685cf3aed16
Fetchium AGENTS.md is an instructions file published in the GitHub repository zuhabul/Fetchium (4 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 2,313 tokens to every session, about $0.0116 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-31.
Other instructions, from other repositories
openscreen AGENTS.md
Instructions for getopenscreen/openscreen, covering agents.md, setup commands, development principles, project layout and code style.
Claw3D AGENTS.md
Instructions for iamlukethedev/Claw3D, covering agent instructions, cursor cloud specific instructions, service overview, running the app and lint, typecheck, and tests.
commonly CLAUDE.md
Instructions for Team-Commonly/commonly, covering claude.md / agents.md, 🧠 product vision & architecture philosophy, what commonly is, the architecture model and key concepts.
claude-ads CLAUDE.md
Instructions for AgriciDaniel/claude-ads, covering claude ads repository instructions, architecture, development and verification.
openstatus AGENTS.md
AGENTS.md instructions for openstatusHQ/openstatus, covering agents.md, verify your change, toolchain, architecture and tests.
windmill AGENTS.md
AGENTS.md instructions for windmill-labs/windmill, covering windmill, workflow, documentation, dev environment and per-worktree ports and database.