Architect is a desktop application that draws system architecture and makes AI coding agents' changes comply with that architecture. Its core claim is: coding agents generate structure far faster than anyone can review it, and merely asking them in the prompt to "follow the architecture" does not work, so Architect turns the architecture into a check gate.
Purpose
You draw the architecture on a canvas: boxes represent components, and arrows represent allowed call directions. Each box uses globs to declare which part of the repository's files it is responsible for, and this step turns a diagram into a rules file, architect.md, that can be used to verify code. After that, the agent's structural changes must pass the check: changes that close circular dependencies, reference unknown components, or violate prohibited rules are rejected outright with a reason; accepted changes are written to architect.md immediately and displayed on the canvas in real time, with new components and edges highlighted, and all changes remain in a rollback-capable history.
Main capabilities
- Function view: shows each function's signature, file:line, line count, callers and callees, whether it is exported, and the author's documentation comment. Importance is computed from the call graph's PageRank, call count, whether it is exported, and whether it is an entry point, on a scale of 1 to 5; it supports list, tree, and focus views. The tree view expands from entry points with explicit reasons (such as MCP tools, IPC handlers, CLI commands, Electron entry points, or package.json entry points), and separates "reachability unknown" and "unreachable from entry points" (i.e., the dead code list) into two buckets.
- Map: draws a treemap by component, folder, file, and function, with each block sized by line count and colorable in five ways: importance, recent change count, AI touches, unreachable code, and rule violation ratio.
- Layers: shows the calls that actually occur between components in matrix form, and marks each cell as allowed, prohibited, undrawn, or stale edge according to the conventions in architect.md; components that call each other are boxed as cycles.
- Flow: after selecting a starting point, draws the call chain as a sequence diagram, three levels deep by default, with branches expandable on demand and arrows clickable to jump to the call site.
- Hotspots: displays each file's or function's line count and commit count (30/90/365 days) on logarithmic coordinates, and lists the top 20.
- Co-change: finds pairs of files that are always modified together but have no import relationship with each other, and shows their shared commits and Claude Code sessions.
- Timeline: replays commits and recordedRecord changes, lighting up modified files frame by frame on the graph, with rejected check_change verdicts marked in red.
- Rule suggestions: off by default; statistics only begin after it is enabled. It measures actual conventions from parse results, and you can also click "Suggest with AI" to let Claude Code give suggestions; each suggestion is labeled as "measured" or "AI suggestion" and must be manually clicked to add before it is written to architect.md.
Rules and checks
The optional ## Rules section in architect.md can set: maximum lines per file (lines), maximum number of code files per folder (files), words forbidden in file names, class names, or function names (names), number of unrelated export function groups a single file can hold (jobs), function split suggestion threshold (split), and files excluded from checks (skip). Any rule can be turned off, backtick globs can limit a rule to specific paths, and the last matching line takes effect. check_change rejects only when a change adds a violation or makes a violation more severe, and points out the rule, file, and line number.
Change review and agent integration
Change review is off by default. After turning on Review in the status bar, or toggling it in the command palette (Space), Claude's propose_change will first wait for your approval, and Claude Code's Edit, Write, and MultiEdit on files within opened projects will also pause through the PreToolUse hook. The Review tab lists pending changes, showing where they land on the architecture graph, the functions involved and their caller counts, and the before/after diff; you can approve, reject, or type a better approach to send back to Claude. Contract proposals unanswered for 5 minutes are returned to Claude with pending status, and it can use await_proposal to keep waiting; pending proposals are retained after restart in ~/.architect/pending.json; code edits unanswered for 9 minutes fall back to Claude Code's own permission prompt. When review is off, Architect is not running, or the file is not in any opened project, the hook exits immediately with no behavior change.
Architect also provides write_agents (or architect agents) to generate AGENTS.md for the folder containing a component, with all content copied from architect.md, rewriting only files with marker comments; the where tool answers which component and folder a new function should go in before you write it.
Use cases and limitations
Suitable for teams using AI coding agents that want to control code structure sprawl and keep layering clear, especially projects that need to write architecture conventions into the repository and review them along with PRs. The material does not state the supported programming language scope (the example uses TypeScript syntax trees to analyze similar functions, and rule checks are based on repository parsing), platform requirements, pricing, or performance limits. Similar function search runs locally, requires no key, and makes no network requests; change review and AI rule suggestions depend on Claude Code integration. Beyond the above features, billing method, price, additional platforms, or effects are not yet provided.