Facet
DeutschInstall

A standard for autonomous coding agents

Every feature gets a memory. FACET connects documentation and code.

FACET is an attempt to create a standard for autonomous coding agents. With it, agents build more reliable software, AI development scales better, and above all, people keep insight into software that is no longer built by people.

This site shows the range of what FACET can be used for. Not everything is equally mature: each product shows its maturity in the menu and on its page.

Agents build the software now. FACET keeps it understandable.

Coding agents are fast, but they only know the code. What a product is actually meant to do lives in people's heads, tickets and old chats. The more agents build, the less anyone knows why the software does what it does.

  • Agents guess instead of knowing

    An agent knows the code, but rarely the intent behind it. FACET writes down what each part of the product should do, and the agent follows it.

    Sources (1)
    Why it happens, and what FACET changes
  • Documentation goes out of date unnoticed

    Software changes faster than documentation can be kept up to date. FACET reports where that happens and makes it visible to agents and people.

    Sources (2)
    • Almost half of nearly 9,000 people surveyed name incomplete or outdated documentation as their biggest obstacle to working together. Postman, State of the API 2026
    • Even in the closely reviewed Linux kernel, researchers found 869 outdated references in code comments. Sun et al., ASE 2026
    Why it happens, and what FACET changes
  • Nobody knows what is really safeguarded

    Many automated checks run and stay green, but that does not say whether the right thing is checked. FACET connects each described function of the product with its checks, so you see which one has none.

    Sources (2)
    • When AI writes the automated checks, how much of the code they cover no longer reliably says whether they find real bugs. Zhao, Zhou, Cohen, ISSTA 2026
    • More AI makes delivery less stable unless strong automated checks are in place. Google DORA 2025
    Why it happens, and what FACET changes
  • Nobody has the full picture anymore

    When agents build most of it, no person knows every detail. FACET shows in plain terms what the product does and which parts have checks, without needing an AI.

    Sources (1)
    • In a controlled study, developers who learned a new library with AI scored 50% on comprehension questions, those without AI 67%. The gap was largest when finding bugs. Anthropic, 2026
    Why it happens, and what FACET changes

How FACET does it

Each part of the product gets a short description in a fixed format, kept right next to the code: what it should do, examples that show it, and the checks that prove it. FACET calls this description a FACET recordA FACET record is a short, checkable description of one feature, kept as a YAML file next to the code. It states why the feature exists, the behaviour it promises as scenarios, and the tests that check it.In the glossary. When code changes but its description does not, FACET reports it.

WHAT A RECORD HOLDS

Write it down once. Stop re-explaining it every week.

A feature record has Facet (record section)A facet, written lowercase, is one of the seven sections of a feature record: Intent, Contract, Anchor, Verification, Observation, Knowledge and Lineage. Each answers one recurring question about the feature. FACET or Facet with a capital F is the product; a facet is only a section of a record.In the glossary, each answering a question somebody asks every week. And three more record types hold what no single feature owns: the rules, the beliefs and the data.

One stripe per facet2 / 7 · Contract

Intent, Contract, Anchor, Verification, Observation, Knowledge, Lineage, Policy, Assumption, and Data entity

FACET · intent

What is this for?

Two or three sentences on why the feature exists and how it should behave. The sentence a new hire, a support agent and an agent all read first.

Everyone. Atlas puts it at the top of every page.

FACET · contract

What behavior is required?

Scenarios in Given / When / Then, plus business rules in plain sentences. Rules carry the numbers that tend to be scattered through the code — the 14 days, the 50 %.

Product, QA, the agent before it edits.

FACET · anchor

Where does it live in the code?

Not in the record — in the code. A comment on every place that implements the feature, with its role. The record doesn’t have to guess where its code went.

Developers, the editor, every hook.

FACET · verification

Which test verifies which acceptance criterion?

Each test entry refers to the scenarios it should verify. A scenario without a test entry is a warning; a missing test is an error. facet test runs the named test files and reports per file; what a test asserts is not checked.

QA, review, facet test.

FACET · observation

How do we know it works in production?

SLOs, alerts, dashboards and runbooks — linked from the feature they watch, not from a wiki page about the service.

On-call, SRE, leadership.

FACET · knowledge

What does a user need to know?

Five fixed questions. The owner answers them; FACET turns the answers into help, FAQ and onboarding — and leaves out what nobody answered.

Support, docs, new users.

FACET · lineage

Who owns it, and what hangs off it?

Owner, what it depends on, what depends on it, and the policies, assumptions and data it touches. Every reference is checked — a dangling one is a lint error.

Owners, architects, anyone changing a dependency.

Record type: Rules

Which rule binds many features at once?

