How do you know your agent built what you meant?

When your request leaves a detail unsaid, your agent fills the gap with its best guess, and when you come back later, the agent there won't remember why it chose what it did.

With LID (Linked-Intent Development), you and your agent write the design down in plain English, and everything the agent builds points back to it. When you change your mind, you change the design once, and the agent carries the change down while you review each step. You'd type the design into the chat anyway, and LID keeps it where your agent can find it next time.

Narrowing to one programA field of dots, each a program an agent could build from a short request. Nested rounded rings close in on them, a hatched strip rules out one region ahead of time, and one orange dot is left inside a target.

A short request leaves the decisions to your agent.

Suppose you ask your agent to add a feature to your app:

You, to your agent

Give new users a 30-day free trial.

It sounds complete, but it leaves these decisions to the agent:

Someone who signs up at 11 p.m. on the 1st, in Tokyo, will notice how the last one was decided.

And green tests won't catch a wrong guess. An agent writes its tests from the same guess as its code, so they pass either way.

Each level you write down rules out what you didn't mean.

With LID, your intent is written down in levels, from the broad idea to the code. Each level is a constraint on what the agent can build, drawn here as a ring around the programs it still allows. Scroll through the free trial, one level at a time.

Each level rules out programsDots for every program that would satisfy the free-trial request. The high-level design's ring, the tenet's hatched strip, the low-level design's ring, and three overlapping requirement rings close in until a test's target holds one orange dot, the code, linked to TRIAL-003 by an @spec link.tenetHLDLLDTRIAL-003@spec
  • a program the agent could build
  • the code that got built
  • a test
  • an @spec link
  1. Start with the request

    You, to your agent

    Give new users a 30-day free trial.

    Your agent could build that in many ways. The trial could start at signup or at first use, end at the server's midnight or after exactly 720 hours, and lock the account or charge the card. Picture each possible program as a dot in a field like this one. A request this short leaves the whole field open, and the agent picks one dot.

  2. Write down why

    docs/high-level-design.md
    ## Goals
    New users can try the app free for 30 days before they pay.

    This is a high-level design, or HLD: why the project exists and what it must get right. It lives in your repository, like every LID document. Its ring is the first constraint, and it rules out programs that miss the point of the trial.

  3. Write down which way to lean

    docs/high-level-design.md
    ## Tenets
    - Customer delight over perfect cost management. When a choice could go either way, we lean toward the customer.

    This is a tenet: your project's tie-breaker between two good options, kept in your HLD. Another business could reasonably choose the other side. This one rules out a whole region before anyone thinks to ask, including ending trials at the server's midnight, which would cut the Tokyo signup's trial 14 hours short.

  4. Write down how

    docs/intent/trial/trial-design.md
    ## When the trial ends
    The trial ends 720 hours after signup.

    This is a low-level design, or LLD: how one part works. Its smaller ring sits inside the HLD's, clear of what the tenet ruled out.

  5. Write down the rules

    docs/intent/trial/trial-specs.md
    - TRIAL-001: When a new user signs up, the system shall start a trial.
    - TRIAL-002: While a trial is active, the system shall give the user full access.
    - TRIAL-003: When 720 hours have passed since signup, the system shall end the trial.

    These are requirements: one line each, with an ID, in a pattern called EARS. Each one draws a smaller ring, and the program has to sit inside all of them. A few programs still fit.

  6. Test first, then code

    tests/trial.test.ts
    // @spec TRIAL-003
    it("ends the trial 720 hours after signup", () => {
      // 11 p.m. on March 1st, in Tokyo
      const signup = new Date("2026-03-01T14:00:00Z");
      const end = hoursAfter(signup, 720);
      expect(trialEnded(signup, end)).toBe(true);
    });
    ✗fails, before the code exists ✓passes, once the code lands

    The test aims at the one program you meant. The code carries the same @spec TRIAL-003 comment, so the ID leads to everything built from that line.

Change your mind in one place, and the agent carries it down.

