For agents

Install, then ask the tool itself

If you are an agent, or you brought one: the documentation is in the jar. Nothing on this page needs the repository, a wiki, or a search. Every box is captured output.

Three commands

curl -fsSL https://raw.githubusercontent.com/SHIFT-LEFTER/shiftlefter/main/release/install.sh | bash
./sl/sl orient            # where am I, what would fail, what to read next
./sl/sl agent-doc --list

Java 21+ is the only requirement. The installer prints a breadcrumb stanza to paste into your AGENTS.md, so the next agent in the project finds the same three commands.

sl orient in the two-actor project
# Orientation

Project checks: ok · fingerprint: b89f021d3515184d5edee7c7b4455be7920bd72c53624ea56e8fae8cd6278fc4

## Project context

- project-root: <project>
- config-root: sl
- config-path: sl/shiftlefter.edn
- layout: :sl-directory
- config-source: :discovered

## Counts

- subjects: 1 · instances: 2 · interfaces: 1
- verbs: 30 · intents: 1 · stepdefs: 50 · macros: 0
- diagnostics: 0

## Project checks

Checked: config, glossaries, step files, stepdefs against the glossary, macros, setup declarations.
Not checked: your features — orient does not read them. `sl run --dry-run` (under Validate / run) is the gate for features.

No diagnostics from these checks.

## Validate / run

- `sl run`
- `sl run --dry-run`

## Static knowledge (read these)

- `sl agent-doc intro`
- `sl agent-doc adoption`
- `sl agent-doc overview`
- `sl agent-doc layout`
- `sl agent-doc authoring`
- `sl agent-doc grammar`
- `sl agent-doc vocabulary`
- `sl agent-doc locators`
- `sl agent-doc diagnostics`
- `sl agent-doc resolution`
- `sl agent-doc hooks`
- `sl agent-doc lifecycle`
- `sl agent-doc exit-codes`
- `sl agent-doc sieve`
- `sl agent-doc examples`
- `sl agent-doc builtins`
# exit 0
sl agent-doc --list — the topics the jar carries
Available agent-doc topics:
  intro        What ShiftLefter is, the agent surface, and project-fit pointer.
  adoption     Bring existing Gherkin: what parses today, what `sl run` reports, what shifting a suite means.
  overview     Operating model and command map for fresh agents.
  layout       The project-contents contract: what you bring, what the framework writes.
  authoring    Subjects, instances, Shifted syntax, and step authoring rules.
  grammar      The authored grammar: every marker, slot kinds, reserved forms, key names.
  vocabulary   Glossaries, interfaces, verbs, intents, and partial vocabulary.
  locators     Intent references, raw locator fallback, and brittleness policy.
  diagnostics  Unknown subject, verb, interface, and object diagnostics.
  resolution   sl glossary + sl explain: the resolved vocabulary, provenance, bindings.
  hooks        Scenario lifecycle hooks: hooks.clj registry, @hook= tags, ordering, failure semantics.
  lifecycle    Two-phase run model: plan guarantees, the execution weave, failure semantics by stage, parallelism.
  exit-codes   Exit-code decision procedure: the ladder table, per-exit imperatives, the classification razor.
  sieve        Vocabulary bootstrap and proposal reconciliation workflow.
  examples     Generated worked examples: config, glossaries, intents, features, setup.clj.
  builtins     Generated reference: built-in verbs, frames, step patterns, adapters.
# exit 0
sl agent-doc exit-codes, the first lines — from a machine that has never seen the repository
# Exit Codes

The `sl run` exit code is a claim about what the run proved. This is the
decision procedure; the reasoning lives in `docs/architecture/exit-codes.md`.

## The table

| Code | Status | Meaning |
|---|---|---|
| 0 | `:passed` | Existential pass: ≥1 scenario selected, every selected scenario ran to a tolerated outcome, none failed or errored (pending tolerated only under `:allow-pending?` — the counts still confess). |
| 1 | `:failed` | ≥1 scenario `:failed` — the app answered and the answer missed the expectation (including `:sut`-classed errors: the app answered *with* an error). Or pending under strict mode. Or a stale `@blocked` claim (XPASS: a `@blocked=REF` scenario passed — the test's claim about the app is what is wrong; still a failing corpus). |
| 2 | `:planning-failed` | Invalid before execution: config/parse/discovery/binding errors, an un-runnable invocation, an empty selection. Pre-execution exclusive — nothing ran. |
| 3 | `:crashed` | Runner crash — an uncaught throwable in ShiftLefter's own code, including one that escapes a scenario's execution machinery (never a scenario verdict; the same exit at every `--max-parallel`, and the crash names the scenario). Anywhere; wins over everything. |
| 4 | `:degraded` | ≥1 scenario `:error` — either the harness's own machinery broke (hook throw, capability provisioning, capture; counted `error`) or a step's adapter classified its failure `:observation` — no answer existed (counted `unobserved`). The verdict about the app is unavailable for those scenarios. |

The built-in verbs, their frames and their step patterns are generated from the registered steps (sl agent-doc builtins), so the reference cannot drift from the code. sl glossary and sl explain answer what a word means in this project and who uses it.

Hand it a suite it has never seen

Point it at a Cucumber suite nobody has typed. It parses everything, runs nothing, says what it saw, and names the next command:

in — a Cucumber feature, untouched
Feature: Checkout

  Scenario: Buy a widget
    Given I am logged in as a shopper
    When I add a widget to my cart
    And I check out
    Then I should see my order number
out
run seed: <seed>

Undefined steps:
  - I am logged in as a shopper (features/checkout.feature:4:5)
  - I add a widget to my cart (features/checkout.feature:5:5)
  - I check out (features/checkout.feature:6:5)
  - I should see my order number (features/checkout.feature:7:5)

4 binding issue(s) found. Cannot execute.

This reads as an unshifted suite: every selected step is undefined.
ShiftLefter parsed 1 feature file(s), 1 scenario(s), 4 distinct step text(s) — and executes only typed steps.
To shift this suite, run: sl agent-doc adoption
# exit 2

Unshifted means untyped; shifted means typed. The compiler runs only typed steps, by choice, so an existing step library does not run here; feature files and page objects migrate, and sl agent-doc adoption says how. The tests an agent writes against this surface are a feature file and a glossary — durable project artifacts the next person can read — not a generated script.

Pointers

Next release: a skill and a tone prompt — hand your agent the on-ramp, not a URL. For the record: without a skill, a fresh agent given this framework and a FastAPI service authored an HTTP interface for it — five scenarios dry-run green on the first attempt, and the first live run green (August 2026). The skill turns that into a recipe.