Your architecture.
Enforced automatically.
HexPatrol is an AI agent that watches your repository around the clock — validating hexagonal architecture boundaries, catching drift the moment it happens, and auto-correcting boundary crossings before they become tech debt.
Architecture enforcement at runtime
Traditional static analysis runs on demand. HexPatrol runs all the time — catching violations as they happen, not hours later in a CI report.
Every push and pull request is scanned against your ports-and-adapters contract. Violations surface as comments or CI annotations the moment a boundary is crossed — before the merge.
HexPatrol doesn't just flag violations — it proposes and applies corrections directly to the codebase. Boundary crossings are rewritten to respect the hexagon, keeping your architecture intact without manual intervention.
HexPatrol generates and maintains an always-current architecture diagram from your actual code. Share it with new team members, use it in code reviews, and trust that it reflects reality — not a stale diagram in Confluence.
Bounded contexts, aggregates, and domain events are first-class concepts. HexPatrol understands your ubiquitous language and enforces it — not just the technical hexagon, but the language your team uses to describe the domain.
Architecture violations never land on main. HexPatrol runs as a background guard — so your CI/CD gates stay green, reviewers focus on intent, and the main branch is always shippable.
HexPatrol was built for the modular monolith pattern — enforcing strict boundaries inside a single deployable unit. Get the isolation of a microservice architecture without the operational overhead.
Up and running in minutes
No agents to deploy. No CI/CD pipelines to modify. A four-step setup and HexPatrol is standing guard.
Connect your repository
Add HexPatrol to your GitHub or GitLab organisation and grant it read access to your repository. It needs nothing more — no secrets, no CI modification, no agent running in your environment.
Define your hexagon contract
Point HexPatrol at your core domain layer and your port interfaces. It maps the current structure automatically — or import your existing alders, bounded-context annotations. This becomes the contract it enforces.
HexPatrol watches, always-on
Every push triggers a boundary scan. Every pull request gets a pre-flight check. Violations are flagged as GitHub comments or GitLab merge request notes — with a proposed auto-fix in a single click.
Boundaries hold automatically
When a violation is auto-corrected, HexPatrol opens a branch, applies the fix, and pings your team for review. Your architecture diagram updates in real time. Tech debt stops accumulating on day one.
Stop defending your architecture.
Start enforcing it.
Join teams already running HexPatrol in preview. Set up takes minutes. No agents to manage, no pipeline changes required.
Featured article
Why architecture drifts
Research
How architecture enforcers compare
Read a source-backed review of architecture-rule tools, dependency checks, and the limits of comparing products from documentation alone.
Explore the architecture-enforcer audit