coderlm: Instructions file for Claude Code

CLAUDE.md

coderlm CLAUDE.md is an instructions file for Claude Code from JaredStewart/coderlm. It costs 1,481 tokens per session, scanned A, original, MIT.

A project guide for Claude Code, an AI coding assistant, explaining CodeRLM and how to build and use it. CodeRLM indexes files and symbols so an assistant can request focused code context.

In plain words
What is it for?
Understanding the repository layout, building the Rust server, and using the plugin’s commands, hooks, and code-search workflow.
Why use it?
It helps an assistant explore a large codebase without loading every file or guessing where information is stored.

Instructions file for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: reads .claude/ paths; mentions .claude-plugin; mentions CLAUDE.md.

This is JaredStewart/coderlm's own configuration. It tells Claude Code how to work on coderlm itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything coderlm configures →

Reuse

Borrowing it

Nothing to install: this file belongs to JaredStewart/coderlm. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/JaredStewart/coderlm/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/JaredStewart/coderlm

Made for: Claude Code.

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 coderlm CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/jaredstewart/coderlm/claude-md/github.svg)](https://agentmods.dev/instructions/jaredstewart/coderlm/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/jaredstewart/coderlm/claude-md"><img src="https://agentmods.dev/badge/instructions/jaredstewart/coderlm/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.

agentmods 80×15 button for coderlm CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/jaredstewart/coderlm/claude-md"><img src="https://agentmods.dev/badge/instructions/jaredstewart/coderlm/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,481 This file is loaded in full into every session.
When invoked 1,481 The same file — it is already loaded in full.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.01481 $0.01481
Opus 5.5 $0.00592 $0.00592
Sonnet 5.5 $0.00296 $0.00296
Haiku 4.5 $0.00148 $0.00148

Measured 1mo ago against content hash 16ce189053f4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

coderlm CLAUDE.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 1mo 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 http://127.0.0.1:3000/api/v1/health
CLAUDE.md · 103 lines

How it starts

The opening of the file, as written. The whole thing — 103 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.

What This Is

CodeRLM applies the Recursive Language Model (RLM) pattern to codebases. A Rust server indexes a project's files and symbols (via tree-sitter), then exposes a JSON API that LLM agents query for targeted context — structure, symbols, source, callers, tests, grep. An agent skill (plugin/skills/coderlm/) wraps the API with a Python CLI and a structured workflow so Claude Code can explore unfamiliar codebases without loading everything into context.

Repository Layout

  • server/ — Rust codebase (the only code that gets built). Has its own .git.
  • plugin/ — Self-contained Claude Code plugin root
    • plugin/skills/coderlm/ — Skill definition + Python CLI wrapper
    • plugin/hooks/ — Claude Code hooks (SessionStart, UserPromptSubmit, PreCompact, Stop)
    • plugin/commands/ — Slash command definitions
    • plugin/scripts/ — Hook scripts (session lifecycle)
    • plugin/.claude-plugin/ — Plugin manifest (plugin.json)
  • .claude-plugin/ — Marketplace manifest (marketplace.json), points to plugin/

Build & Run

All commands run from server/:

# Build
cd server && cargo build

# Build release
cd server && cargo build --release

# Run
cd server && cargo run -- serve                       # no project pre-indexed
cd server && cargo run -- serve /path/to/project      # pre-index a project
cd server && cargo run -- serve --port 8080           # custom port

# Check compilation without building binary
cd server && cargo check

# Verify server is running
curl http://127.0.0.1:3000/api/v1/health

There are no tests yet. When adding tests, use cargo test from server/.

Server Architecture

The server is a single-binary axum application. Key modules under server/src/:

  • main.rs — CLI parsing (clap) and server startup
  • server/ — HTTP layer
    • state.rs — AppState holding DashMap<PathBuf, Project> and DashMap<String, Session>. Multi-project support with LRU eviction at capacity.
    • routes.rs — All route handlers. Each handler calls require_project() to resolve session→project, then delegates to an ops function.
    • session.rs — Session struct with command history
    • errors.rs — AppError enum mapped to HTTP status codes (400/404/410/500)
  • index/ — Filesystem indexing
    • file_tree.rs — FileTree (DashMap of relative path → FileEntry). Supports definitions and marks.
    • walker.rs — Gitignore-aware directory scan using the ignore crate
    • watcher.rs — notify-debouncer-mini filesystem watcher; re-indexes changed files
    • file_entry.rs — FileEntry struct (path, size, language, definition, mark)
  • symbols/ — Symbol extraction
    • mod.rs — SymbolTable with DashMap primary store keyed by "file::name" and secondary indices by name and file
    • symbol.rs — Symbol struct and SymbolKind enum
    • parser.rs — Runs tree-sitter on files, dispatches to per-language queries
    • queries/ — Tree-sitter query strings per language: symbols, callers (call-expression), variables (local bindings) for Rust, Python, TypeScript, Go (JS reuses TS base)
  • ops/ — Business logic called by route handlers
    • structure.rs — File tree rendering, define/redefine/mark
    • symbol_ops.rs — Symbol list/search/implementation/callers (AST-aware)/tests/variables (AST-aware)
    • content.rs — peek, grep (with scope-aware filtering), chunk_indices
    • annotations.rs — Save/load annotations to/from JSON on disk
    • history.rs — Session history retrieval
  • config.rs — Hardcoded ignore patterns and max file size constant

Read the full file on GitHub · 103 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. 1mo ago First seen · 103 lines · 1,481 tokens per session scan A 16ce189053f4

Subscribe to this mod's changes

coderlm CLAUDE.md is an instructions file published in the GitHub repository JaredStewart/coderlm (304 stars, last pushed 14d ago), licensed MIT. It adds 1,481 tokens to every session, about $0.0059 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.

Related

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

microsoft/vscode · 9,649 tokens

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.

vercel/next.js · 7,257 tokens

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

microsoft/vscode · 5,262 tokens

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.

langchain-ai/langchain · 4,680 tokens

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

microsoft/vscode · 2,731 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,159 tokens