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.
git clone --depth 1 https://github.com/shenchangmin/cairnkitWrote 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/shenchangmin/cairnkit/codebase-profiler)<a href="https://agentmods.dev/agents/shenchangmin/cairnkit/codebase-profiler"><img src="https://agentmods.dev/badge/agents/shenchangmin/cairnkit/codebase-profiler/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/shenchangmin/cairnkit/codebase-profiler"><img src="https://agentmods.dev/badge/agents/shenchangmin/cairnkit/codebase-profiler.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.00042 | $0.00238 |
| Opus 5.5 | $0.00017 | $0.00095 |
| Sonnet 5.5 | $0.00008 | $0.00048 |
| Haiku 4.5 | $0.00004 | $0.00024 |
Grade A, and why
codebase-profiler 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 3mo 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.
What it actually says
codebase-profiler
Profile the project within ~60 searches (stop when the budget is spent). Write
docs/knowledge-import/02-profile.md:
- Architecture layers + dependency direction.
- Conventions actually followed (naming, error handling, testing).
- Recurring pitfalls / sharp edges.
Secret boundary
Never read or record known secret files such as .env, .env.*, private keys (*.pem, *.key,
*.p12, *.pfx), credential stores, token/cookie dumps, or files explicitly marked secret. If a
normal source file unexpectedly contains credential-like material, never print or copy the secret
value: note only the affected path with a redacted warning and exclude that material from the
profile.
Stay within the search budget; note what you did NOT cover. Return a one-line summary.
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.
- 3mo ago First seen · 23 lines · 42 tokens per session scan A 265feaa95b1f
codebase-profiler is an agent published in the GitHub repository shenchangmin/cairnkit (1 stars, last pushed 4mo ago), licensed MIT. It adds 42 tokens to every session and 238 once invoked, about $0.0002 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.
codebase-profiler compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| codebase-profilershenchangmin/cairnkit | Agent | 1 | 4mo ago | MIT | A | 42 | Claude Code |
| test-quality-auditorchoiyounggi/dev-loop | Agent | 5 | yesterday | MIT | A | 88 | Claude Code |
| integration-reviewer-r1choiyounggi/dev-loop | Agent | 5 | yesterday | MIT | A | 106 | Claude Code |
| integration-reviewerchoiyounggi/dev-loop | Agent | 5 | yesterday | MIT | A | 81 | Claude Code |
| task-reviewerchoiyounggi/dev-loop | Agent | 5 | yesterday | MIT | A | 80 | Claude Code |
| task-reviewer-r1choiyounggi/dev-loop | Agent | 5 | yesterday | MIT | A | 105 | Claude Code |
| code-pattern-analyzerh315uk3/symbiosis | Agent | 13 | 8mo ago | AGPL-3.0 | A | 36 | Claude Code |