coding-agents

A set of rules for designing prompts and tools used by coding agents. It covers clear task sequences, safer file edits, unambiguous paths, and useful tool constraints.

In plain words
What is it for?
It is for shaping code-task prompts, defining file and editing tools, and adding minimal scaffolding and error checks.
Why use it?
It helps reduce coding-agent mistakes such as editing the wrong file, applying an ambiguous replacement, or skipping verification.

Cursor rule for Cursor

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.

agentmods
npx agentmods add rules/sijeeshmiziha/visionagent/coding-agents
Clone the repo
git clone --depth 1 https://github.com/sijeeshmiziha/visionagent

Made for: Cursor.

Per session 348 This file is loaded in full into every session.
When invoked 348 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00348 $0.00348
Opus 5 $0.00174 $0.00174
Sonnet 5 $0.00070 $0.00070
Haiku 4.5 $0.00035 $0.00035

Measured yesterday against content hash 92679ef49d12, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

coding-agents 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 yesterday.

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.

.cursor/rules/coding-agents.mdc · 22 lines

What it actually says

Coding Agents

Prompt Pattern for Code Tasks

  • Suggest a clear sequence in the prompt; do not hardcode the flow in code. Example: explore reporeproduce the error (e.g. run a small script) → edit sourcererun to verifyconsider edge cases.
  • Keep the prompt concise; let the model choose how to move between steps. Optionally encourage longer reasoning if not token-sensitive.

Error-Proofing for File and Code-Editing Tools

  • Paths: Prefer absolute paths for file/directory parameters so behavior is unambiguous after working-directory changes; avoid relative-path confusion.
  • Edits: Prefer single-match string replace (old_strnew_str) over full-file rewrites or diffs when the model must specify edits. Require exact match (including whitespace); on multiple or zero matches, return a clear error so the model can retry with more context.
  • Tool descriptions: Put environment and usage constraints in the description (e.g. no internet, state persistence, how to view files or line ranges, running long-lived commands in background). Test tools against real model outputs and fix recurring misuse in the spec.

Minimal Scaffolding

  • Keep scaffolding minimal: give the model maximum control (e.g. one or two general-purpose tools like run-command + edit), and avoid hardcoded workflows. See agentic-patterns for simplicity and model-directed agents.
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. yesterday First seen · 22 lines · 348 tokens per session scan A 92679ef49d12

Subscribe to this mod's changes

coding-agents is a cursor rule published in the GitHub repository sijeeshmiziha/visionagent (2 stars, last pushed 5mo ago), licensed MIT. It adds 348 tokens to every session, about $0.0017 per session on Opus 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-31.

Related

Other cursor rules, from other repositories

digital-death-plan

Plan what happens to your digital life when you die — accounts, photos, passwords, money, and social profiles — so someone you trust can actually find, access, memorialize, or close them without a legal nightmare. Use when someone says 'what happens to my accounts when I die', 'digital legacy', 'help my family access…

mohitagw15856/pm-claude-skills · 116 tokens

mechanic-quote-decoder

Read a garage quote or invoice like someone who can't be padded — which line items connect to your actual symptom, which are while-we're-in-there additions, the questions that make soft lines disappear, when a second opinion pays for itself, and the scripts for declining work without souring the relationship. Use when…

mohitagw15856/pm-claude-skills · 129 tokens

used-car-decoder

Decode a used-car listing before you drive an hour to see it — what the seller's phrasing is hiding, the history-check items that matter, a test-drive and inspection checklist ordered by cost-of-miss, the questions that make evasive sellers visible, and the walk-away signs ranked 🔴🟡🟢. Use when someone says 'is this…

mohitagw15856/pm-claude-skills · 129 tokens

life-premortem

Write the failure story of your year, relationship, move, or big life bet in advance — imagine it's a year later and it went wrong, tell that story vividly, then mine it for the real risks and the cheap things that would have prevented them. Use when someone says 'I'm about to make a big life change', 'what could go…

mohitagw15856/pm-claude-skills · 121 tokens

agent-hiring-panel

Hire an AI agent the way you'd hire an employee — a role spec with success criteria, a structured work-sample interview run on your real tasks, reference checks (what do actual users report), probation KPIs, and termination criteria written before day one. Use when choosing between AI agents/tools/copilots for a job…

mohitagw15856/pm-claude-skills · 102 tokens

api-for-yourself

Publish 'how to work with me' as a literal API spec — endpoints (what to ask me for and what you'll get back), rate limits (meeting and interrupt tolerance), error codes (what happens when you surprise me Friday 5pm), auth (how to earn trust), and a changelog. Use when onboarding to a new team, when a new manager or…

mohitagw15856/pm-claude-skills · 112 tokens