Your specs and architecture docs, enforced on every pull request.

Striff turns the rules already written in your docs into checks. When a pull request breaks one, it comments with the exact sentence it broke.

Striff on Pull request #418 acme/checkout-service · feat/csv-export → main 1 rule broken
checkout/CsvExporter.java new file + import legacy.pricing.PriceCalculator;

One of the 8 rules Striff checked in this repository’s own docs no longer holds. Nothing was configured.

1broken 7held
Never import from legacy/ in new code; use the equivalents in core/. AGENTS.md:18 Nothing in checkout depends on legacy Agent instructions CsvExporter, new in this pull request, imports legacy.pricing.PriceCalculator Broken The rule held before this pull request and is broken after it.
core never depends on feature modules such as checkout. ARCHITECTURE.md:22 Nothing in core depends on checkout Layering Holds The rule held before this pull request and still holds after it.
Only the billing module talks to the Stripe SDK. docs/adr/0007-payments.md:13 Nothing in checkout depends on com.stripe Payments ADR Holds The rule held before this pull request and still holds after it.

Open the acme/checkout-service sample dashboard →

Works with Java Kotlin Python C# TypeScript

The problem

Your docs say one thing. Your code does another.

When your team can generate a new feature in an afternoon, a wrong boundary gets built in an afternoon too, and every agent that reads the codebase afterwards copies it. Your docs said where the boundary was, such as "the billing module never calls the web layer". Nobody checked. This is spec drift.

  1. 1What teams do now

    Teams write their architecture rules down, and AI coding agents read them.

    63%of 335 projects with written architecture rules give those documents to their AI coding agents.
    See the 335-repository survey11 min
  2. 2What goes wrong

    Nothing checks new code against those rules, so it breaks them.

    1 in 38of the written rules was found broken in the code, across 609 public pull requests.
    See the 609 pull requests7 min
  3. 3What it costs

    A broken rule is a line to fix now and a refactor later.

    20–61%of a project's maintenance effort goes to its five worst architectural problems. See the cost studies11 min

Striff checks every pull request against your docs and flags the violation while it is still a one-line fix.

What Striff posts on a pull request.

Every rule your docs state about the code the change touched, whether it still holds, and the sentence it came from. It appears as:

striffbot commented 2 minutes ago · edited

Striff checked a3f9c21: 1 broken · 4 hold · 2 couldn't be checked · 1 new rule

StatusRule
Broken Nothing in checkout depends on legacy · AGENTS.md#L18 “Never import from legacy/ in new code; use the equivalents in core/.” What breaks it: checkout.export.CsvExporter → legacy.pricing.PriceCalculator (added in this pull request)
New rule · Holds Every exporter lives in checkout.export · docs/adr/0012-exports.md#L9 “Exporters live in checkout.export, one class per format.”
Couldn't check CheckoutService runs in one database transaction · ARCHITECTURE.md#L41 “CheckoutService runs inside a single database transaction.”
Couldn't check Every public endpoint requires authentication · docs/security.md#L12 “Every public endpoint requires an authenticated caller.”

Couldn't check: a rule near your change that Striff can't decide from the code it reads. Check it by hand.

4 more documented rules about this change hold
StatusRule
Holds CheckoutService depends on core.orders · ARCHITECTURE.md#L36
Holds Nothing in core depends on checkout · ARCHITECTURE.md#L22
Holds CheckoutService has a checkout method · specs/checkout.md#L14
Holds Nothing in checkout depends on com.stripe · docs/adr/0007-payments.md#L13

Full result · Rules · Comment settings · About Striff

Select a point to see where it appears in the comment.

The standard, and its source
Every finding cites the document and line it came from, so the author can see which agreed standard applies.
Your wording, quoted
The sentence is shown as written, and the verdict is computed from the parsed code at both revisions of the pull request.
Specific evidence
The dependency this change introduced is named, so the correction is specific and can be made before the merge.
Limits stated, not hidden
A rule Striff cannot decide from the source is listed as Couldn't check. It is never reported as passing.
Quiet by design
One comment per pull request, updated in place. It is posted when a rule breaks, is restored or changes.

