cursor-tools-discipline

cursor-tools-discipline is a cursor rule for Cursor from madebyaris/cursor-composer-rules. It costs 33 tokens per session (1,460 once invoked), scanned C, original, MIT.

A set of rules for choosing coding tools deliberately, such as file readers, search tools, shell commands, or separate agents.

In plain words
What is it for?
Use it when reading or editing files, searching code, running commands, calling external tool servers, delegating research, or checking a user interface.
Why use it?
It reduces noisy output, guessed tool inputs, unnecessary work, and unsupported results by matching each task with the right tool and evidence.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions subagents; mentions Cursor.

Good fit Use it when reading or editing files, searching code, running commands, calling external tool servers, delegating research, or checking a user interface.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/madebyaris/cursor-composer-rules/cursor-tools-discipline
Install

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.

Clone the repo
git clone --depth 1 https://github.com/madebyaris/cursor-composer-rules

Made for: Cursor.

Wrote 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.

agentmods badge for cursor-tools-discipline

README.md
[![agentmods](https://agentmods.dev/badge/rules/madebyaris/cursor-composer-rules/cursor-tools-discipline/github.svg)](https://agentmods.dev/rules/madebyaris/cursor-composer-rules/cursor-tools-discipline)
Your own site
<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.

agentmods 80×15 button for cursor-tools-discipline

Your own site · 80×15
<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>
Per session 33 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,460 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 2mo ago against content hash 3ac1062bca6b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.
.cursor/rules/cursor-tools-discipline.mdc · 119 lines

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

  1. Locate — file, then symbol, then line. No edit before a location.
  2. Act once — one edit or one command. Independent reads go out in one batch.
  3. Read the result. That result is the next query.
  4. 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"

Read the full file on GitHub · 119 lines

Changes

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.

  1. 2mo ago Changed · -7 lines · +10 tokens per session 3ac1062bca6b
  2. 3mo ago First seen · 126 lines · 23 tokens per session scan C c0161e321359

Subscribe to this mod's changes

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.

Related

cursor-tools-discipline compared with cursor rules from other repositories

cursor-tools-discipline next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cursor-tools-disciplinemadebyaris/cursor-composer-rulesCursor rule32mo agoMITC33Cursor
data-fetchingkensaurus/cursor-kenjiCursor rule92mo agoMITA0Cursor
webkensaurus/cursor-kenjiCursor rule92mo agoMITA0Cursor
componentskensaurus/cursor-kenjiCursor rule92mo agoMITA0Cursor
gitkensaurus/cursor-kenjiCursor rule92mo agoMITA5Cursor
approved-plan-executionkensaurus/cursor-kenjiCursor rule92mo agoMITA57Claude Code, Cursor
verification-before-completionkensaurus/cursor-kenjiCursor rule92mo agoMITA681Cursor