Regulatory, security or business rules that cut across features — with clauses you can check, a scope saying which features they govern, and how compliance is verified.

Legal, security, every feature in scope.

Record type: Assumptions

What do we believe that could turn out false?

A named belief the code depends on, with evidence, a review date and what breaks if it’s wrong. When the date passes, it shows up — instead of quietly ageing in someone’s head.

Product, research, whoever owns the risk.

Record type: Data

What data is this, and who may touch it?

The canonical model: its schema, who owns it, how long it’s kept, and which features read or change it.

Data, privacy, platform teams.

1 of 10

Show full demo

Feature · seven facets

Alongside · own records

FACET · contract

What behavior is required?

Scenarios in Given / When / ThenGherkinGherkin is the plain-language format that describes how software should behave as concrete examples, written as Given, When and Then.Read more about Gherkin, plus business rules in plain sentences. Rules carry the numbers that tend to be scattered through the code — the 14 days, the 50 %.

WHO READS IT

Product, QA, the agent before it edits.

YAMLcheckout/pricing/discount-codes.yaml
contract:  business_rules:    - id: discount-cap      rule: A discount never exceeds 50 % of the cart.  scenarios:    - id: expired-code-rejected      Given a code that expired yesterday      When the customer applies it      Then the total is unchanged

Field names from the schema/facet.schema.jsonOriginal excerpt from the English source.[…] Schema for a FACET feature record (FACET spec 1.3.0, Appendix A.1). […]View on GitHub · examples from FACETOriginal excerpt from the English source.[…] a named, coherent capability of the product that can be reasoned about, changed, and owned independently. […]View on GitHub

HOW IT WORKS

Code changes. Check what it means for the docs.

Code changes, Drift is detected, The agent is told, and The agent updates the docs

Code changes

An agent edits a file with a code comment linking it to a feature record.

Drift is detected

FACET flags that linked code changed while its record stayed the same.

The agent is told

Before it can say “done”, it has to look — once, with the reason.

The agent updates the docs

The agent updates the record. FACET flags help articles based on the old version.

1 of 4

Show full demo
account/access/password-resetexample repository · loops every 16 s

RECORD · password-reset.yaml

intent:  summary: A customer who forgot their    password gets a link by email. It works    once and stops after 60 minutes.contract:  scenarios:    - id: link-expires-after-60-minutes

CODE · src/reset.ts

// @facet: account/access/password-reset// @facet-role: primaryexport const LINK_LIFETIME_MINUTES = ; export function isLinkValid(sentAt, now) {  return now - sentAt    < LINK_LIFETIME_MINUTES * 60_000;}

Resetting your password

We email you a link. It works once, for 60 minutes. After that, ask for a new one.

regenerated · fresh

record updated · link-expires-after-60-minutes$ facet docs checkstale: help/password-reset.md — written from an older revision of its recordregenerated from the record

Replay · example repository · drift line in facet’s real format; hook and docs-check wording paraphrased

BEFORE YOU TRY IT

Fair questions. Plain answers.

What people ask first about a research preview, and what is true today.

Only one maintainer?
Yes. FACET is a private research project maintained by one person. That is why nothing you depend on is locked inside the tool: records are plain YAML files next to your code, described by a public JSON Schema and readable without FACET. If you stop using it, the records stay as documentation and your tests stay where they are.
Only a release candidate?
Yes, version 0.1. Formats and commands can still change. Try it on one feature in a branch first; if it does not help, delete the branch.
Any real-world results?
Not as a measured study. I use FACET in my own work: running facet adopt on a large SaaS product uncovered real defects and helped raise its test coverage. These are early observations from one product. Try it on your own code; finding that it does not help is a valid result too.
Only for Claude Code?
No. The CLI runs on its own (npx facet-framework), and facet mcp serves your records to any agent that speaks MCP. The plugin adds hooks that run while the agent works.
What does it cost?
FACET itself costs nothing: Core and Facet UI are Apache-2.0, Atlas is AGPL-3.0, and the tools run on your machine. Costs come from your AI provider, mostly when an agent writes records for existing code. Those costs have not been measured yet.
Isn’t this just BDD or Cucumber?
FACET borrows Given / When / Then from Gherkin but has no step definitions: a record names the tests that prove a scenario, and those stay in the test runner you already use. What is new is the check whether code and description still belong together while an agent changes the code.
How much upkeep does it take?
There is no measurement yet. Start with one feature, keep its record for a few weeks, then decide whether it pays for itself.
What about code without an anchor?
FACET does not see it. Lint and drift only cover code that carries an @facet: anchor; changes elsewhere go unnoticed. facet adopt helps find features in existing code that have no record yet.

