Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add MadAppGang/magus/plugin install devWrote 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/commands/madappgang/magus/architect)<a href="https://agentmods.dev/commands/madappgang/magus/architect"><img src="https://agentmods.dev/badge/commands/madappgang/magus/architect/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/commands/madappgang/magus/architect"><img src="https://agentmods.dev/badge/commands/madappgang/magus/architect.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.00018 | $0.06812 |
| Opus 5.5 | $0.00007 | $0.02725 |
| Sonnet 5.5 | $0.00004 | $0.01362 |
| Haiku 4.5 | $0.00002 | $0.00681 |
Grade A, and why
architect 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 20d 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 — 723 lines — stays where its author put it; the contents beside it link to each section on GitHub.
<user_request> $ARGUMENTS </user_request>
This triage determines the right level of process for the architecture task.
**Step 1: Detect retry attempts**
Check if this is a second (or later) attempt at the same architecture problem:
```bash
# Look for existing architecture sessions with similar topic
TOPIC_SLUG=$(echo "$ARGUMENTS" | tr '[:upper:] ' '[:lower:]-' | sed 's/[^a-z0-9-]//g' | head -c30)
ls -d ai-docs/sessions/dev-arch-*${TOPIC_SLUG}* 2>/dev/null || echo "NO_PREVIOUS_SESSIONS"
```
Also check for retry signals in the user's request:
- "again", "retry", "different approach", "rethink", "reconsider"
- "didn't work", "failed", "not happy with", "let's try"
- References to a previous design or session
**Step 2: Assess complexity signals**
| Signal | Weight | Example |
|--------|--------|---------|
| Multiple systems/services | HIGH | "design auth across API + frontend + mobile" |
| Novel domain (no existing patterns) | HIGH | "design real-time collaboration engine" |
| Cross-cutting concerns | HIGH | "security + performance + multi-tenancy" |
| Conflicting requirements | HIGH | "fast AND highly consistent AND cheap" |
| Large blast radius | MEDIUM | "redesign the entire data layer" |
| Multiple viable approaches | MEDIUM | unclear best path forward |
| Single component, clear pattern | LOW | "add caching to the user service" |
| Well-understood domain | LOW | "standard CRUD API for products" |
Score: HIGH = 2 points, MEDIUM = 1, LOW = 0; sum every signal present.
0 = Simple, 1-2 = Moderate, 3+ = Complex. So one MEDIUM or one HIGH is Moderate,
and one HIGH plus one MEDIUM, or two HIGH, is Complex.
**Step 3: Route based on assessment**
| Assessment | Is Retry? | Route |
|------------|-----------|-------|
| Simple | No | Direct architecture design (Phase 0-6) |
| Simple | Yes | Offer /team — "Previous attempt exists. Want multi-model perspectives?" |
| Moderate | No | Plan mode reasoning first, then architecture design |
| Moderate | Yes | Recommend /team — "This needs fresh perspectives" |
| Complex | No | Plan mode reasoning + offer /team before architecture |
| Complex | Yes | Strongly recommend /team — "Multi-model brainstorming before redesign" |
**When /team is recommended, present the option:**
```yaml
AskUserQuestion:
questions:
- question: "This looks like a {complex problem | second attempt}. How should we approach it?"
header: "Architecture Approach"
multiSelect: false
options:
- label: "Multi-model brainstorm (/team)"
description: "Get diverse perspectives from multiple AI models before designing. Best for complex or retry scenarios."
- label: "Plan mode reasoning"
description: "Use Claude's extended reasoning to think through the design space, then proceed with single-model architecture."
- label: "Direct architecture"
description: "Skip to architecture design. Good when you already know the general direction."
```
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.
- 20d ago Changed · +4 lines c4e66520e524
- 22d ago Changed · -18 lines 64fd1be063fd
- 1mo ago Changed · -2 lines 297ccf4ed750
- 1mo ago Changed · +2 lines ee3253f93d80
- 1mo ago First seen · 737 lines · 18 tokens per session scan A 12384f7230ee
architect is a command published in the GitHub repository MadAppGang/magus (13 stars, last pushed today), licensed MIT. It adds 18 tokens to every session and 6,812 once invoked, about $0.0001 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-04.
Other commands, from other repositories
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.
converge
Assess the current codebase against the feature's spec, plan, and tasks, then append any remaining unbuilt work as new tasks to tasks.md so implement can complete it.
implement
Execute the implementation plan by processing and executing all tasks defined in tasks.md.
speckit.bug.fix
Apply the remediation from a bug assessment and record what was changed.