Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add iliaal/codesage/plugin install codesage-toolsWrote 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/commands/iliaal/codesage/codesage-eval)<a href="https://agentmods.dev/commands/iliaal/codesage/codesage-eval"><img src="https://agentmods.dev/badge/commands/iliaal/codesage/codesage-eval/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/commands/iliaal/codesage/codesage-eval"><img src="https://agentmods.dev/badge/commands/iliaal/codesage/codesage-eval.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.00024 | $0.01071 |
| Opus 5.5 | $0.00010 | $0.00428 |
| Sonnet 5.5 | $0.00005 | $0.00214 |
| Haiku 4.5 | $0.00002 | $0.00107 |
Grade A, and why
codesage-eval 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.
Evaluate CodeSage effectiveness on a specific project
Wraps ${CLAUDE_PLUGIN_ROOT}/bin/codesage-eval. Post-deployment effectiveness check: mine real user queries from this project's Claude Code session history, run them through CodeSage, and report how well retrieval performs on queries the user has asked on this codebase.
Use this AFTER /codesage-onboard. Mining requires enough Claude Code session history (rule of thumb: at least a dozen sessions with real queries). With --no-extract, an existing corpus replaces that prerequisite; session history and the extractor are not required.
This is separate from /codesage-bench, which runs a regression suite across all corpora under $CODESAGE_BENCH_CORPUS_DIR (default: ./bench-corpora). /codesage-eval builds a fresh project-specific corpus every run (unless --no-extract is passed).
Step 1: Validate arguments
$ARGUMENTS: first positional arg is the project path and must be an existing directory. For mining (without --no-extract), also require a corresponding ~/.claude/projects/<slug>/ directory with session transcripts and an available extractor. With --no-extract, require the existing <corpus-dir>/<project-name>-session-eval.yaml instead; do not require session history or the extractor. Both modes require a valid bench runner. Stop and explain any missing prerequisite for the selected mode.
Step 2: Run the eval
Read and follow the argument transport procedure.
Use the eval command identifier with the parsed $ARGUMENTS values. The
dispatcher runs ${CLAUDE_PLUGIN_ROOT}/bin/codesage-eval from the currently
installed plugin.
The script does two things:
- Mines up to
--max-cases(default 50) session-based eval cases from the project's Claude Code history. Writes them to<corpus-dir>/<project-name>-session-eval.yaml, overwriting any previous extract unless--no-extractis passed. - Runs
codesage-bench-runneragainst the fresh corpus and saves a timestamped scorecard under<corpus-dir>/history/.
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 Changed 2cba27d06116
- 1mo ago Changed · +1 lines a37f66f2a33a
- 2mo ago Changed 3656f9a2b87f
- 2mo ago Changed f4edad2851f1
- 3mo ago First seen · 64 lines · 24 tokens per session scan A 6fe8697d02fa
codesage-eval is a command published in the GitHub repository iliaal/codesage (22 stars, last pushed today), licensed MIT. It adds 24 tokens to every session and 1,071 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-30.
codesage-eval compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| codesage-evaliliaal/codesage | Command | 22 | today | MIT | A | 24 | Claude Code |
| visualizeHelweg/open-codebase-index | Command | 235 | today | MIT | A | 7 | Claude Code |
| call-graphHelweg/open-codebase-index | Command | 235 | today | MIT | A | 12 | Claude Code |
| peekHelweg/open-codebase-index | Command | 235 | today | MIT | A | 10 | Claude Code |
| searchHelweg/open-codebase-index | Command | 235 | today | MIT | A | 8 | Claude Code |
| indexHelweg/open-codebase-index | Command | 235 | today | MIT | A | 7 | Claude Code |
| reindexHelweg/open-codebase-index | Command | 235 | today | MIT | A | 8 | Claude Code |