2026-11-27 16:19 UTC

Archwhere launches an agent-maintained architecture map for GitHub PRs

state: expiredheat: mediumuncertainty: mediumrelevance: mediumcoding-agents software-architecture developer-toolsTapas Kar

What is this?

Archwhere is a developer tool by solo founder Tapas Kar, released on GitHub and introduced in a Show HN post on October 31, 2026. The repository describes it as MIT-licensed and dependency-free, using a JSON architecture map to associate files and pull requests with declared software components. It includes CI checks for unmapped or stale paths, PR summaries and a local interface for viewing changes and interacting with coding agents through GitHub. The author says agents maintain the map as part of the merge workflow. These are project and author descriptions; the supplied evidence does not independently establish adoption or effectiveness.

Why it matters

Archwhere addresses a practical coordination problem as coding agents generate more changes: seeing which parts of a system they touch and keeping architectural documentation from going stale. Its notable idea is to make the map part of the agent workflow and merge checks, rather than rely on humans to update it. If it works in practice, that could make agent-heavy development easier to supervise, but the evidence here is a single launch post and repository description, not proof of uptake or impact.

Current assessment

New: Archwhere was presented on Hacker News as a Show HN on October 31, 2026; its linked GitHub repository was fetched successfully the same day. The repository describes a tool that drafts an architecture map from repository structure and imports, maps changes to declared components, adds GitHub PR comments and CI checks, and offers a local mission interface with component threads and agent replies routed through GitHub. Its stated design makes agents responsible for updating the map, with checks intended to prevent stale or unmapped paths. The repository lists an MIT license and credits Tapas Kar. The author’s claims that agents ship 30 PRs a week and that setup takes under twenty minutes are not independently verified. The available evidence does not establish adoption, reliability, security properties, or whether agent-maintained maps remain accurate. Potential significance is better oversight and architectural context for teams using coding agents; practical value depends on whether teams trust the declared map and enforce the workflow. Web results supplied no relevant independent corroboration.

Measured heat

no measured readings yet β€” the hourly heat pass fills this in

How the heat travelled

10-30 13:00⭐ origin echo-reconstructedThe repository is the origin: it describes archwhere as a tool that maps every coding-agent change to a declared architecture map and makes
Tapas Kar on github (echo) Β· attributed from hn.story.50313522
β€”
10-31 05:46first on hacker news Β· published Β· +16.8hShow HN: Archwhere – work alongside AI coding agents on an architecture map
sparkupcloud
β€”
10-31 05:46amplified on hacker news πŸ‘‘hn.story.50313522
sparkupcloud
peak 1 Β· 0 comments Β· 104% of case engagement
10-31 06:20our radar first saw it Β· +17.4hdiscovery anchor: hn.story.50313522β€”

Evidence (2) β€” ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnShow HN: Archwhere – work alongside AI coding agents on an architecture map
Retrieved article excerpt

Open article Β· Retrieved 2026-10-31T06:21:47.121233+00:00

# archwhere

**Your AI coding agents ship thirty PRs a week. Do you know where they land?**

archwhere puts every change β€” every PR, every task, every agent β€” on a **declared
architecture map**: which component it touches, whether that component is a
security zone, and what needs you *right now*. Then it goes further: the map
becomes the place you **talk to your agents**.

