Borrowing it
Nothing to install: this file belongs to zuhabul/Fetchium. 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/zuhabul/Fetchium/main/CLAUDE.mdgit clone --depth 1 https://github.com/zuhabul/FetchiumWrote 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/zuhabul/fetchium/claude-md)<a href="https://agentmods.dev/instructions/zuhabul/fetchium/claude-md"><img src="https://agentmods.dev/badge/instructions/zuhabul/fetchium/claude-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/zuhabul/fetchium/claude-md"><img src="https://agentmods.dev/badge/instructions/zuhabul/fetchium/claude-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.02643 | $0.02643 |
| Opus 5.5 | $0.01057 | $0.01057 |
| Sonnet 5.5 | $0.00529 | $0.00529 |
| Haiku 4.5 | $0.00264 | $0.00264 |
Grade C, and why
Fetchium CLAUDE.md scanned grade C with 2 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 2mo 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.
Downloads and executes remote codehighSupply chain
curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.
| GitHub Releases | `curl -sSf https://install.fetchium.com \| sh` | ✅ All 5 platforms | Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
| GitHub Releases | `curl -sSf https://install.fetchium.com \| sh` | ✅ All 5 platforms | How it starts
The opening of the file, as written. The whole thing — 232 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Build Commands
# Check all crates compile (fast, no linking)
cargo check
# Build the fetchium binary
cargo build -p fetchium-cli
# Build optimized release binary
cargo build -p fetchium-cli --release
# Run the binary
./target/debug/fetchium --help
./target/debug/fetchium doctor
# Run all tests
cargo test
# Run tests for a specific crate
cargo test -p fetchium-core
cargo test -p fetchium-cli
# Run a single test by name
cargo test -p fetchium-core extract::layer1::tests::extract_simple_page
# Lint (zero warnings policy — treat warnings as errors in CI)
cargo clippy -- -D warnings
# Format
cargo fmt
# Generate docs
cargo doc --open
macOS SDK Note
Xcode on this machine sometimes defaults to the iPhoneOS SDK, which breaks C dependency compilation (zstd-sys, rusqlite, ring). This is fixed in .cargo/config.toml which forces SDKROOT to the macOS SDK. If you see "architecture not supported" errors, run:
export SDKROOT=$(xcrun --sdk macosx --show-sdk-path)
Architecture Overview
Fetchium is a Cargo workspace with 4 crates:
| Crate | Role |
|---|---|
fetchium-core |
All algorithms: search, extract, rank, validate, cache, AI, intelligence |
fetchium-cli |
The fetchium binary — clap derive CLI, delegates everything to fetchium-core |
fetchium-mcp |
MCP server (Phase 4) — exposes fetchium-core as Model Context Protocol tools |
fetchium-api |
REST API server via axum (Phase 4) |
Data flow: CLI command → FetchiumConfig → fetchium-core pipeline → formatted output
The CLI (fetchium-cli/src/main.rs) parses args, loads config, then dispatches to one file per command in crates/fetchium-cli/src/commands/. Each command calls into fetchium-core modules.
fetchium-core Module Map
The retrieval pipeline is implemented across these modules. Foundational types/config:
types.rs— Shared data types:AgentSearchResult,SearchResult,ResultItem,Segment,Finding,Source,EvidenceGraph,CepLayer,PdsTier,ResourceTier,BackendId, etc.error.rs—FetchiumError,StructuredError,ErrorKind,FetchiumResult<T>config.rs—FetchiumConfigloaded from~/.fetchium/config.tomlwith env var overrides; includesdetect_resource_tier()anddata_dir()http/client.rs—HttpClient(reqwest with pooling/retries)resource/mod.rs—detect_tier()delegating toFetchiumConfig::detect_resource_tier()
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.
- 2mo ago First seen · 232 lines · 2,643 tokens per session scan C f56878e39639
Fetchium CLAUDE.md is an instructions file published in the GitHub repository zuhabul/Fetchium (4 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 2,643 tokens to every session, about $0.0106 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Fetchium CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| Fetchium CLAUDE.mdzuhabul/Fetchium | Instructions file | 4 | 4mo ago | Apache-2.0 | C | 2,643 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |