Lingtai
Docs
GitHub

For Claude Code and Codex

Agents do the work. Lingtai keeps the books.

The agent writes the change. Your checks and an AI review decide whether it lands — and every ticket ends in a receipt you can check.

curl -fsSL https://lingtai.hczhang.com/install.sh | sh

macOS and Linux · runs on your machine · no signup

The board — queued, running, waiting on you, landed

The board — queued, running, waiting on you, landed

The board — queued, running, waiting on you, landed

The board — queued, running, waiting on you, landed

Film · 2:11 · narrated

One ticket, filed to landed.

Replay ILLUSTRATION

You slept. It shipped.

Three things went wrong overnight. Lingtai handled every one. Scroll down; the receipt beside it fills in one step at a time.

22:40 · YOU

You file a ticket and go to bed. The agent starts in a sandbox.

$ lingtai start   taking #1 · sandboxed · 3 files changed
22:58 · LINGTAI

Tests broke → auto-fixed.

✗ expected "6 min read"   rule · fix round 1 ✓
23:20 · LINGTAI

AI review found a bug → auto-fixed.

✗ rounds 5.4 minutes up to 6   one look · fix round 2 ✓
03:12 · LINGTAI

Someone else changed main → auto-combined.

✗ conflict in ChapterMeta.tsx   one look · combined ✓ tests ✓ review ✓
07:31 · YOU

You wake up to a receipt. It landed at 03:20, on its own.

✓ merged agent/1 → main 03:20   handled for you · 3 problems · 0 needed you

Security · from v0.14.0

Every run is sandboxed. Your keys stay yours.

Claude Code, Codex and your checks run in one sandbox, so you can leave it overnight.

  • No keys
  • Allowlisted network
  • Refusals on the ticket

On for new projects · one sandbox block in the recipe.

What an agent can touch →

Telemetry hosts such as sentry.io are refused but not listed.

The first question

Why not just give the agent the issue?

You can — then you drive it, prompt after prompt, and check its work yourself. With Lingtai you file the ticket; it runs the rest and hands you a receipt.

THE AGENT ALONEClaude CodeCodex

You file a ticket…

● Open#1 · Add a reading-time badge

…then type prompt after prompt

claude · chapter-garden

1 Read issue #1 with gh, make a branch, and implement it.

Done — I added a ReadingTime component.

2 Run the tests and fix anything that fails.

One failed; fixed. 42 passed.

3 Review your change for bugs and edge cases.

Found one: it rounds down. Fixed.

4 main moved. Rebase and fix the conflicts.

Rebased; one conflict in ChapterMeta, resolved.

5 Run the tests again, then open a PR.

Tests pass. PR opened.

You wait for each answer, decide what to ask next, and type it — five times for one small change.

WITH LINGTAIClaude CodeCodex+ your rules

You file one ticket

● Open#1 · Add a reading-time badge

Lingtai builds it, tests it, has an AI review it, and fixes problems on its own. See it above ↑

You: nothing, until it needs a decision.

LINGTAI / THE DIFFERENCE
The agent alone, and with Lingtai
Claude Code · Codex aloneWith Lingtai
Who says it's doneThe agent, running its own checksYour checks, run apart from the agent, a second AI review — your OK only if you turn it on
The workflowSkills and prompts you write, and keep workingBuilt in: steps you set once in a recipe. Your skills still work — for the task, not the process.
When something breaksIt stops and asks you what to do — even for things it could fix itself.A router picks the fix: a rule for most, one quick AI look for some, you only when it must. See how ↓
RulesUsually in the repo it can editOutside anything it can edit
SandboxCan read your keys and loginsSandboxed: keys unreadable, network allowlisted
After a crashDepends on your sessionSaved; it carries on after a restart
CostYour provider's dashboardPer ticket, with a daily limit
RecordThe chat transcriptEvery step recorded, and a receipt

Here is what happens when something breaks.

A rule handles most of it, free · one quick AI look handles some, for cents · you see only what needs a decision. Every path has a limit.

One person, or a team

You decide when main moves.

lingtai add asks Does anyone else work on this repository? Press Enter for team — the default, even when it is only you.

Solo

  1. ticket
  2. main

lingtai-base for a local project

Each ticket lands by itself once its checks pass, and the ticket closes.

For: just you, and you trust the checks.

Team default

  1. ticket
  2. your branch
  3. draft
  4. PR
  5. main

Tickets land on your own branch with nobody watching. You submit what has gathered there as one PR, and main moves only when you merge it.

For: reviewing one PR, as you would a colleague’s, and a main whose history is one merge commit per PR.

Team, in use

  • Take. On GitHub a ticket is taken once it is assigned to you; in a local project every ticket is yours.
  • Submit. Read your branch, then lingtai pr submit; Lingtai writes the PR’s title and summary.
  • Change. On the PR’s page choose New pr-fix ticket; the fix is another commit on the same PR.
  • Red. A conflict with main, or a build that fails after merging it, goes to an agent first and to you only when the agent cannot mend it. A red CI run comes straight to you: fix it, then run lingtai pr retry.
  • Merge. With a merge commit, never a squash: Lingtai cannot see a squashed PR as merged, so it would stay In review.
How team mode works →

Common questions

Can I approve before it merges?

Yes. Turn on approval in the recipe and it waits for one click before it lands. It is off by default: your tests and the AI review decide.

