Borrowing it
Nothing to install: this file belongs to 1broseidon/ketch. 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/1broseidon/ketch/main/AGENTS.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/agents-md)<a href="https://agentmods.dev/instructions/1broseidon/ketch/agents-md"><img src="https://agentmods.dev/badge/instructions/1broseidon/ketch/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/1broseidon/ketch/agents-md"><img src="https://agentmods.dev/badge/instructions/1broseidon/ketch/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.05392 | $0.05392 |
| Opus 5.5 | $0.02157 | $0.02157 |
| Sonnet 5.5 | $0.01078 | $0.01078 |
| Haiku 4.5 | $0.00539 | $0.00539 |
Grade A, and why
ketch 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 5d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -L https://example.com | ketch extract # piped HTML → markdown (no fetch) 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.
Ketch — Architecture
Fast, stateless CLI for agentic web search and scrape.
Module Layout
main.go Thin entry point → cmd.Execute()
cmd/
root.go Cobra root, global flag (--json)
search.go Search command: query → results, optional --scrape
scrape.go Scrape command: URLs → markdown, concurrent batch
extract.go Extract command: piped HTML → markdown (no fetch/cache/browser)
crawl.go Crawl command: BFS/sitemap crawl with streaming output
crawl_bg.go Background crawl: status, stop subcommands, worker mode
code.go Code search command: query → snippet results, --lang/--repo filters, literal-qualifier warnings
docs.go Docs search command: query → docs/snippet results, --library, --resolve
config.go Config command: discovery, init, set, path
cache.go Cache command: stats (page cache and tag index), clear
tag.go Tag command: add, show, list, remove over the durable tag index
browser.go Browser command: install, status
doctor.go Doctor command: report formatting + exit-code gating over doctor.Run
mcp.go MCP command: `mcp serve` runs the MCP server over stdio
proc_unix.go Unix process management (detach, signals)
proc_windows.go Windows process management stub
search/ Searcher interface + Brave/DDG/SearXNG/EXA/Firecrawl/Keenable/Tavily/TinyFish/Parallel/SerpBase/Degoog/Serply/Youcom backends; NewFromConfig resolves the ordered provider registry for cmd/ and mcp/. auto.go is the default `auto` backend (keyless fallback chain, AutoRank-ordered), multi.go adds federated --multi search (RRF fusion, NewMultiFromConfig), random.go shuffled fallback, canonical.go the URL dedup keys
code/ code.Searcher interface + GrepApp/Sourcegraph/GitHub backends; NewFromConfig resolves the ordered provider registry. Query.Repo (owner/name, filter.go) is exact on every backend: each translates it and narrows a looser native filter itself
docs/ docs.Searcher interface + Context7 backend (FTS5 local is an unimplemented stub); NewFromConfig resolves the ordered provider registry
mcp/ MCP server (search/code/docs/scrape/crawl/tag tools; the mcp_tools config key is an allowlist over the published set) over the go-sdk mcp package; Server struct holds the shared scraper + cache, tools call the same NewFromConfig constructors as the CLI
scrape/ HTTP fetch + Page type, JS detection fallback, Rod browser; pipeline.go has the cache-aware scrape pipeline (CachedScrape*, ScrapeSelector, FetchLLMSTxt) shared by cmd/ and mcp/
extract/ structural extraction (landmark → uniform sections → prose root, chrome pruned by what it is; config extract_mode clean|complete) with readability fallback and html-to-markdown, charset decoding, JS shell detection (Detector: built-in + config spa_markers, modern hydration/streaming frameworks)
crawl/ BFS crawler, work queue + worker pool, background status
cookies/ Netscape cookies.txt jar loader + RFC 6265 domain/path matching (Jar.For); nil-safe, values never logged
config/ JSON config loading/saving (~/.config/ketch/)
doctor/ Health checks: concurrent read-only probes per backend + browser + cache + tag index (informational, never gates the exit code), status classification (ok/no_key/unreachable/misconfigured/skipped)
health/ Shared bounded provider health checks (Status classification, HTTP probe helpers) used by doctor and the search/code/docs provider probes
cache/ TTL page cache (Store interface, BBoltStore backend) and durable bookmarks in a separate tags.db (tags.go/tag_store.go). Both open their bbolt file per transaction through boltfile.go and never hold it between operations (ADR-0006); writes sweep expired pages at most hourly, and cache clear deletes the file without touching bookmarks
httpx/ Shared tuned *http.Transport for all HTTP backends
updatecheck/ "new release available" probe + throttled stderr hint
site/ Builds ketch.run from MANUAL.md with inkcap (GitHub Pages, docs.yml)
skills/ketch/ Bundled research skill (SKILL.md + references), loaded by Claude Code and pi
plugins/ketch/ Claude Code plugin (.mcp.json → `ketch mcp serve`, symlinked skill); listed by .claude-plugin/marketplace.json
plugins/pi/ pi package extension (ketch_* tools over `ketch … --json`) + node:test suite; manifest is the root package.json, `npm test` runs it
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.
- 5d ago Changed · +3 lines · +100 tokens per session c86a83d2222e
- 16d ago Changed · +1 lines · +30 tokens per session 5e8d24fe4ac8
- 26d ago Changed · +18 tokens per session 57b9154dad2e
- 28d ago Changed · +8 lines · +232 tokens per session c00005d8be3b
- 1mo ago Changed · +61 tokens per session a4b4974430e2
- 1mo ago Changed · +14 lines · +690 tokens per session cdd1a6a0e09d
- 1mo ago Changed · +1 lines · +76 tokens per session a421b106aac3
- 1mo ago Changed · +9 lines · +260 tokens per session c497ed6cccb0
- 1mo ago Changed · +2 lines · +58 tokens per session 5d389a33f547
- 1mo ago First seen · 194 lines · 3,867 tokens per session scan A c1ba2fd9b299
ketch AGENTS.md is an instructions file published in the GitHub repository 1broseidon/ketch (732 stars, last pushed 2d ago), licensed MIT. It adds 5,392 tokens to every session, about $0.0216 per session on Opus 5.5. A static security scan graded it A with 1 finding (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
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
vscode copilot-instructions.md
Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).
deno copilot-instructions.md
Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.