That may feel like a lot to write down for one free trial. It pays off when you change your mind. You change the highest level the change touches, and the agent follows the links from there to everything that has to change, while you review each level.

One level changesThe same rings after the change: the low-level design's ring has moved and is checked, the rings for TRIAL-001 and TRIAL-002 have not moved, and TRIAL-003's ring, the test's target, and the code have moved to a new program. Every level is checked.tenetHLDLLDTRIAL-003@spec
  • being re-checked
  • still holds
  • ruled out
  • an @spec link being followed
  1. Say what should change

    You, to your agent

    End trials at midnight in each user's own time zone.

    This changes how the trial ends. The low-level design no longer says what you mean, so the agent re-checks the decisions built on it and adjusts them.

  2. Check what still holds

    First the agent checks the change against the levels above it. New users still get 30 days free, and the tenet still favors the customer, so the HLD and its tenet still hold. They mark out where the new design can go.

  3. Find the new design

    Your request leaves one question open: which midnight? The agent drafts two answers for trial-design.md.

    1. Draft 1The trial ends at midnight on day 30, in the user's time zone.
    2. Draft 2The trial ends at the first midnight, in the user's time zone, after 720 hours.

    Draft 1 would cut a late-night signup's trial by most of a day, so the tenet rules it out. Draft 2 gives everyone at least 30 full days, and you approve it at the pause.

  4. Follow the ID down

    docs/intent/trial/trial-specs.md
    - TRIAL-003: When the user's local time first reaches midnight after 720 hours from signup, the system shall end the trial.
    ✗ends a Tokyo trial at the first local midnight after 720 hours: fails ✓the same test, after the code changes: passes

    The agent searches for TRIAL-003 and finds the test and the code that cite it. TRIAL-001 and TRIAL-002 still hold, so their rings stay put. TRIAL-003 changes, its test changes and fails, then the code changes and the test passes.

Watch Claude Code make the same change

Here's the same request in a small working project, sent to Claude Code with LID installed. Claude Code asks which midnight you mean, changes the design and stops for your review, takes a one-line correction, updates the requirements, and finishes the tests and the code on its own once you hand them off. The notes in parentheses explain each step, and they're cleared without being sent. The agent's working time is sped up, and each pause for review plays at full speed.

cascade: LLD → specs → tests → code

One search finds everything built from a line.

In a LID project, the code cites the requirement it implements, the test cites the requirement it asserts, and each requirement traces to a design. So checking that the code still matches the design is mechanical: a walk through those links, regular enough to run in CI. Whether the design says what you mean stays your call.

One search on an ID returns everything that cites it: the requirement, the tests that assert it, and the code that implements it. That's how a reviewer, or an auditing agent, checks that what landed still traces to what you wrote down, without rereading the codebase.

$ grep -r TRIAL-003 .
docs/intent/trial/trial-specs.md  - TRIAL-003: When the user's local time…
tests/trial.test.ts               // @spec TRIAL-003
src/trial.ts                      // @spec TRIAL-003

Each traced path like that, from a design down to code, is what LID calls an arrow. Every design, requirement, test, and file in a project make one graph of them:

Every arrow across a codebase A directed graph: one high-level design fans out to three low-level designs, six requirements, six tests written first, and five code files. Two highlighted edges show one test covering two code files and one code file covered by two tests. HLD LLD LLD LLD EARS EARS EARS EARS EARS EARS Test Test Test Test Test Test Code Code Code Code Code
Orange edges show a requirement reaching every file that needs it, anywhere in the system. One high-level design, its low-level designs, their requirements, the tests written first, and the code.

Your time goes into the design.

You work in the HLD and, most often, the LLDs. The agent drafts the requirements, the tests, and most of the code, and you review them rather than write them.

Almost every change is an LLD edit, carried down. A new feature, a bug fix, a shift in direction: you edit the design. The links underneath let you, an audit pass, or a fresh agent with no context verify that everything below still traces to what you wrote down.

