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/madebyaris/cursor-composer-rulesWrote 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/madebyaris/cursor-composer-rules/cursor-tools-discipline)<a href="https://agentmods.dev/rules/madebyaris/cursor-composer-rules/cursor-tools-discipline"><img src="https://agentmods.dev/badge/rules/madebyaris/cursor-composer-rules/cursor-tools-discipline/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/madebyaris/cursor-composer-rules/cursor-tools-discipline"><img src="https://agentmods.dev/badge/rules/madebyaris/cursor-composer-rules/cursor-tools-discipline.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.00033 | $0.01460 |
| Opus 5.5 | $0.00013 | $0.00584 |
| Sonnet 5.5 | $0.00007 | $0.00292 |
| Haiku 4.5 | $0.00003 | $0.00146 |
Grade C, and why
cursor-tools-discipline scanned grade C with 1 finding 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 2mo 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
- Destructive commands (`rm -rf`, `git push --force`, dropping a database) wait for an explicit yes in this turn. How it starts
The opening of the file, as written. The whole thing — 119 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Cursor tools harness
Cursor Agent is instructions, tools, and a model (agent overview). There is no cap on tool calls. This rule is the cap: what comes in, which tool runs, what goes out, and when the loop stops.
The always-on loop lives in composer-core § Evidence, then edit. This file is the map.
In
Only these may decide the next action:
- The user message. A follow-up sent while you are working arrives at the next tool call and steers from there. Finish the in-flight call, then apply it. A queued message waits until the turn ends.
- Rules and skills already attached.
- The latest tool result: the file slice, the command output, the schema, the snapshot, the child summary.
- A child summary. Raw child logs stay out of the parent.
These are not inputs:
- A guess standing in for a result you did not run.
- A full-tree read when a search hit exists.
- The same file again, unless the last read left a named question.
- The old text of a file you already edited. Re-read the hunk you changed, not the whole tree.
- A secret, token, or credential copied out of tool output into source or into the user message.
Loop
- Locate — file, then symbol, then line. No edit before a location.
- Act once — one edit or one command. Independent reads go out in one batch.
- Read the result. That result is the next query.
- Stop.
- The check passed → stop.
- The same failure twice (same error text, same command, same snippet) → stop and report. Do not send a third variant.
- Network, sandbox, or auth blocked the call → label blocked and name the unblock. Do not retry the identical call.
- The tool does not exist or the MCP schema has no such parameter → say so. Do not invent the call.
Pick the tool
Prefer structured file tools over shell for read, search, and edit.
| Job | Tool | Keep out |
|---|---|---|
| Read a file | structured file reader | cat, head, tail |
| Find files by name | glob | find, ls -R |
| Search by content | ripgrep / grep tool | shell grep, reading the tree |
| Edit | structured edit | sed, awk, heredoc redirects |
| Run a command | shell | file tools |
| External system | MCP, after the live schema | remembered argument names |
| Wide codebase search | Explore subagent, or parallel grep; parent keeps the summary | dozens of sequential reads in the parent |
| Long or noisy shell | Bash subagent or a background shell | full logs in the user message |
| UI proof | Browser (snapshot, screenshot, console, network) | "looks fine in the diff" |
| Isolated specialist work | Task with goal, constraints, pointers, done, return shape | "help me with this" |
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.
- 2mo ago Changed · -7 lines · +10 tokens per session 3ac1062bca6b
- 3mo ago First seen · 126 lines · 23 tokens per session scan C c0161e321359
cursor-tools-discipline is a cursor rule published in the GitHub repository madebyaris/cursor-composer-rules (3 stars, last pushed 2mo ago), licensed MIT. It adds 33 tokens to every session and 1,460 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
cursor-tools-discipline compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cursor-tools-disciplinemadebyaris/cursor-composer-rules | Cursor rule | 3 | 2mo ago | MIT | C | 33 | Cursor |
| data-fetchingkensaurus/cursor-kenji | Cursor rule | 9 | 2mo ago | MIT | A | 0 | Cursor |
| webkensaurus/cursor-kenji | Cursor rule | 9 | 2mo ago | MIT | A | 0 | Cursor |
| componentskensaurus/cursor-kenji | Cursor rule | 9 | 2mo ago | MIT | A | 0 | Cursor |
| gitkensaurus/cursor-kenji | Cursor rule | 9 | 2mo ago | MIT | A | 5 | Cursor |
| approved-plan-executionkensaurus/cursor-kenji | Cursor rule | 9 | 2mo ago | MIT | A | 57 | Claude Code, Cursor |
| verification-before-completionkensaurus/cursor-kenji | Cursor rule | 9 | 2mo ago | MIT | A | 681 | Cursor |