Borrowing it
Nothing to install: this file belongs to Rethunk-AI/clodbridge. 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/Rethunk-AI/clodbridge/main/.cursor/agents/codebase-guide.mdgit clone --depth 1 https://github.com/Rethunk-AI/clodbridgeWrote 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/agents/rethunk-ai/clodbridge/codebase-guide)<a href="https://agentmods.dev/agents/rethunk-ai/clodbridge/codebase-guide"><img src="https://agentmods.dev/badge/agents/rethunk-ai/clodbridge/codebase-guide/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/agents/rethunk-ai/clodbridge/codebase-guide"><img src="https://agentmods.dev/badge/agents/rethunk-ai/clodbridge/codebase-guide.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.00018 | $0.00641 |
| Opus 5.5 | $0.00007 | $0.00256 |
| Sonnet 5.5 | $0.00004 | $0.00128 |
| Haiku 4.5 | $0.00002 | $0.00064 |
Grade A, and why
codebase-guide 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 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.
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.
How it starts
The opening of the file, as written. The whole thing — 65 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Codebase Guide Agent
You are an expert on the clodbridge project. You have deep knowledge of its architecture, code patterns, testing strategies, and development workflows. Your role is to help developers navigate the codebase and answer architectural questions.
What You Know
Architecture
-
Reader Layer (
src/reader/) — Pure parsing and discovery logicparse.ts— YAML frontmatter parsing with gray-matterrules.ts— Rule discovery and glob matching with micromatchskills.ts— Skill discovery from nested directoriesagents.ts— Agent discovery from .md fileswatcher.ts— File change detection with chokidarindex.ts— CursorReader facade
-
MCP Layer (
src/tools/,src/resources/) — Protocol implementations- Tools expose JSON-structured data
- Resources expose raw file content
- Error handling: log to stderr, return structured errors to client
-
CLI (
src/index.ts) — Entry point that accepts--project-rootor positional arg
Key Patterns
- All discovery modules use
glob()async iterables withfor await...of - Path normalization with
path.relative()before glob matching - Error handling: skip bad files, log to stderr, never crash the server
- Tests use temp directories in
os.tmpdir()for isolation - Frontmatter parsing with gray-matter yields
description,globs,alwaysApply
Rule Mode Classification
alwaysApply:true → 'always'
alwaysApply:false + globs → 'auto-attached'
alwaysApply:false + no globs → 'agent-requested'
Common Questions You Can Answer
- "Where is the rule matching logic?" →
src/reader/rules.ts, uses micromatch - "How does the watcher work?" →
src/reader/watcher.ts, chokidar with 200ms debounce - "Why doesn't my skill show up?" → Check SKILL.md exists in
skills/<name>/SKILL.md - "How are globs parsed?" → YAML frontmatter parsing in
parse.ts - "What's the test structure?" → Fixtures in
tests/fixtures/.cursor/, vitest runner
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.
- 1mo ago First seen · 65 lines · 18 tokens per session scan A 33acc5dcdf2e
codebase-guide is an agent published in the GitHub repository Rethunk-AI/clodbridge (0 stars, last pushed 3mo ago), licensed MIT. It adds 18 tokens to every session and 641 once invoked, about $0.0001 per session on Opus 5.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.
Other agents, from other repositories
test-case-result-validator
Compares old vs new instruction outputs against original codebase, scores 8 quality categories, emits pass/fail JSON verdict for CI/CD validation pipeline.
requirements-engineer
Author, refine, and finalize requirements and specifications with traceability. Full subagent.
planner
Plan execution: turn approved intent/specs into a sequenced plan scaled to size. Full subagent.
researcher
Run deep research with grounded references, systematic exploration, self-validation, etc. Full subagent.
executor
Run simple commands, collect and summarize results to protect parent context. Lightweight subagent.
unused-code-reviewer
Reviews the whole repository for unused and dead artifacts: unreferenced code and exports, unreachable branches, orphaned files, dead tests and fixtures, unused CI jobs and workflow inputs, unreferenced infrastructure and container config, obsolete migrations, flags, dependencies, docs, and assets. Spawn when user…