Every verdict is computed, not generated.

A language model reads your docs and proposes the rules. A program, not the model, decides whether the code keeps them.

01 How a documented rule becomes a verdict

  1. 01 Parse Deterministic

    Both revisions of the code become one structural model — types, members, references, packages — resolved the way a compiler resolves them, never matched as text. Everything after this point is about the model, not about the source.

  2. 02 Read Language model

    Your documents go to a language model, which proposes candidate rules from prose. It is the step most likely to be wrong, which is what the next step is for.

    “Never import from legacy/ in new code” · AGENTS.md:18

  3. 03 Ground and compile Deterministic

    Every name a proposed rule uses must resolve in the model. One that names a class your code does not contain is dropped rather than guessed at. What survives is compiled into a formula of first-order logic over the model — the point past which no prose is left to interpret.

  4. 04 Evaluate Deterministic

    The formula is model-checked at both revisions. Which of the two satisfy it is the whole verdict: satisfied before and not after is a rule this change broke; unsatisfied at both was already broken and is not blamed on the change. The sentence you read on the check is composed from the formula, so it cannot drift from what was actually checked.

How we keep the model honest6 min readEvery Striff finding comes with a receipt

For engineering leaders

The architecture your team agreed on keeps holding, however fast you ship.

  • The docs your team wrote become fitness functions. The layering, module boundaries and dependency rules in your ADRs, design docs and AGENTS.md are checked on every pull request, by people and agents alike. No rules to write, no new process to teach.
  • See architectural drift before it turns into a rewrite. Which repositories broke a documented rule this month, which pull requests did it, and which docs have gone stale. The places your clean-up time should go.
  • Nothing to roll out. One install covers the organisation. No per-developer setup, and the check is advisory until you choose to make it required.
Example workspace
The rules are still loading.

Docs & rules

acme/checkout-serviceGitHub

Pick a doc for its rules, a folder for everything beneath it, or the repository for all of them.

Open this view in the dashboard demo
  • Quiet by design The check stays green unless a documented rule breaks. Across our open-source users, fewer than 4% of pull requests have broken one.
  • Your code stays yours Parsed in memory, never stored. Self-hosted deployment on Enterprise.
  • Flat, predictable pricing $29, $59 or $149 a month by private repos used. Free for open source.
  • Value on the first pull request It reads the docs you already have. Nothing to configure.
…Striff, the tool that finds inconsistencies between documentation and the source code. We installed it already to the EO and it works good. It’s free for open repositories. I recommend.
Yegor Bugayenko · Founder of Zerocracy, author of Elegant Objects
on Telegram, October 2026
objectionary/eo 1.5k stars
It is difficult to keep architecture documentation in sync when the codebase and architecture are changing so quickly, especially with AI-driven development. … I installed Striff on the AgentBridge repo and it has already flagged a few things!
Henrik Westergård · Maintainer of AgentBridge catatafishen/agentbridge 89 stars

Get started

Start with public repos. Scale to your team.

Nothing to learn and no workflow to change: Striff shows up as one more check on the PRs your team already opens. Start free on public repos, add private repos when you're ready.

Free

$0 forever

Public repositories

Your documented rules checked on every public pull request, with a diagram of each change. Free for open source, forever.

Starter

$29 /mo · up to 5 private repos

One team's private repos

Your documented rules checked on every private pull request, with a diagram of each change, for one team’s repositories.

Team $59/mo · Scale $149/mo →

Enterprise

Talk to us

Self-hosted & 50+ repos

Private deployment, SSO, and audit workflows for organizations that need full control.

FAQ

Common questions

How does Striff know what my architecture is supposed to look like?

