00-core-routing

00-core-routing is a cursor rule for Cursor from cam-douglas/agent-instructions. It costs 630 tokens per session, scanned A, original, MIT.

A central instruction and routing policy for a coding agent working in a repository. It defines which project instructions and shared state to read, and how the agent should proceed.

In plain words
What is it for?
It is for starting sessions, loading project-specific guidance, checking readiness, and directing tasks to the right instructions or tools.
Why use it?
It reduces inconsistent agent behaviour by giving work a defined order, scope, and set of applicable instructions.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions AGENTS.md.

Good fit It is for starting sessions, loading project-specific guidance, checking readiness, and directing tasks to the right instructions or tools.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/cam-douglas/agent-instructions/00-core-routing
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/cam-douglas/agent-instructions

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 00-core-routing

README.md
[![agentmods](https://agentmods.dev/badge/rules/cam-douglas/agent-instructions/00-core-routing/github.svg)](https://agentmods.dev/rules/cam-douglas/agent-instructions/00-core-routing)
Your own site
<a href="https://agentmods.dev/rules/cam-douglas/agent-instructions/00-core-routing"><img src="https://agentmods.dev/badge/rules/cam-douglas/agent-instructions/00-core-routing/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 00-core-routing

Your own site · 80×15
<a href="https://agentmods.dev/rules/cam-douglas/agent-instructions/00-core-routing"><img src="https://agentmods.dev/badge/rules/cam-douglas/agent-instructions/00-core-routing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 630 This file is loaded in full into every session.
When invoked 630 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.00630 $0.00630
Opus 5.5 $0.00252 $0.00252
Sonnet 5.5 $0.00126 $0.00126
Haiku 4.5 $0.00063 $0.00063

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

Security

Grade A, and why

00-core-routing 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/00-core-routing.mdc · 20 lines

What it actually says

/AGENTS.md inside the agent configuration root (.cursor/AGENTS.md) is the canonical operating contract. Follow its instruction precedence, autonomy limits, phased lifecycle, file-role boundaries, validation standard, and completion standard. A leading / in control-plane files is relative to that configuration root, not the filesystem root.

Loading policy:

  • Project overlay: when present, inspect /PROJECT.md once for project-specific constraints and task-relevant routes. Follow applicable project rules; open linked references only for the current scope. Never replace local state, preferences, tools, or memory with template defaults during updates.
  • Lead session start: read /AGENTS.md once and inspect /STATE.md for relevant active work. Run read-only node .cursor/skills/launch-pipeline/scripts/preflight.mjs only when the host exposes permitted execution; Ask Mode without execution defers it as unrun. Run /scripts/bootstrap.sh only for required materialization or explicit installation/repair after implementation authorization, never every ready session.
  • Bounded delegates consume their task packet and applicable native instructions; no lead startup, shared-state/history sweep, mandatory workstream, or exhaustive role plan. Return scoped evidence to the lead.
  • Later turns: reuse instructions already in context. Re-read a control file only when it changed, the session or context was reset or compacted, a new scope became relevant, or exact wording matters for a consequential decision. Do not re-read the core set merely because a new message arrived.
  • Detailed modes: use /INSTRUCTIONS.md to load matched planning, strategy, or bounded-delegation guidance. /instructions/LAUNCH.md is explicit-only through /launch-pipeline or an explicit request for that named lifecycle. Load /instructions/ROLES.md only for formal multi-role delivery or consequential gates, and then only sections 1–3 plus relevant role sections.
  • On demand: /SKILLS.md and /skills/<skill-id>/SKILL.md before improvising a procedure that may already exist; /TOOLS.md when selecting deployment, database, integration, or unfamiliar tooling, preferring direct, verifiable project-native and official tools and updating the registry when capabilities materially change; /USER.md when a choice depends on standing preferences; /memory/MEMORY.md and linked runbooks or blockers when a prior decision, exact procedure, or unresolved issue may apply.

State discipline: the lead updates /STATE.md and existing plans when resumable state materially changes. Preserve state before phase transitions, long tasks, repeated attempts, or likely context loss. Record substantive continuity under /memory/memories/; read-only answers and bounded delegate reports do not require shared-state or history mutation.

Do not leave durable rules only in chat. Do not defer agent-capable work to the user. Do not store secret values in agent files. Register future instruction files in /INSTRUCTIONS.md instead of adding always-on rules.

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 · 20 lines · 630 tokens per session scan A 6618b817cc25

Subscribe to this mod's changes

00-core-routing is a cursor rule published in the GitHub repository cam-douglas/agent-instructions (2 stars, last pushed 1mo ago), licensed MIT. It adds 630 tokens to every session, about $0.0025 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-09-19.