Make existing products agent-ready with FACET.

An existing project does not need a restart to become traceable. Guided back-filling surveys the code, drafts feature records and makes the depth of review visible, including the questions that still need an owner's answer.

  • QuickA starting point for review
  • ThoroughCompare every draft with the code
  • EvidencedAlso check the running product
Show full demo
  1. Agree scope and effort

    First settle the area, languages and where the run protocol lives. A cost estimate comes before the actual run.

  2. Turn code into feature drafts

    The workflow surveys existing code into CapabilityA capability is the middle part of a feature id: a group of related features within one domain, such as pricing within checkout.In the glossary and drafts the corresponding records with their connections.

  3. Choose the depth of review

    A draft, review against code and observation in the product are different evidence. The report names which depth was used.

  4. Continue from what remains open

    Unresolved questions go to owners. An interrupted run resumes from its checked protocol instead of drafting everything again.

Compare every draft with the code

A separate review reads every draft against the implementation. Findings are revised, rejected with a reason or left as open work, including missing tests.

  • Feature drafts and format checksincluded
  • Review and revise every draftincluded
  • Reproduce deviations in the running productnot included

Result: reviewed and revised descriptions with a traceable list of remaining gaps.

/facet:setup

Setup leads into adoption of existing code. This is an agent workflow, distinct from importing recorded fixes with facet defects backfill.

Read the back-filling guide

Large runs can consume a substantial AI usage allowance. The examples show the workflow, not verified coverage of this project.

ATLAS

Atlas makes what agents build readable for people.

AtlasSchematic Atlas preview: checkout with linked features and a seven-stripe seal.Atlas opens your repository as a product map, showing features, their requirements and the tests linked to them in your browser.View nowRead more here opens your repository as a map of your product: what each feature should do, whether that is tested, and where code and documentation have drifted apart. Product, support, management and engineering each get the view they need.

npx facet-framework ui
Explore AtlasPreview · Release candidate 0.1.0-rc.1
7 (source: the Atlas docs, Seven roles)
views for different roles
3 (source: navigation/atlas/visible-depth)
levels: product, feature, expected behavior
Atlas product view: the five areas of an example shop app as a city, one building per feature, with the share of scenarios a test names per area
Atlas with example data · one building per feature, one window per ScenarioA scenario is one behaviour a feature promises, written in a record as Given/When/Then steps. Each scenario has an id that tests and other records can refer to.Read more here, coloured by whether a test names it

GET STARTED

Set up FACET before your agent's next change.

Four steps. A wizard walks you through them — it measures what’s already there, asks before it writes, and checks each step where it takes effect.

  • 01 Open your projectcheck: the agent is in your project folder
  • 02 Run the setup wizard/facet:setup
  • 03 Back-fill the records/facet:setup adopt
  • 04 Check what you havefacet lint
Show step details
  1. 01 · PROJECT

    Open your project

    Nothing in your repository changes yet. The plugin stays silent in a project that hasn’t adopted FACET.

    check: the agent is in your project folder

  2. 02 · WIZARD

    Run the setup wizard

    /facet:setup

    It sees code and no records, and proposes the back-fill profile: scaffold, taxonomy of your DomainA domain is the first part of a feature id: a product area such as checkout, never a team or a service.In the glossary, agent layer, git.

    check: every step checked where it acts

  3. 03 · ADOPT

    Back-fill the records

    /facet:setup adopt

    Surveys your code into capabilities and drafts a record for each — then hands back what only an owner can answer. Pick how thorough below.

    check: a protocol you can resume, a list of open questions

  4. 04 · CHECK

    Check what you have

    facet lint

    The lint checks every drafted record against the schema and the anchors in your code, and names each one that fails.

    check: one lint report for the whole RegistryThe registry is the set of FACET records of one product, which FACET indexes, checks and serves to tools. A monorepo can declare several registries in .facetrc.yaml, each with its own source folders.In the glossary

BACK-FILL · THREE WAYS TO ADOPT AN EXISTING CODEBASE

  • Quick

    tokens: low · quality: drafts

    Drafts only, unverified. On complex software, expect the records to be wrong in places.

  • Thorough

    tokens: higher · quality: good

    Reviews every draft against the code and revises it. Ends with a checklist of deviations and missing tests.

  • Evidenced

    tokens: very high · quality: very good

    Also reproduces each DeviationA deviation marks a scenario whose current behaviour is known not to be what anybody wants, such as a confirmed bug, with the reason and how it was confirmed. The record then does not present that behaviour as a promise.In the glossary in the running product. What it reports as a bug was observed.

You see a cost estimate before it starts. Every run keeps a protocol it can resume from. Questions only the owner can answer are handed back, not invented.