The architectural seatbelt for coding with AI. Declare your layers in CLAUDE.md, AGENTS.md, or a dedicated ARCHITECTURE.md, and every edit the agent makes is checked against your rules — the instant a violation happens, still inside the loop.
You declare the project's layers — ui, api, repo, db — and the dependency rules between them. Every allowed edge lets the light through; every forbidden edge is frosted glass.
Archlint reads the imports of each edit and checks them against the facade you drew. With no blueprint it does nothing — so it never breaks anyone's setup.
The analysis runs after the architecture has already rotted. Drift piles up across the 40 tool-calls of the session.
The check runs on the spot — while fixing is still cheap. Drift never gets the chance to accumulate.
graph --out layers.svg renders it.archlint report reads the drift log and shows how often the agent fixed its own violation in the same turn.archlint check --format sarif emits SARIF 2.1.0; a workflow snippet uploads it so drift shows up as code-scanning alerts.archlint check runs in CI and pre-commit on the identical code as the live hook. One definition, two places, zero divergence.archlint init reads the structure you already have — layers from directories, edges from real imports. You review it in 30s.archlint check in CI.A free MIT lite core, public forever. Everything else ships in Pro — one developer, unlimited projects.
The core that catches drift. Public on the marketplace.
archlint check in CI and pre-commit, plus SARIF output for GitHub code scanning. One architecture definition serves every surface.archlint init reads the structure you already have and drafts a blueprint — layers from directories, edges from real imports. You review it in 30 seconds instead of writing it from scratch. And with no blueprint, archlint simply does nothing: it never breaks anyone's setup.baseline.json is the one file meant to live in your repo.archlint check, the live hook, import resolution, and the four core languages — stays public. Pro ($20, one-time) adds the graph viz, cycle detection, forbid! hard blocks, init, baseline, the drift report, SARIF, the Cursor adapter, Java and C#, and one-command install.