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/1broseidon/ketch/claude-mdgit clone --depth 1 https://github.com/1broseidon/ketchWrote 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/1broseidon/ketch/claude-md)<a href="https://agentmods.dev/instructions/1broseidon/ketch/claude-md"><img src="https://agentmods.dev/badge/instructions/1broseidon/ketch/claude-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.1 | $0.03371 | $0.03371 |
| Opus 5 | $0.01685 | $0.01685 |
| Sonnet 5 | $0.00674 | $0.00674 |
| Haiku 4.5 | $0.00337 | $0.00337 |
Grade B, and why
ketch CLAUDE.md scanned grade B 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 6d 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.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
- **Hygiene**: cookie values are never printed anywhere (frontmatter, `--json`, errors, `ketch doctor`). `ketch doctor` reports `cookies/jar: configured (N cookies, M expired)`. A group/world-readable jar triggers a one- Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
BYO cookies for session/consent-gated pages (issue #25). ketch loads a **Netscape `cookies.txt`** jar (browser-extension / curl / yt-dlp format) and attaches matching cookies at **both** fetch layers — the HTTP path (`sc How it starts
The opening of the file, as written. The whole thing — 222 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Ketch
Fast, stateless CLI for agentic web search and scrape. Single Go binary, no daemon.
Architecture
See AGENTS.md for full module layout and design principles, and design/DESIGN.md for the reasoning behind them — read its Non-Goals & Scope before adding a feature.
cmd/— Cobra CLI (root, search, code, docs, scrape, extract, crawl, config, cache, browser, doctor, mcp, version)code/—code.Searcherinterface with Grep (built-in default), Sourcegraph, and GitHub backendsdocs/—docs.Searcherinterface with Context7 backend (local FTS5 planned)search/—Searcherinterface with Brave (built-in default), DDG, SearXNG, Exa, Firecrawl, Keenable, Tavily, Parallel, and SerpBase backendsscrape/— HTTP fetch + browser fallback via Rod for JS-rendered pagesextract/— readability + html-to-markdown pipeline, JS shell detection heuristiccrawl/— BFS/sitemap crawler with background execution and status trackingconfig/— JSON config at~/.config/ketch/config.jsoncache/— TTL-based page cache backed by bbolt (~/.cache/ketch/cache.db)
Build & Test
make build # builds ./ketch
make lint # golangci-lint (gocyclo max 15)
make test # go test ./...
Pre-commit hook (.githooks/pre-commit) runs gofmt, vet, lint, and tests. Git is configured to use .githooks/ as hooks path.
Output Format
Default output uses YAML frontmatter + markdown (cymbal style):
ketch scrape— frontmatter (url, title, words) + markdown bodyketch search— frontmatter (query, backend, result_count) + result list. Under--multithe frontmatter usesbackends:(plural, the engines that contributed) plus afailed:key for partial failures, and each result gains afound in:line /backendsJSON field--jsonflag available on all commands for structured JSON output
Output Flags (all commands)
| Flag | Scope | Default | Description |
|---|---|---|---|
--max-chars N |
scrape, search --scrape | 0 (off) | Truncate markdown output to N chars, appends [truncated] |
--trim |
scrape, search --scrape | false | Strip markdown formatting syntax, keep content text only (~30-40% token reduction) |
--minimal |
search, code, docs | false | One result per line, tab-separated url/title/snippet, no frontmatter (a 4th backends column is appended under search --multi, plain search only — --scrape --minimal keeps 3 columns) |
--multi[=list] |
search | — | Federated search across backends (RRF fusion, URL-dedup'd); bare/=all = every usable backend, =brave,exa = a set; mutually exclusive with --backend |
--select <css> |
scrape | — | Extract only elements matching CSS selector (skips readability) |
--no-llms-txt |
scrape | false | Disable automatic /llms.txt detection for bare domains |
--raw |
scrape | false | Output raw HTML instead of markdown (skips /llms.txt; incompatible with --select/--trim) |
--force-browser |
scrape | false | Always render via the configured browser, skipping JS-shell auto-detection (errors without a browser); composes with --raw and --select |
--cookie-file <path> |
scrape, search --scrape, crawl | off (config cookie_file) |
Netscape cookies.txt jar; matching cookies attached at both fetch layers. Overrides cookie_file; empty value disables. Values never printed |
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.
- 6d ago First seen · 222 lines · 3,371 tokens per session scan B 49b10bab5bbf
ketch CLAUDE.md is an instructions file published in the GitHub repository 1broseidon/ketch (540 stars, last pushed 5d ago), licensed MIT. It adds 3,371 tokens to every session, about $0.0169 per session on Opus 5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
Scrapegraph-ai AGENTS.md
Instructions for ScrapeGraphAI/Scrapegraph-ai, covering agents.md, 1. golden rule: everything goes to pre/beta, 1. always start from an up-to-date pre/beta, 2. commit your work and 3. push and open the pr against pre/beta.
rayobrowse AGENTS.md
Instructions for rayobyte-data/rayobrowse, covering agents.md, what this project is, prerequisites, local setup and primary usage pattern.
cs CLAUDE.md
Claude Code instructions for boyter/cs, covering claude.md, project overview, build & test commands, architecture and query pipeline (pkg/search/).
SearChat CLAUDE.md
Claude Code instructions for yokingma/SearChat, covering claude.md, project overview, architecture, monorepo structure and key technologies.
Xapiand AGENTS.md
Instructions for Kronuz/Xapiand, covering agents.md — working in the xapiand codebase, first, the big split: own code vs. vendored, where things live, build & toggles and verifying changes end-to-end (the docs are a test suite).
AutomatiQ AGENTS.md
AGENTS.md instructions for StoneSteel27/AutomatiQ, covering agent guidelines, project map, daily commands, doctrine and config.