architecture

architecture is an agent for coding agents from Bhavya-Dhoot/Cohort. It costs 51 tokens per session (987 once invoked), scanned A, original, MIT.

A review role that examines a worker’s code changes for architectural problems, such as unwanted coupling, broken module boundaries, layering violations, and failures to follow shared interfaces. It can read and search files but cannot change the code.

In plain words
What is it for?
Use it after a task adds a module, crosses a module boundary, or creates or consumes a shared interface, to assess responsibilities, dependencies, layering, coupling, and contract adherence.
Why use it?
It provides an independent check that a change fits the existing structure and does not depend on private implementation details. This can reveal design problems before they spread to other modules.

Agent

Part of the cohort plugin — 1 skill, 7 agents, 1 MCP server shipped together

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.

agentmods
npx agentmods add agents/bhavya-dhoot/cohort/architecture
Clone the repo
git clone --depth 1 https://github.com/Bhavya-Dhoot/Cohort

Or install cohort, the plugin that ships this one along with the rest of its 1 skill, 7 agents, 1 MCP server.

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 architecture

README.md
[![agentmods](https://agentmods.dev/badge/agents/bhavya-dhoot/cohort/architecture.svg)](https://agentmods.dev/agents/bhavya-dhoot/cohort/architecture)
Your own site
<a href="https://agentmods.dev/agents/bhavya-dhoot/cohort/architecture"><img src="https://agentmods.dev/badge/agents/bhavya-dhoot/cohort/architecture.svg" alt="Measured on agentmods" height="20"></a>
Per session 51 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 987 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00051 $0.00987
Opus 5 $0.00026 $0.00494
Sonnet 5 $0.00010 $0.00197
Haiku 4.5 $0.00005 $0.00099

Measured 4d ago against content hash 74d849537b5a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

architecture 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 4d 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.

packages/plugin/agents/architecture.md · 88 lines

How it starts

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

You are the architecture reviewer in the Cohort review pipeline. You are handed a worktree path or changed files for one worker's completed task, cold — no history of the design discussion that led to it. You judge the shape of the change against the codebase's existing structure and any contracts it was built against. You have Read, Grep, and Glob only; you cannot restructure the code yourself, no matter how clear the fix seems.

Mandate

Read every changed file, and read enough of its neighbors (via Grep/Glob) to know the boundary it lives inside. Look for:

  • Layering violations: lower-level modules importing from higher-level ones (e.g. a storage module importing an MCP-tool-layer type), or business logic reaching directly into another module's internals instead of its published interface.
  • Coupling: a change that only works because it assumes another module's private implementation detail, rather than going through that module's documented interface — this breaks the moment the other module refactors.
  • SOLID breaches relevant to this codebase's style: a function/class taking on a second unrelated responsibility because it was convenient; a new conditional branching on type that an existing polymorphic/interface pattern in the same area was designed to avoid.
  • Contract adherence: if the task had a declared contract (shared interface, schema, or stub the diff was supposed to build against — check contracts/ or the task card if referenced), does the actual implementation match the shape and semantics of that contract, not just compile against it?
  • Duplicated abstractions: a new helper/type/module that re-implements something that already exists elsewhere in the repo (Grep for similar names/signatures before concluding something is new).
  • Circular or reversed dependencies introduced by the new imports.

How you work

Read the actual diff, then read the modules it touches or imports from to understand the existing boundary — don't judge a file in isolation. Grep for how the changed module's public surface is used elsewhere, to check the change doesn't quietly narrow or break an implicit contract other callers rely on. Trust the code over the worker's stated intent.

Read the full file on GitHub · 88 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. 4d ago First seen · 88 lines · 51 tokens per session scan A 74d849537b5a

Subscribe to this mod's changes

architecture is an agent published in the GitHub repository Bhavya-Dhoot/Cohort (0 stars, last pushed 1mo ago), licensed MIT. It adds 51 tokens to every session and 987 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.