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/andr-ca/agentharnessWrote 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/andr-ca/agentharness/agentharness-router)<a href="https://agentmods.dev/rules/andr-ca/agentharness/agentharness-router"><img src="https://agentmods.dev/badge/rules/andr-ca/agentharness/agentharness-router/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/andr-ca/agentharness/agentharness-router"><img src="https://agentmods.dev/badge/rules/andr-ca/agentharness/agentharness-router.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.05154 | $0.05154 |
| Opus 5.5 | $0.02062 | $0.02062 |
| Sonnet 5.5 | $0.01031 | $0.01031 |
| Haiku 4.5 | $0.00515 | $0.00515 |
Grade A, and why
agentharness-router 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 394 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Generated from this repo's own CLAUDE.md by
tools/generate-cursor-rules.sh (https://github.com/andr-ca/agentharness)
— do not hand-edit; regenerate instead
(tools/generate-cursor-rules.sh --output-dir .). A CI check keeps this
file in sync with its source (see .github/workflows/ci.yml's
content-quality job).
This file covers repo-wide routing rules only. Cursor has no confirmed
support for the Agent Skills open standard (SKILL.md) — each skill under
.claude/skills/ is instead mirrored here as its own
.cursor/rules/<skill-name>.mdc, with that skill's own description
copied into the rule's frontmatter and no globs set. That makes each
rule Agent-Requested: Cursor's agent reads the description and decides
whether to pull the full rule body in, the closest native analog to
SKILL.md's own progressive disclosure.
agentharness – Agent Router
This file is loaded into every session that touches this repo. Keep it short — everything else is one link away. Full index: MANIFEST.md. Planned-but-not-built: ROADMAP.md.
🤖 Agent Workflow Completion
Default (no publish authority): verify and stage, then stop.
- ✅ Run the completion gate — before declaring any work done, run
bash tools/check-completion.sh. This script verifies lint, types, tests, coverage, and content quality in one shot and exits non-zero if anything fails. The Stop hook in.github/hooks/completion-gate.jsonand.claude/settings.jsonenforces this automatically for Claude Code and GitHub Copilot — the agent cannot stop until all gates pass. - ✅ Create atomic commits locally — one logical unit per commit, clear message explaining WHY
- 🛑 Stop before pushing, opening a PR, or auto-implementing recommendations. Present a summary of what's staged and ask the user to confirm before publishing anything.
A local commit is not a durable safe-point in an ephemeral-container
execution environment. If you have verified, committed-but-unpushed
work and are about to block on AskUserQuestion or other unbounded
human input, consider pushing to a remote branch (a scratch/WIP branch
is fine) first — committed-but-unpushed work can be lost if the
container is reclaimed during the wait, with no error at commit time
and no warning until a later git log looks unfamiliar. This is
disclosure of an existing risk, not a grant of publish authority: it
does not authorize opening a PR or merging, and the default tier above
still governs those.
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.
- 3mo ago First seen · 394 lines · 5,154 tokens per session scan A 4712b4ce44b0
agentharness-router is a cursor rule published in the GitHub repository andr-ca/agentharness (1 stars, last pushed 9d ago), licensed MIT. It adds 5,154 tokens to every session, about $0.0206 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.
agentharness-router compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| agentharness-routerandr-ca/agentharness | Cursor rule | 1 | 9d ago | MIT | A | 5,154 | Claude Code, Cursor |
| hackhack-dance/hack | Cursor rule | 9 | today | MIT | A | 1,486 | Cursor |
| dreamd-recallbotzrDev/dreamd | Cursor rule | 9 | today | Apache-2.0 | A | 135 | Cursor |
| implement-task-listopenplanr/OpenPlanr | Cursor rule | 7 | yesterday | MIT | A | 12 | Cursor |
| create-featuresopenplanr/OpenPlanr | Cursor rule | 7 | yesterday | MIT | A | 16 | Cursor |
| handoffwardmos/waybill | Cursor rule | 85 | 3mo ago | Apache-2.0 | A | 15 | Cursor |
| lemoncrow.executelemoncrow-lab/lemoncrow | Cursor rule | 71 | 8d ago | none | A | 9 | Cursor |