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/HoangP8/toklessWrote 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/rules/hoangp8/tokless/code-index)<a href="https://agentmods.dev/rules/hoangp8/tokless/code-index"><img src="https://agentmods.dev/badge/rules/hoangp8/tokless/code-index/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/rules/hoangp8/tokless/code-index"><img src="https://agentmods.dev/badge/rules/hoangp8/tokless/code-index.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.00268 | $0.00268 |
| Opus 5.5 | $0.00107 | $0.00107 |
| Sonnet 5.5 | $0.00054 | $0.00054 |
| Haiku 4.5 | $0.00027 | $0.00027 |
Grade A, and why
code-index 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 21d 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
Code Index (codegraph)
Tool codegraph_explore gives source, call path, and blast radius in one call.
Rules
.codegraph/index exists: use CodeGraph first.- Use for: how X works, flows, architecture, callers, blast radius, symbols.
- Trust results — no re-read/re-grep. Stale banner? Read only listed files.
- Result spilled? Search only needed symbol; never read whole spill. Use context-mode when spill is large.
- Configs/docs/.env/non-indexed: use normal tools.
- No
.codegraph/: rungit ls-files | wc -l.- ≤5 files or no git: use normal tools.
- Otherwise: run
tokless indexonce.- Ready: use CodeGraph.
- Fails/CLI missing: use normal tools; do not retry.
Examples
codegraph_explore("how does auth middleware validate a JWT")codegraph_explore("flow from HTTP request to DB query")codegraph_explore("OrderService.createOrder callers and blast radius")
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.
- 21d ago Changed · -2 tokens per session c8b31b68a63a
- 1mo ago Changed · -16 tokens per session ceb1dd3553d7
- 3mo ago First seen · 27 lines · 286 tokens per session scan A bd7fef358722
code-index is a cursor rule published in the GitHub repository HoangP8/tokless (420 stars, last pushed 4d ago), licensed MIT. It adds 268 tokens to every session, about $0.0011 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.
code-index compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| code-indexHoangP8/tokless | Cursor rule | 420 | 4d ago | MIT | A | 268 | Cursor |
| engine-internals0xranx/golembot | Cursor rule | 322 | 1mo ago | MIT | A | 0 | Cursor |
| code-stylecoddy-project/coddy-agent | Cursor rule | 215 | yesterday | MIT | A | 366 | Cursor |
| architecturerajudandigam/agent-inspect | Cursor rule | 213 | 4d ago | MIT | A | 70 | Cursor |
| hatch3r-dynamic-stack-verificationhatch3r/hatch3r | Cursor rule | 26 | 2mo ago | MIT | A | 0 | Cursor |
| hatch3r-observability-logginghatch3r/hatch3r | Cursor rule | 26 | 2mo ago | MIT | A | 0 | Cursor |
| modus-checkbox-value-inversion-reactjulianoczkowski/create-trimble-app | Cursor rule | 3 | 4mo ago | MIT | A | 0 | Cursor |