coding-agents

coding-agents is a cursor rule for Cursor from sijeeshmiziha/visionagent. It costs 348 tokens per session, scanned A, original, MIT.

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

Written for Cursor: installed under .cursor/.

Good fit It is for shaping code-task prompts, defining file and editing tools, and adding minimal scaffolding and error checks.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/sijeeshmiziha/visionagent/coding-agents
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/sijeeshmiziha/visionagent

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

README.md
[![agentmods](https://agentmods.dev/badge/rules/sijeeshmiziha/visionagent/coding-agents/github.svg)](https://agentmods.dev/rules/sijeeshmiziha/visionagent/coding-agents)
Your own site
<a href="https://agentmods.dev/rules/sijeeshmiziha/visionagent/coding-agents"><img src="https://agentmods.dev/badge/rules/sijeeshmiziha/visionagent/coding-agents/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 coding-agents

Your own site · 80×15
<a href="https://agentmods.dev/rules/sijeeshmiziha/visionagent/coding-agents"><img src="https://agentmods.dev/badge/rules/sijeeshmiziha/visionagent/coding-agents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. 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.00348 $0.00348
Opus 5.5 $0.00139 $0.00139
Sonnet 5.5 $0.00070 $0.00070
Haiku 4.5 $0.00035 $0.00035

Measured 1mo ago against content hash 92679ef49d12, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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.

.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 repo → reproduce the error (e.g. run a small script) → edit source → rerun to verify → consider 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_str → new_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. 1mo ago 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 7mo ago), licensed MIT. It adds 348 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-31.