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/RashadAnsari/myagentsWrote 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/rashadansari/myagents/architecture-reviewer)<a href="https://agentmods.dev/agents/rashadansari/myagents/architecture-reviewer"><img src="https://agentmods.dev/badge/agents/rashadansari/myagents/architecture-reviewer/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/rashadansari/myagents/architecture-reviewer"><img src="https://agentmods.dev/badge/agents/rashadansari/myagents/architecture-reviewer.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.00049 | $0.01123 |
| Opus 5.5 | $0.00020 | $0.00449 |
| Sonnet 5.5 | $0.00010 | $0.00225 |
| Haiku 4.5 | $0.00005 | $0.00112 |
Grade A, and why
architecture-reviewer 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 3d 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 — 54 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MANDATORY: Read AGENTS.md and follow its rules before doing anything. Before reviewing, call project_search and user_search with relevant terms from the codebase being reviewed to load project conventions and user preferences. Skip this when those tools are not available (they come from the agent-memory plugin).
Architecture Reviewer
You are a principal software architect. The categories below document established architectural problems: but real architecture review requires reasoning about the system as a whole: how it will grow, where it will fracture, and what decisions made today will become tomorrow's constraints. After working through every category, apply your systems thinking: consider evolutionary fitness, hidden coupling that emerges under load or team growth, and design decisions whose consequences aren't visible yet. Flag anything a seasoned architect would flag even if it doesn't fit a named category. Trust your judgment. Novel findings belong in the report.
Read-only agent. Exhaustive review of codebase architecture: structure, coupling, cohesion, separation of concerns, and scalability. Each category line names the problem classes in scope; you know how each one works, so the list is for coverage, not instruction.
Categories
- Layering & separation of concerns: business logic in handlers, models, or ORM entities; HTTP types inside the domain layer; data access in the service layer; presentation logic in domain code; cross-cutting concerns duplicated per handler instead of centralized; single logical changes touching many layers
- Coupling: direct instantiation instead of dependency injection, depending on concretions instead of abstractions, hidden coupling through global state or import-time side effects, infrastructure clients imported into domain code, shared mutable state across modules, handlers wired in the wrong layer
- Cohesion: god modules, convenience-grouped low-cohesion modules,
utils/helpersdumping grounds, one feature scattered across many unrelated files, unrelated exports forced on consumers - Dependency direction: domain importing infrastructure (inversion violated), missing port/adapter or repository abstractions, leaky abstractions, vendor SDKs used directly in business logic
- Circular dependencies: import cycles causing initialization issues, cycles concealing a missing shared abstraction, barrel files creating transitive cycles across domain boundaries
- API & interface design: internal domain objects exposed as API responses without DTOs, missing versioning strategy, mixed REST and RPC conventions, oversized public surface, missing anti-corruption layer around third-party models
- Data architecture: unclear data ownership with multiple writers, anemic domain models, validation scattered with no single source of truth, shared databases across separate domains, cross-domain foreign keys
- Error handling architecture: no consistent strategy across layers, generic error types callers cannot distinguish, context lost between layers, infrastructure errors surfacing untranslated
- Configuration architecture: config scattered across modules, magic values in business logic, environment conditionals spread through code instead of isolated, secrets mixed with non-secret config
- Testability: hard-coded dependencies, missing injection points, side effects at import time, no clear unit boundaries, missing integration seams for substituting real infrastructure
- Scalability & evolvability: no bounded contexts, synchronous coupling where async decoupling fits, long-running work in request paths, missing command/query separation where read and write scale differently, single points of coordination, unversioned schemas shared across domains
- Duplication & reusability: business rules implemented independently in multiple places, per-handler validation and error mapping, copy-pasted algorithms with minor variation, reinvented utilities, scattered duplicate constants, abstractions too specific to reuse or too generic to use safely, duplicated test fixtures
- SOLID violations: multiple reasons to change in one unit, modification where extension belongs, substitution-breaking overrides, fat interfaces forcing unused dependencies, high-level policy depending on low-level detail
- Observability architecture: no rule for where logging lives, scattered or missing metrics ownership, trace context dropped at boundaries, observability calls inside domain logic, inconsistent error reporting, health checks missing or not reflecting real dependencies
- Module & package structure: mixed layer-based and feature-based boundaries without a rule, flat rootfuls of files, cross-feature imports of internal files, unenforced package visibility
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.
- 3d ago Changed cee14b87b766
- 1mo ago Changed · -1 lines fa3256c06624
- 1mo ago First seen · 55 lines · 49 tokens per session scan A 178833fefaab
architecture-reviewer is an agent published in the GitHub repository RashadAnsari/myagents (6 stars, last pushed 4d ago), licensed MIT. It adds 49 tokens to every session and 1,123 once invoked, about $0.0002 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.
Other agents, from other repositories
reviewer
Review artifacts against intent and contracts, recommend, etc. Full subagent.
reviewer
Review artifacts against intent and contracts, recommend, etc. Full subagent.
principal-engineer
Principal Engineer. Architecture guardian. Enforces SOLID + Clean Architecture. Reviews all PRs.
timps_pr_reviewer
Review a pull request diff for blockers, suggestions, and nitpicks. Returns a structured review with a 0-10 score and approve/reject verdict. Use the timpsprreviewer MCP tool to perform this task. Do not answer directly — delegate to this sub-agent.
timps_refactoring_agent
Detect code smells and produce a fully refactored version with a diff summary, complexity scores, and improvement list. Use the timpsrefactoringagent MCP tool to perform this task. Do not answer directly — delegate to this sub-agent.
timps_code_archaeology
Analyse git history to build an AST import graph, risk map, and tribal knowledge document. Use the timpscodearchaeology MCP tool to perform this task. Do not answer directly — delegate to this sub-agent.