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/context-tools)<a href="https://agentmods.dev/rules/hoangp8/tokless/context-tools"><img src="https://agentmods.dev/badge/rules/hoangp8/tokless/context-tools/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/context-tools"><img src="https://agentmods.dev/badge/rules/hoangp8/tokless/context-tools.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.00342 | $0.00342 |
| Opus 5.5 | $0.00137 | $0.00137 |
| Sonnet 5.5 | $0.00068 | $0.00068 |
| Haiku 4.5 | $0.00034 | $0.00034 |
Grade A, and why
context-tools 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 24d 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
Context Tools (context-mode)
Tools ctx_* keep large or uncertain analysis out of context.
Rules
| Tool | Role |
|---|---|
ctx_execute |
Run code or a command in sandbox, or analyze a file via file. Only stdout enters context. |
ctx_batch |
Run many commands plus search queries in one call. |
ctx_index |
Index a file, text, or URL (path, content, url) with a source label. |
ctx_search |
Query indexed content and session memory. |
readsmall files and files you will edit. Analyze large files and logs withctx_execute(fileparam); print only the answer.
Examples
ctx_execute(language:"shell", code:"git log --oneline -20 | wc -l")
ctx_execute(language:"shell", file:"app.log", code:"grep -c ERROR \"$CTX_FILE\"")
ctx_batch(commands:["git diff HEAD~1"], queries:["failures"])
ctx_index(url:"https://docs.example.com/api", source:"api-docs")
ctx_search(queries:["auth endpoint"], source:"api-docs")
Use host tools for edits, Git writes, navigation, installs, and small output. Use context-mode for analysis and large command output. Sandbox writes do not affect host files.
Windows: pwsh -NoProfile -Command, absolute paths, X:\ maps to /x/, quote spaces.
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.
- 24d ago Changed · -32 lines · -289 tokens per session 8375f1f7076a
- 1mo ago Changed · +7 lines · +49 tokens per session ca8a8233bbc5
- 3mo ago First seen · 58 lines · 582 tokens per session scan A 713e1e8e5417
context-tools is a cursor rule published in the GitHub repository HoangP8/tokless (422 stars, last pushed yesterday), licensed MIT. It adds 342 tokens to every session, about $0.0014 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.
context-tools compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| context-toolsHoangP8/tokless | Cursor rule | 422 | yesterday | MIT | A | 342 | Cursor |
| cursor-memoryEliasOulkadi/shokunin | Cursor rule | 112 | 1mo ago | MIT | A | 150 | Cursor |
| noteseuropean-epc-competence-center/opencode-container | Cursor rule | 7 | 7mo ago | GPL-3.0 | A | 867 | Cursor |
| ponytailDietrichGebert/ponytail | Cursor rule | 202k | 9d ago | MIT | A | 604 | Cursor |
| angular-20angular/angular | Cursor rule | 102k | today | MIT | A | 0 | Cursor |
| dev-standardapache/superset | Cursor rule | 76k | today | Apache-2.0 | A | 1,147 | Cursor |
| prefer-assertions-over-defensive-checksprisma/orm | Cursor rule | 48k | today | Apache-2.0 | A | 0 | Cursor |