coldstart CLAUDE.md

coldstart CLAUDE.md is an instructions file for coding agents from AkashGoenka/coldstart. It costs 6,203 tokens per session, scanned A, original, MIT.

A lightweight code-repository navigation guide for coding agents. It indexes file paths, names, exports, imports, callers, and related edit history so an agent can locate relevant code.

In plain words
What is it for?
Use it to find likely files for a task, inspect a file’s symbols and connections, and understand which files import or call one another.
Why use it?
It reduces the time and context needed to find where a change belongs, especially in unfamiliar repositories. It also separates actual code relationships from files that merely tend to be edited together.

Instructions file

Install

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.

agentmods
npx agentmods add instructions/akashgoenka/coldstart/claude-md
Clone the repo
git clone --depth 1 https://github.com/AkashGoenka/coldstart

Wrote 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.

agentmods badge for coldstart CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/akashgoenka/coldstart/claude-md.svg)](https://agentmods.dev/instructions/akashgoenka/coldstart/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/akashgoenka/coldstart/claude-md"><img src="https://agentmods.dev/badge/instructions/akashgoenka/coldstart/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 6,203 This file is loaded in full into every session.
When invoked 6,203 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.06203 $0.06203
Opus 5 $0.03102 $0.03102
Sonnet 5 $0.01241 $0.01241
Haiku 4.5 $0.00620 $0.00620

Measured 5d ago against content hash db2cd3a8823c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

coldstart CLAUDE.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 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.

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.

CLAUDE.md · 57 lines

How it starts

The opening of the file, as written. The whole thing — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.

coldstart-mcp

Lightweight navigation layer for AI agents. Answers one question: which files are relevant to this task? Fast static index over file paths, symbol names, and exports — queried via two operations, find (ranked file paths matched against declared names: filenames, path segments, exported symbols, plus a repo-wide grep-recall pass) and gs (for a single file: top-level symbols with per-symbol cross-file callers, 1-hop internal imports, reverse importers, and a "Edited together" section derived from git history — files that keep changing in the same commits, which is a habit and NOT a dependency edge, rendered in EVERY view because narrowing asks for less of the file rather than fewer channels; view: "full" is the default and returns all of it in one call). Both are exposed two ways with identical output: as CLI commands (coldstart find / coldstart gs) for shell-capable agents — the primary path — and as MCP tools (find / gs) for no-shell clients like Claude Desktop.

Architecture — one keeper, thin readers. The query surfaces are stateless readers over an on-disk cache; a single background keeper process keeps that cache fresh. It does NOT serve queries.

  • Keeper (coldstart --daemon, src/index.ts runKeeper + src/index-manager.ts): watches the repo, patches/rebuilds the index, debounce-saves it to the disk cache. Lazy-spawned by the first reader (src/keeper.ts ensureKeeper); logs to ~/.coldstart/daemon/<root>.log; exits when its lockfile is removed, a foreign pid takes over the lock, or its own entry binary disappears (watchOwnBinary in src/daemon-lock.ts — a 15 s poll, two consecutive misses, so a keeper self-reaps within ~30 s of an npm uninstall/moved install, the only shutdown path once the CLI is gone). The lock carries pid/rootDir/version (no port — it serves nothing).
  • CLI readers (coldstart find/gs, src/cli.ts): load the cache under a load profile, run the same engine, print, exit. They ensureKeeper so uncommitted edits stay live. Readers NEVER build: cache miss → wait for the keeper's first save (180 s); git-HEAD drift → wait for its reconcile re-save (12 s); in-process build only on the no-keeper fallback.
  • MCP reader (default invocation, src/server/mcp.ts + src/index.ts makeCacheReader): a long-lived stdio server that reads the keeper's cache and mtime-reloads when it changes. The keeper is the single freshness authority; the server has no watcher of its own.

Freshness (no TTL — deleted in v18). Validity = CACHE_VERSION + git HEAD + reconcile + live watcher. At keeper start, src/indexer/reconcile.ts stat-walks every indexed file against its [mtimeMs,size] fingerprint (stamped in baseIndexedFile) + git-diffs against the indexed HEAD, then patches exactly the changed set (branch switch = ~3 s patch, was a full rebuild). After every patch, src/indexer/invariants.ts lints the index (violation → auto-rebuild); after every save, a rotating 50-file fingerprint audit re-patches watcher-missed drift. keeper-state.json (last reconcile/patch/rebuild/save) + repair.jsonl (failures) sit beside the cache; status renders both. The keeper watches its own lockfile with pid-ownership + a 30 s poll backstop (foreign pid → exit).

find speed: the repo-wide reference scan resolves a real ripgrep (src/server/searcher.ts: COLDSTART_RG → PATH → bundled @vscode/ripgrep → editor-app copies; winner persisted in ~/.coldstart/searcher.json), falling back to git grep → grep → Node scan.

For Rails repos: the Ruby parser emits synthetic edges for has_many/belongs_to/has_one/has_and_belongs_to_many (gated to app/models/), parses config/routes.rb resources, and adds bidirectional controller↔views edges. Polymorphic associations and gem-backed models stay unresolved (runtime DSL).

Index pipeline: walk → parse (Tree-sitter via web-tree-sitter (WASM) — the native node-tree-sitter engine was dropped in #68; all 15 grammars are inert .wasm vendored in vendor/wasm/, loaded once by ensureParsersReady() in src/indexer/parser.ts, no per-grammar peer-dep / node-gyp / install scripts → plain npm i for TS/JS/JSX/TSX/Java/Ruby/Python/Go/Rust/C#/PHP/Kotlin/C++/YAML/TOML/XML/Groovy; SFC script blocks extracted from Vue/Svelte/Astro before TS parsing; GraphQL/.env/AngularJS 1.x via regex extractors; Swift/Dart not indexed) → resolve imports → build graph (including cross-file call edge resolution) → save cache. Behaviour is byte-identical to the old native engine (proven with natives pruned) and 1.3–3.6× faster through the walk-heavy extract phase.

Read the full file on GitHub · 57 lines

Changes

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.

  1. 5d ago First seen · 57 lines · 6,203 tokens per session scan A db2cd3a8823c

Subscribe to this mod's changes

coldstart CLAUDE.md is an instructions file published in the GitHub repository AkashGoenka/coldstart (9 stars, last pushed 9d ago), licensed MIT. It adds 6,203 tokens to every session, about $0.0310 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.