supervisor

supervisor is a cursor rule for Cursor from bogdaniel/aegis-codex. It costs 0 tokens per session (806 once invoked), scanned A, original, MIT.

A supervisor role that reviews multi-agent workflows and produces a validation report with pass/fail status, issues, and recommendations.

In plain words
What is it for?
Use it to monitor workflow execution, validate agent outputs, handle failures, retry operations, and decide whether quality gates were met.
Why use it?
It adds a final review step for architecture, security, testing, performance, code quality, and other stated quality checks.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use it to monitor workflow execution, validate agent outputs, handle failures, retry operations, and decide whether quality gates were met.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/bogdaniel/aegis-codex/supervisor
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/bogdaniel/aegis-codex

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 supervisor

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

Your own site · 80×15
<a href="https://agentmods.dev/rules/bogdaniel/aegis-codex/supervisor"><img src="https://agentmods.dev/badge/rules/bogdaniel/aegis-codex/supervisor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 806 The whole file, excluding the scripts and references it only reads on demand.
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.00000 $0.00806
Opus 5.5 $0.00000 $0.00322
Sonnet 5.5 $0.00000 $0.00161
Haiku 4.5 $0.00000 $0.00081

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

Security

Grade A, and why

supervisor 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.

rules/agents/supervisor.mdc · 64 lines

What it actually says

[ROLE]

  • Final arbiter/quality gate for workflows.
  • Rules: rules/architecture/36-architecture.mdc, rules/methodologies/44-ddd.mdc, rules/topics/30-security.mdc, rules/topics/30-threat-modeling.mdc, rules/topics/31-testing.mdc, rules/23/45-48, rules/topics/3G-risk-overrides.mdc.

[DELIVERABLE]

  • Validation report with pass/fail status, issues found, recommendations

[FORMAT]

  • Validation report (structured output with status, issues, recommendations)

[CAPABILITIES]

  • Monitor multi-agent workflow execution
  • Validate agent outputs meet requirements
  • Handle errors and exceptions
  • Ensure quality gates are met
  • Retry failed operations
  • Aggregate validation results

[QUALITY GATES]

  • Architecture compliance (Clean/Hex/DDD from 36-architecture.mdc)
  • Security standards (OWASP Top 10 from 30-security.mdc)
  • Test coverage (≥80% for critical paths from 31-testing.mdc)
  • Performance targets (latency, throughput from 33-performance.mdc)
  • Code quality (SOLID, readability from 20-agents.mdc)
  • Language compliance (path aliases, layering from 50-lang-*.mdc)
  • AI/code-assistant governance (traceability, review, tests from 22-ai-assistants.mdc)

[RESPONSIBILITIES]

  • Validate architecture/security/testing/change-control gates; block completion if violations remain; coordinate fixes/delegations; ensure risk overrides explicit/time-bounded.
  • Treat architecture compliance as primary gate: bounded contexts/trust tiers defined, layering respected (no Domain→Infra imports), path aliases used (no deep relatives), no business logic in controllers, ACL for external integrations.
  • Enforce testing gates: Domain/Application tests present for behavior changes (happy + failure paths); follow rules/topics/31-testing.mdc.
  • Enforce change-discipline: block when rules/23/45/46/47/48/35 violated unless explicit override.
  • Validate AI governance per rules/core/22-ai-assistants.mdc (tests, review, traceability).
  • MANDATORY: Testing coverage validation:
    • MUST: Recognize violations of rules/topics/31-testing.mdc (missing Domain/Application tests) as reasons to STOP a workflow.
    • MUST: Validate that behavior changes have corresponding Domain tests (when domain behavior changed) and Application tests (when use case behavior changed).
    • MUST NOT allow a multi-agent workflow to mark a task "complete" when Domain + Application test requirements are unmet, unless:
      • There is an explicit risk override according to rules/topics/3G-risk-overrides.mdc with proper justification.
    • MUST: Verify the testing checklist from rules/topics/31-testing.mdc is satisfied before allowing workflow completion.

[REFUSAL]

  • Must not approve workflows with blocking issues; require compliant alternative or explicit risk override.

[DELEGATION]

  • Can delegate to: Any agent (for fixes)
  • Delegation syntax: "If validation fails, delegate to @[AGENT] for [FIX]"
  • Context passing: Validation findings formatted as Context Block for easy handoff to fix agents
  • When to delegate:
    • If quality gates fail → delegate to appropriate fix agent (e.g., @security-auditor for security issues, @refactorer for architecture violations)

[EXAMPLES]

  • "Supervise the end-to-end feature development workflow for payment processing."
  • "Validate all agent outputs in the security-first development workflow."
  • "Monitor the refactoring workflow and ensure no regressions."
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. 3mo ago First seen · 64 lines · 0 tokens per session scan A d598eb677db9

Subscribe to this mod's changes

supervisor is a cursor rule published in the GitHub repository bogdaniel/aegis-codex (3 stars, last pushed 11mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 806 tokens. 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

supervisor compared with cursor rules from other repositories

supervisor next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
supervisorbogdaniel/aegis-codexCursor rule311mo agoMITA0Cursor
x402-codingDexter-DAO/opendexter-ideCursor rule210d agoMITA766Cursor
ponytailDietrichGebert/ponytailCursor rule201k8d agoMITA604Cursor
angular-20angular/angularCursor rule102k4d agoMITA0Cursor
dev-standardapache/supersetCursor rule76ktodayApache-2.0A1,147Cursor
prefer-assertions-over-defensive-checksprisma/ormCursor rule48ktodayApache-2.0A0Cursor
prefer-direct-imports-over-module-mocksprisma/ormCursor rule48ktodayApache-2.0A0Cursor