It looks like a waterfall; it behaves like source code. Nothing here is a one-way phase. Every level stays editable for the life of the project, and an edit at any level recompiles what's below it.

The price

  • Every change walks design, specs, tests, and code, and you review each step before code lands.
  • More design diffs to read, fewer generated lines.
  • Extra agent tokens spent keeping the links current.

That's the trade: minutes of review per change, bought back as a codebase you can hand to any agent or teammate without a tour guide.

I run LID on everything I build — the largest is a public 63k-line Rust project, ~350 specs, with a CI gate that fails the build when a spec goes uncited — and these days it runs on plenty of projects that aren't mine.

Alignment is a pull request.

When more than one person holds the intent, LID's files turn design alignment into something your team already knows how to do.

docs/intent/checkout/checkout-design.mddesign review
## Cart retention
- Carts expire after 30 days.
+ Signed-in carts expire after 90 days;
+ guest carts expire after 30 days.

mayadoes the 90-day window cover guest carts too?

samno, guest carts get 30 days. split it in the diff.

✓ resolved and merged; specs, tests, and code cascade from here

  • The design conversation happens in the PR. Intent is files in the repo, so a teammate proposes a change to an HLD or LLD the same way they'd propose code. The deep conversation, about what the system should be, happens on a one-page design diff before implementation, instead of halfway through a 500-line code review. Once the intent lands, anyone can cascade it to working code.
  • The intent tree is your onboarding doc. Every design doc is written to be read cold, rationale on the page, which is exactly what a new teammate needs. The why stays in the repo after its author moves on.
  • Mixed tools, one source of truth. The tree is plain markdown. One teammate on Claude Code, another on Cursor, a third in a JetBrains IDE: everyone reads and cascades the same intent.
  • A sub-team can adopt alone. Scoped mode draws an explicit boundary around your service or subsystem. Inside it you get the full discipline, and the rest of the org doesn't have to care yet.
  • And at 3am, ship the fix. Hotfixes go out outside the workflow. When the fire's out, walk the change back through the design so the intent catches up. Nothing in LID gates a deploy.

Four commands, inside Claude Code.

Install the two plugins, then describe what you want to build. The skill walks you through design, specs, and tests before it writes any code.

  1. /plugin marketplace add jszmajda/lidRegister the plugin source in Claude Code.
  2. /plugin install linked-intent-dev@jszmajda-lidInstall the core workflow plugin.
  3. /plugin install arrow-maintenance@jszmajda-lidInstall arrow-maintenance, which tracks the links between specs and code in projects too big for one context window.
  4. /linked-intent-devDescribe what you want to build. The workflow scaffolds the docs/ tree and CLAUDE.md as it walks you through the design.

Using a different coding agent? Same workflow. Most tools need only an AGENTS.md at your project root, and some want one small rule file beside it.

Corporate environment blocks third-party plugins? Clone the repo directly: same plugins, same behavior.

Opt-in · experimental

Beyond the core: experimental skills.

The lid-experimental plugin bundles techniques that work in practice but aren't yet part of the core workflow. Right now it ships with bidirectional-differential, which checks whether your specs and your code still agree: two fresh AI sessions run in parallel, one writing naive code from your spec alone and the other reconstructing a spec from your code alone. Matches are evidence the two agree; differences point at drift worth investigating. Every experiment will either be promoted into core or retired.

/plugin install lid-experimental@jszmajda-lid
Read the experimental plugin README
Third-party · community

What people have built on it.

The core stays deliberately small; the day-to-day tooling comes from an independent ecosystem: editor plugins, language servers, CLIs, CI checkers, MCP servers. Discovery is an open convention. Tag a repository linked-intent-development and link back, and it appears on the topic page, with no submission and no gatekeeping. Listed projects are independent and unvetted, so evaluate any extension yourself before use.

Browse projects built on LID

Which path is yours?

Four starting points, depending on where you're coming from. Each one has a short orientation on the Start page.