What does it do in each case?
WhenWho handles itWhat happensLimit, and past it
The API went down at 3amRuleIt saved the half-done work, waited a minute, and redid the step from there. You never heard about it.At most 3 tries, after 1, 5, then 15 minutes. Then it asks you.
Still down after the third wait? It stops, says which limit ran out and how many times it tried, and waits for you. The saved work is still there.
A test is flakyRuleYour checks went red. It ran them again on the same code, at once: green. It carried on, and noted the flaky test for you to look at later.One rerun only. Red twice means it is real, so the agent fixes it.
Red twice: the agent fixes the code on top of its own work, up to 6 times. Still red: one closer look, then it asks you. If the approach looks wrong, it starts over from main instead, at most twice.
AI review found a bugOne lookOne quick look named the lines to change. The agent fixed them on top of its own work, and your checks and the review ran again.Up to 6 fixes. Then a fresh start, at most twice, or it asks you.
Six fixes and still refused? One closer look. If the approach looks wrong, it starts over from main with a note on why, at most twice. Otherwise it stops and asks you.
The ticket is unclearYouIt stopped before guessing and asked you. Your answer went into the ticket, and it carried on from where it paused.Up to 5 stops per ticket. Then it waits for you to decide.
After 5 stops on one ticket it stops asking. You edit the ticket, close it, or give it another go. The agent never answers for you.
The ticket is too bigOne lookIt ran out of time. One quick look split it into 3 tickets that run in order. When all three landed, your ticket checked its own list, line by line, and closed.Split once per ticket, into at most 8. A part that is still too big comes to you.
A part ran out of time too. It is not split again: it stops and asks you how to cut it. The parts already landed stay landed.
Someone else changed mainRuleSomeone merged into main. It merged the new main into its work and ran your checks again, then landed.Up to 10 merges per try. Then it asks you.
Main moved 10 times under one ticket. That is rare; it stops and asks you whether to try again.
My Claude limit ran outRuleNothing could start, so nothing was spent. It waited for your limit to reset, then carried on from the same place.Nothing to count: waiting is free. A limit with no reset, like a monthly cap, waits for you.

If the quick look itself fails, it asks once more, then hands it to you and says so.

Will it break main?

Nothing lands until your checks and the AI review pass. If main is already broken, it stops and tells you, instead of spending money on a bug that isn't its own.

Will it run up a bill?

Every paid call is recorded. Set a daily limit and it pauses when the limit is reached, until midnight or until you resume it.

What if my laptop restarts at 3am?

Nothing is lost. Its commits are saved on a branch, and the next run carries on from there.

Can it weaken its own checks?

No. Your rules live outside the repository the agent edits, so it can't change them.

The work, in the open

Lingtai builds Lingtai. Open its books.

Every ticket it finished on its own repository this month, 2026-11-01 → 2026-11-19. Nothing left out.

● REAL DATA
802
issues closed by its own merges
since 2026-09-08 · as of 2026-11-19
476 tickets finishedeach ticket counted once, however many tries it took
471 landed · 99%5 closed without landing — by a person0 still open at the end of the window
76%
landed with 0 or 1 fix round
median 0 · 5% needed 5 or more
$4.31
median cost per landed ticket
mean $6.73 · 90% under $12.07 · includes estimates · 9 runs could not be priced
13min
median machine time
mean 19 min · while agents and checks were running, not while waiting for you
14min
median from start to landed
mean 49 min · 89% within an hour · 9% waited for a person
What the $4.31 pays forthe AI model calls made for the ticket — not your CI, your machine or your time
Work 60% — writing the code, and the AI reviewFixes 34% — after failed checks or a refused reviewJudging 3%Triage 3% — telling you why it stopped
LINGTAI / ENGINEERING RECEIPT
THE MEDIAN TICKET1 of 471 landed
✓ Landed
Fix rounds0
Machine time13 min
Asked you0 times
MEDIAN COST$4.31
TYPICAL

● REAL medians, from Lingtai's log

LINGTAI / ENGINEERING RECEIPT
ISSUE #1042 · TECH-DEBT · 25TH PERCENTILE BY COSTtech-debt(actions): a command, the `run:` action and a subscriber's delivery run as Effects, and `runCommand` and `Subscriber.deliver` are faces over them
✓ Landed
Fix rounds0
Machine time8 min
Asked you0 times
COST$2.81
LANDED

● REAL from Lingtai's log · Open #1042 →

LINGTAI / ENGINEERING RECEIPT
ISSUE #953 · DOCUMENTATION · 50TH PERCENTILE BY COSTdocs(design): the-bar.md describes one bar with Report and a footer without links
✓ Landed
Fix rounds1
Machine time8 min
Asked you0 times
COST$4.31
LANDED

● REAL from Lingtai's log · Open #953 →

LINGTAI / ENGINEERING RECEIPT
ISSUE #1002 · BUG · 90TH PERCENTILE BY COSTfix(cli): service and upgrade withdraw no drain; each adopts this person's own and leaves it to the next start
✓ Landed
Fix rounds3
Machine time41 min
Asked you0 times
COST$12.07
LANDED

● REAL from Lingtai's log · Open #1002 →

Reproduce it: lingtai report --from 2026-11-01 --to 2026-11-19 --project lingtai. The one total above is counted from GitHub.

Start

Three steps to your first receipt.

The tutorial →

  1. 01

    Install and init

    $ lingtai init
  2. 02

    Write one ticket

    A GitHub issue with a kind label, or lingtai ticket new on a local project.

  3. 03

    Start

    $ lingtai start

Runs on one machine · not yet 1.0 — what it needs, and what it doesn't do yet →