[mission control](https://github.com/tapaskar/archwhere/blob/main/docs/img/mission.png)

*Mission control on a fictional product: the attention rail (security β†’ blocked β†’
needs-attention β†’ ready-to-merge), the component map with live badges, and a
thread pinned to a component β€” answered by a coding agent, with its PR.*

Zero dependencies. One JSON file. Works with Claude, or any agent that can see GitHub.

## Why

Supervising an agent workforce diff-by-diff doesn't scale. Architecture tools
(Structurizr, IcePanel) assume a human architect maintains the model β€” so the
model rots. CODEOWNERS and labelers map files to owners but carry no meaning.

archwhere inverts it: **your agents maintain the map as a condition of merging**
(there's a `SKILL.md` that tells them how, and `archwhere check` fails CI when
the map goes stale). You read components, not diffs.

## Quickstart

```
npx archwhere init
```

That **drafts the model from your repo itself** β€” directory structure,
`package.json` workspaces, import edges β€” with guessed kinds (auth β†’ security,
ui β†’ product, scripts β†’ ops), plus the PR-comment workflow and two agent
listeners. `archwhere check` passes from minute one; you rename and refine
instead of starting from a blank file. It also prints a prompt you paste to
your coding agent so *it* polishes the model by surveying the repo. The
cold-start problem every architecture-as-code tool dies on? Automated.

Daily driver:

```
npx archwhere                    # what is my working tree touching?
npx archwhere --base origin/main # what does this branch touch?
npx archwhere check              # CI guard: model valid, no file unmapped, no stale glob
npx archwhere check --fix        # adopt unmapped files into the nearest component
npx archwhere heat               # which components churned most in the last 30 days?
npx archwhere doc --out ARCHITECTURE.md
npx archwhere mission            # the UI at http://localhost:4610
```

## The map heals itself

When an agent's PR adds files the model doesn't own, the PR comment doesn't
just complain β€” it **suggests the exact patch** (adopt into the nearest
component, or create a new one), and `archwhere check --fix` applies it. Tell
your agents "run `check --fix` and review the adopted globs" and the map stays
alive with no human bookkeeping.

## Every PR gets mapped

Add the action (one of the files `init` writes):

```
- uses: tapaskar/archwhere@v1
```

Every PR gets a comment: a component/kind/files table, security flags, and the
system map with touched components highlighted β€” rendered natively by GitHub:

```
flowchart LR
  web-app["Web app"]
  mobile-api["Mobile API"]
  admin-console["Admin console"]
  ticket-engine["Ticket engine"]
  auth["Auth & sessions"]
  search["Search"]
  notifications["Notifications"]
  billing["Billing"]
  llm-gateway["LLM gateway"]
  jobs["Jobs & queues"]
  ops["Ops & CI"]
  docs["Docs"]
  web-app --> ticket-engine
  web-app --> auth
  mobile-api --> ticket-engine
  mobile-api --> auth
  admin-console --> ticket-engine
  ticket-engine --> search
  ticket-engine --> notifications
  ticket-engine --> llm-gateway
  search --> jobs
  notifications --> jobs
  classDef core fill:#E8EEF9,stroke:#2F4AC0,color:#1F2433
  classDef security fill:#FDE8E4,stroke:#C2410C,color:#1F2433
  classDef feature fill:#FFF4E0,stroke:#B45309,color:#1F2433
  classDef infra fill:#EFEFEF,stroke:#595959,color:#1F2433
  classDef product fill:#E3F2EC,stroke:#0F7A5C,color:#1F2433
  classDef ops fill:#F3E8F9,stroke:#7E3FA0,color:#1F2433
  classDef docs fill:#F7F7F7,stroke:#8A8A8A,color:#1F2433
  classDef other fill:#F2F2EF,stroke:#777,color:#1F2433
  classDef touched fill:#F7B32B,stroke:#1F2433,stroke-width:3px,color:#1F2433
  class web-app,mobile-api,admin-console product
  class ticket-engine core
  class auth security
  class search,notifications,billing feature
  class llm-gateway,jobs infra
  class ops ops
  class docs docs
```

 Loading

## Talk to your agents on the diagram

`npx archwhere mission` serves a local UI where the map is the conversation surface:

- **Attention rail** β€” security items, blocked decisions, PRs needing attention,
  PRs ready to merge (the Merge button uses *your* token; agents never merge).
- **Click any component β†’ open a thread.** Threads are GitHub issues labelled
  `component:<id>` (auto-created). Your agent answers; the reply appears on the map.
- **Four lenses** β€” Structure / Changes / Heat / Runtime.
  **Heat** colours components by git churn over the last 30 days β€” where your
  agents are actually spending effort. **Runtime** colours them by live health
  from any endpoint you point `RUNTIME_URL` at, returning
  `{"components": {"<id>": {"status": "ok|warn|bad", "lines": ["…"]}}}`.

### Bring your own coding agent

The bus is GitHub β€” archwhere never talks to an agent directly:

| Your agent | Setup |
| --- | --- |
| **Claude** | `agent-reply.yml` (written by `init`) answers `@claude` via the Claude GitHub App |
| **Any agent with an API** | `agent-webhook.yml` POSTs each thread event (component, issue, body, HMAC) to `AGENT_WEBHOOK_URL`; it replies with its own GitHub token |
| **Anything already watching GitHub** | nothing to do β€” have it watch issues labelled `component:*` |

Which mention the UI appends is yours: `arch/mission.config.json β†’ {"agentMention": "@your-bot"}` (env `AGENT_MENTION` overrides; `""` disables).

## The model

One file, declared judgment β€” not an auto-extracted import hairball:

```
{
  "system": "Meridian",
  "components": {
    "auth": {
      "name": "Auth & sessions", "kind": "security",
      "provider": "Auth0 + RBAC",               // shows on every surface: map, PR comment, docs, mission UI
      "paths": ["core/auth/**"],                  // ** crosses dirs, * stays in one; longest match wins
      "watch": [{ "pattern": "session|token|rbac", "note": "security review" }],
      "deps": []
    }
  },
  "lanes": [["web-app"], ["auth"]],               // optional; defaults to kind grouping
  "flows": { "signup": { "name": "…", "actor": "…", "steps": [{"from": "web-app", "to": "auth", "label": "SSO"}] } }
}
```

Kinds: `core Β· security Β· feature Β· infra Β· product Β· ops Β· docs`. `flows` are
your C4-style dynamic views β€” the process layer above the components. The full
example: [`examples/meridian/architecture.json`](https://github.com/tapaskar/archwhere/blob/main/examples/meridian/architecture.json).

## Interactive diagrams (Archify)

`npx archwhere ir` compiles the model into [Archify](https://github.com/tt-a1i/archify)
IR β€” an animated signal-flow system diagram with trust boundaries and guided
views per flow, plus one numbered diagram per flow. Render with Archify's CLI.

## For your agents

[`SKILL.md`](https://github.com/tapaskar/archwhere/blob/main/SKILL.md) is the agent's side of the contract: place work on the map
before coding, extend the model when adding modules, update flows when changing
user-visible processes, keep `archwhere check` green. Works as a Claude Code /
agent skill, or paste it into your agent's instructions.

## Compared to…

|  | maps PRs | visual | agents maintain it | talk to agents on it |
| --- | --- | --- | --- | --- |
| CODEOWNERS / labeler | βœ“ | β€” | β€” | β€” |
| Structurizr / IcePanel | β€” | βœ“ | β€” | β€” |
| dependency graphs | βœ“ | hairball | n/a | β€” |
| **archwhere** | βœ“ | βœ“ | βœ“ | βœ“ |

## Onboarding at a glance

From stranger to agent-replies-on-the-map in under twenty minutes β€” the full
funnel, stage by stage: [docs/ONBOARDING.md](https://github.com/tapaskar/archwhere/blob/main/docs/ONBOARDING.md).

## License

MIT Β© Tapas Kar. Built with and for AI coding agents β€” this repo's own model
lives in [`arch/architecture.json`](https://github.com/tapaskar/archwhere/blob/main/arch/architecture.json), of course.
sparkupcloud10
🟧 echo.github ⭐The repository is the origin: it describes archwhere as a tool that maps every coding-agent change to a declared architecture map and makes Tapas Karβ€”β€”

Interpretation history

Decision trace