Skip to content
STIRUP

TECHNOLOGY INTELLIGENCE

Understand what's next.

Archwhere Integrates AI Coding Agents with Architecture Maps

Archwhere introduces a system that integrates AI coding agents with architecture maps, ensuring real-time updates and alignment with codebase changes through automated model maintenance and CI checks.

Share
AI-generated conceptual illustration accompanying: Archwhere Integrates AI Coding Agents with Architecture Maps
AI-generated editorial illustration of the article topic; not a photograph, product screenshot or measured result.

Architecture Map Integration with AI Coding Agents

Archwhere introduces an innovative approach to integrating AI coding agents with an architecture map, enabling developers to track every change — including pull requests, tasks, and agent actions — on a declared architecture map. This map identifies which components are affected, whether they fall within a security zone, and what needs are currently required. The tool further enhances collaboration by using the map as a central point of communication with AI agents. Archwhere inverts the traditional workflow by requiring agents to maintain the map as a condition for merging changes. This is enforced through a SKILL.md file that outlines the required behavior, and the system fails CI checks when the map becomes outdated. This ensures that the architecture map remains accurate and up-to-date, aligning AI agent actions with the evolving structure of the codebase.

Automated Model Maintenance and CI Integration

Archwhere introduces automated model maintenance and CI integration, streamlining the process of keeping architecture maps up to date. With the command npx archwhere init, the tool drafts a model based on the directory structure, package.json workspaces, and import edges, guessing component kinds such as auth → security or ui → product. It also sets up a PR-comment workflow and agent listeners. Once initialized, archwhere check runs seamlessly from the start, allowing users to refine and rename components rather than starting from scratch. When an agent’s PR introduces files outside the model’s scope, the tool doesn’t just flag the issue — it suggests precise patches, such as adopting the file into the nearest component or creating a new one. The --fix flag automates the application of these changes, ensuring the architecture map remains accurate and aligned with the codebase.

Interactive Diagrams and Dynamic Views

Archwhere introduces interactive diagrams and dynamic views through its Archify system, which compiles models into animated signal-flow diagrams. These diagrams include trust boundaries and guided views per flow, along with a numbered diagram for each flow. Unlike traditional tools such as Structurizr or IcePanel, which focus on dependency graphs and may result in complex visualizations, Archwhere emphasizes onboarding efficiency. According to the documentation, users can transition from being a stranger to receiving agent-replies-on-the-map in under twenty minutes. This process is detailed in the full funnel described in docs/ONBOARDING.md. The system supports work alongside AI coding agents, enabling real-time interaction and updates to the architecture map.

Agent Communication and Workflow Setup

Archwhere enables developers to work alongside AI coding agents by integrating them into an architecture map. The setup involves configuring agents to communicate through GitHub, without direct interaction with Archwhere itself. For instance, Claude can be integrated using the agent-reply.yml file, which is generated by the init command and answers @claude via the Claude GitHub App. Any agent with an API can also be connected by posting thread events to a specified webhook URL. Additionally, agents already watching GitHub can be configured to monitor issues labeled component:*. Developers can customize the agent mention in arch/mission.config.json, with the AGENT_MENTION environment variable providing an override option. The SKILL.md file outlines the agent's responsibilities, such as placing work on the map, updating models when adding modules, and ensuring the Archwhere check remains green. The architecture of the Archwhere repository itself is defined in arch/architecture.json, demonstrating how the tool is built with and for AI coding agents.

Model Structure and Configuration Details

Archwhere’s model structure is defined through a single configuration file that organizes system components, lanes, and flows. Each component, such as the "Auth & sessions" module, is categorized by kind (e.g., security, feature) and includes details like provider, paths, and watch patterns. The system uses a combination of Auth0 and RBAC for authentication, with paths specified using glob patterns to control access and monitoring. Lanes define groupings of components, while flows outline interactions between them, such as the "signup" flow involving the web-app and auth modules. Kinds are labeled as core, security, feature, infra, product, ops, or docs, providing a structured way to manage complexity. According to Hacker News Show, agents can be instructed to run checks and update globs automatically, maintaining the map without manual intervention. Hacker News Show notes that heat colors are applied to components based on git churn over the last 30 days, visually indicating where agents are actively working.

Sources and reporting notes

Based on published source material. No independent hands-on testing is claimed.

Read more