You already wrote it down. Striff reads the documents in your repository that make claims about the code, turns those sentences into rules, and checks them against the code your pull request produces, quoting the sentence and linking the file it came from. Nothing is configured and no rule format is invented: your documentation is the rulebook. A rule can be as plain as where a class lives or as sharp as “the domain module must not depend on infrastructure”. Alongside the rules, every pull request gets a diagram of what changed and review notes on the components it touched. If your docs make no checkable claim about the code, Striff invents no rules of its own: you still get the diagram and the review notes.

Does Striff work with spec-driven development?

Yes: it is the check that comes after the spec. Spec-driven workflows help you write a spec and build from it, and nothing in them checks, on the pull requests that follow, that the code still does what the spec says it does. Striff reads the specs, plans and design docs committed to your repository alongside your AGENTS.md, CLAUDE.md and ADRs, turns each sentence that makes a claim about the structure of the code into a rule, and checks every pull request against it. A sentence that describes work still to come is not held against code nobody has written yet. When a change contradicts the spec, the check quotes the line: that is spec drift, caught while it is still a one-line fix.

What languages does Striff support?

Striff reads Java, Kotlin, TypeScript, Python and C#. Striff parses source into a full structural model with its own parser, not regex or text matching, so references, inheritance and dependencies resolve the way a compiler sees them. Go is coming.

Is it just an LLM wrapper?

No, and the architecture is the answer. A language model reads your docs and proposes rules; a program decides whether each one holds. The parser builds a model of the code at both revisions, each documented rule becomes a query over that model, and a rule is held when nothing in the pull request breaks it. When a rule looks broken, an agent re-reads the sentence and the code twice, independently, before you see it, and the break is shown only if both readings confirm it on the same evidence. That step can hold an accusation back; it cannot invent one, and it cannot turn “could not answer” into a pass. A rule Striff cannot answer from the code is reported as one it couldn’t check, never counted as green.

Will it slow down or block my pull requests?

No. Striff runs as a GitHub Check next to your CI and posts its results when the analysis finishes, typically within a few minutes. It never blocks a merge unless you choose to make the check required.

What do I need to set up?

Just install the GitHub App. It works on public and private repos alike and posts checks automatically on every PR, with no per-developer setup. Plans start at $29/month, based on how many private repos Striff works on each month (it checks one of their pull requests or reads their documents after a push), not how many you connect. A quiet month costs $29, the Starter price. Public repositories are free.

Is this the same as architecture tests or fitness functions?

It is the fitness functions you never had to write. Tools like ArchUnit make you encode each rule a second time, in code. With Striff, each sentence in your docs that makes a checkable claim about the code (a dependency direction, where a class lives, what a module must not import, which methods a type has) becomes a check that runs on every pull request. The docs stay the source of truth: when someone edits a sentence, the rule changes with it on the next pull request, and nothing has to be kept in sync by hand.

Does Striff tell me what it couldn’t check?

Yes. Every rule has one of five states: Held, Newly broken by this pull request, Already broken before it, Restored by it, or Couldn’t check. A rule the code can’t settle, or a break the verifier would not confirm, is counted under Couldn’t check and never passed off as held. The dashboard lists each document Striff read and the rules it took from it, so you can see what is covered and what isn’t.

What happens when a rule breaks?

The check on the pull request lists it first, quotes the sentence, links the line in the doc and names the code that breaks it. In the dashboard, every finding can be opened as a GitHub issue that is already written, or copied as a prompt for your coding agent to fix the code or update the doc. A rule that breaks on the default branch is emailed to the people watching the repository.

Is my source code sent to a third party or stored?

Your code is parsed on Striff's servers in memory, and the source itself is not stored. Rules are proposed from your documents and verdicts are computed from the structural model of your code. When a rule looks broken, the verifier reads the files involved to confirm it, and the notes it made on that decision are kept for a limited time. For teams that need full control, self-hosted deployment is available on the Enterprise plan.

Code is cheap now. Changing it isn't.

Every unchecked merge makes the next change a little more expensive. The cost compounds quietly, and nobody can point at the day it started. Striff starts checking on your next pull request.