agent-master

agent-master is a cursor rule for Cursor from Surya8991/AgentMaster. It costs 211 tokens per session (10,369 once invoked), scanned B, original, MIT.

A meta-orchestrator that classifies a request and routes it to suitable installed agent skills. It coordinates skills for areas such as development workflows, business tasks, concise output, and tactical libraries.

In plain words
What is it for?
Use it as a general entry point when a task may require several specialised skills or when you want the agent to select the routing.
Why use it?
It reduces the need to choose the right skill manually for each task. Its input describes automatic cache updates and code-repository snapshots as part of its setup process.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Good fit Use it as a general entry point when a task may require several specialised skills or when you want the agent to select the routing.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/surya8991/agentmaster/agent-master
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/Surya8991/AgentMaster

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 agent-master

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

Your own site · 80×15
<a href="https://agentmods.dev/rules/surya8991/agentmaster/agent-master"><img src="https://agentmods.dev/badge/rules/surya8991/agentmaster/agent-master.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 211 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 10,369 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 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.00211 $0.10369
Opus 5.5 $0.00084 $0.04148
Sonnet 5.5 $0.00042 $0.02074
Haiku 4.5 $0.00021 $0.01037

Measured 25d ago against content hash 44911fda6eca, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

agent-master scanned grade B 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 25d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

3. **Reach the long tail (two tiers, in order):** first consult the **Extended Skill Clusters** table above — it names the high-value installed skills by cluster and is always in context. If nothing there fits, read `~/.
.cursor/rules/agent-master.mdc · 432 lines

How it starts

The opening of the file, as written. The whole thing — 432 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AgentMaster — Meta-Orchestrator

You are AgentMaster. You classify the user's task and route to the right combination of installed skills. You do NOT replace skills — you coordinate them.

ARGUMENTS: {{ARGUMENTS}}

Auto-Update (Run Once Per Session)

On first invocation each session, run the update script in the background (do not block the user):

# Run in background — do NOT wait for completion
bash ~/.claude/.agentmaster-cache/agent-master/scripts/update.sh --quiet &

If the cache directory doesn't exist yet, skip the update silently — the install script will set it up.

This pulls latest versions of all dependency repos (caveman, superpowers, claude-skills, claude-mem, impeccable, anthropic-official, wshobson, davila7) and AgentMaster itself. Has a 6-hour cooldown so it won't re-run repeatedly.

Per-Session Bootstrap: Repomix Snapshot

On the first invocation each session AND when the current working directory looks like a code repo (presence of .git/, package.json, pyproject.toml, Cargo.toml, go.mod, or similar), trigger a repomix snapshot so downstream skills can read whole-codebase context cheaply.

1. Detect repo: test -d .git || test -f package.json || test -f pyproject.toml || test -f Cargo.toml || test -f go.mod
2. If repo detected: invoke `repomix-pack` skill silently (it has its own staleness check, so it won't re-pack unnecessarily).
3. If NOT a repo (e.g. user's home directory, empty folder): skip silently. Do NOT prompt.
4. Bootstrap runs ONCE per session. Track via a marker file: ~/.claude/.agentmaster-cache/session-<date>-bootstrap.done

Bootstrap is non-blocking — proceed with the user's actual task immediately after invoking repomix-pack. The snapshot becomes available for any subsequent whole-codebase task without further prompting.

User can disable for a session by saying "skip repomix" — record that and don't re-trigger this session.

Per-Session Rules Load

On first invocation each session, check for a project-level RULES.md in the current working directory:

Read the full file on GitHub · 432 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. 25d ago Changed · +13 lines 44911fda6eca
  2. 28d ago Changed · +22 lines a1b3a0cf033b
  3. 1mo ago Changed · +11 lines · +45 tokens per session 385cb57a823e
  4. 2mo ago Changed · +64 lines · +33 tokens per session scan A → B 454c8c5a0fdb
  5. 3mo ago First seen · 322 lines · 133 tokens per session scan A c38aa7e05720

Subscribe to this mod's changes

agent-master is a cursor rule published in the GitHub repository Surya8991/AgentMaster (2 stars, last pushed 12d ago), licensed MIT. It adds 211 tokens to every session and 10,369 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

agent-master compared with cursor rules from other repositories

agent-master next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-masterSurya8991/AgentMasterCursor rule212d agoMITB211Cursor
optimize-dry-solid-principles-cursorrules-prompt-fPatrickJS/awesome-cursorrulesCursor rule41k6mo agoCC0-1.0A150Cursor
code-optimizationleshchenko1979/fast-mcp-telegramCursor rule509d agoMITA0Cursor
api-design-typescriptadonai-labs/agent-runwayCursor rule24d agoMITA0Cursor
advanced-patternsadonai-labs/agent-runwayCursor rule24d agoMITA0Cursor
code-review-enOldJii/code-review-mcpCursor rule41mo agoMITA6Cursor
language-agnostic-patternsmadebyaris/advance-minimax-m3-cursor-rulesCursor rule1265mo agoMITA37Cursor