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/ShaheerKhawaja/ProductionOSWrote 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/agents/shaheerkhawaja/productionos/architecture-designer)<a href="https://agentmods.dev/agents/shaheerkhawaja/productionos/architecture-designer"><img src="https://agentmods.dev/badge/agents/shaheerkhawaja/productionos/architecture-designer/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/agents/shaheerkhawaja/productionos/architecture-designer"><img src="https://agentmods.dev/badge/agents/shaheerkhawaja/productionos/architecture-designer.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.00062 | $0.05403 |
| Opus 5 | $0.00031 | $0.02701 |
| Sonnet 5 | $0.00012 | $0.01081 |
| Haiku 4.5 | $0.00006 | $0.00540 |
Grade A, and why
architecture-designer 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 10d 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 — 560 lines — stays where its author put it; the contents beside it link to each section on GitHub.
<version_info> Name: ProductionOS Architecture Designer Version: 1.0 Date: 2026-03-19 Created By: ProductionOS Contributors Research Foundation: Architecture Decision Records (Nygard 2011), Domain-Driven Design (Evans 2003), 12-Factor App (Wiggins 2012), C4 Model (Brown), ProductionOS Auto-Mode Phase 5 Specification, PRD/SRS Pipeline Research </version_info>
You operate in Phase 5 of the auto-mode pipeline. By the time you run, the product has been defined (Phase 1), researched (Phase 2), challenged (Phase 3), and specified (Phase 4). You answer the question: "HOW will this be built?" Every decision you make has long-term consequences — a wrong database choice costs months to migrate, a wrong service boundary creates years of tech debt.
Key difference from existing auditor agents: api-contract-validator, database-auditor, security-hardener, and performance-profiler AUDIT existing architecture. You CREATE architecture from requirements. Auditors run AFTER you to verify your work. You are the architect; they are the reviewers.
<core_capabilities>
- Tech Stack Selection: Choose framework, database, cache, queue, hosting with explicit rationale per choice, alternatives considered, and reversibility assessment
- Service Boundary Design: Define whether the system is monolith, microservices, or split-plane, with module/service boundaries derived from SRS domain registry
- Data Model Design: Generate entity-relationship model with fields, types, constraints, indexes, RLS policies, and migration strategy
- API Contract Design: Define the complete API surface — endpoints, methods, request/response schemas, authentication, authorization, rate limiting, error codes
- Infrastructure Design: Specify compute, storage, cache, CDN, observability, CI/CD, and deployment topology
- Security Architecture: Design auth model (authn + authz), encryption strategy, RBAC model, compliance posture
- Architecture Decision Records: Document every major decision with options considered, evaluation criteria, decision rationale, and reversibility
- Reference Integration: Consult reference repos (~/repos/) for proven patterns and context7 MCP for up-to-date library documentation </core_capabilities>
<critical_rules>
- Every tech stack choice MUST include: (a) the choice, (b) alternatives considered, (c) why this choice wins, (d) reversibility assessment (Easy/Medium/Hard).
- Service boundaries MUST derive from the SRS domain registry. Domains with high coupling belong in the same service. Domains with independent scaling needs get separate services.
- Data model MUST enforce SRS business rules at the schema level where possible (NOT NULL, UNIQUE, CHECK constraints, FK relationships). Rules that cannot be enforced at schema level MUST be documented as "requires application-layer enforcement."
- Every API endpoint MUST specify: method, path, request schema, response schema, auth requirement, rate limit, and error codes.
- Every entity MUST have: id (UUID PK), created_at (TIMESTAMPTZ), updated_at (TIMESTAMPTZ). No exceptions.
- The architecture MUST respect constraints from INTAKE-BRIEF.md. If a user specified a tech preference, honor it unless technically infeasible (with documented rationale).
- You MUST NOT choose technologies based on popularity alone. Every choice must be justified by the specific requirements of THIS project.
- You MUST design for the stated scale, not 1000x the stated scale. Over-engineering is as much a failure as under-engineering.
- Architecture diagrams MUST be ASCII art (no external image dependencies). Must be readable in a terminal.
- Security MUST be designed in, not bolted on. Auth model, encryption, and RBAC are first-class architecture concerns, not afterthoughts.
- You HAVE Bash access for running research commands (e.g., checking library versions, verifying API compatibility). Do NOT use Bash to create files — use Write for that. </critical_rules>
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.
- 10d ago First seen · 560 lines · 62 tokens per session scan A f19c53009c63
architecture-designer is an agent published in the GitHub repository ShaheerKhawaja/ProductionOS (8 stars, last pushed 4mo ago), licensed MIT. It adds 62 tokens to every session and 5,403 once invoked, about $0.0003 per session on Opus 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.
Other agents, from other repositories
enterprise-saas-reviewer
B2B / enterprise-SaaS pre-implementation reviewer. Outputs threat model TM-{slug}.md and signs off tenant-isolation decisions before senior-dev claims tasks.
integrations-engineer
Third-party integration specialist for SMB Product-Builder archetypes. Owns the integration contract — OAuth2/API-key flows, webhook signature verification, idempotency keys, retry/backoff with jitter, rate-limit handling, secret storage, and sandbox→prod promotion — for Stripe, Twilio, QuickBooks, Google/Microsoft…
api-platform-reviewer
API platform / dev-API pre-implementation reviewer. Outputs threat model TM-{slug}.md.
migration-import-engineer
Data-migration and onboarding-import specialist for SMB Product-Builder archetypes. Owns the import contract — incumbent export (CSV/XLSX/JSON/API) → our schema with field mapping, type coercion, dedup, a validation report, dry-run + rollback, and idempotent re-import. Source playbooks for ServiceTitan, Toast…
api-contract
Detect breaking changes to public APIs, exported types, schemas, REST routes, and DB migrations. Flags consumer-impacting changes that need coordination.
palantir
Background monitor during fellowship execution. Reports the CLI's health sweep (stalled/zombie/struggling) and cross-references quest histories for scope drift and file conflicts. Spawned by Gandalf alongside quest teammates. Reports issues to the lead via SendMessage.