Lingtai
Docs
GitHub

Documentation

Tutorial

Tutorial — get one ticket to land

Try Lingtai on Chapter Garden, an Astro site: set up, open a ticket, let an agent work.

Before you start#

You need Git, Claude Code or Codex signed in, and Node.js 26.13.0 with npm. See requirements.

Step 1 — Set up this machine#

Install Lingtai, clone the site and register it. Press Enter at each question to take the default.

curl -fsSL https://lingtai.hczhang.com/install.sh | sh
git clone https://github.com/steven-zhc/chapter-garden.git
lingtai init --local chapter-garden

With the sandbox on, init runs claude setup-token once, opening a browser. Skip it and the first ticket fails until lingtai token claude; see requirements.

If lingtai is not found, add ~/.local/bin to PATH.

init picks from what is signed in:

Signed inWritesReviews
Claude Code onlyClaude CodeClaude Code
Codex onlyCodexCodex
BothClaude CodeCodex

A reviewer from another vendor catches more of what the writer missed, but one agent is enough for this book.

Enter at the mode question makes a team project; solo is the other.

A ticket's attempt lands on your branch, lingtai-base, with nobody asked; lingtai pr submit freezes it as lingtai-base-pr-<n>, and only a person's merge commit moves main.

Open the diagram at full size.

Step 2 — Open one ticket#

Pick a story from the bookshelf. Run once; a second run is a second paid ticket.

lingtai ticket new --title "Add the next chapter to The Sun's Ninth Minute" --label feature \
  --body "Find the latest chapter of this story and write one new chapter that continues it. Follow the story's existing language, chapter numbering, and Markdown layout. Keep earlier chapters unchanged. Done when the new chapter appears on the site."

Continue when Lingtai prints created #N.

Step 3 — Start#

Starting pays for at least two runs, writer and reviewer, on the accounts above, more if a check buys a fix round.

lingtai start

Leave it running; Ctrl+C stops after the attempt in flight. In a second terminal run lingtai board to watch it. The board has no login and listens on every network address; board.host: 127.0.0.1 in ~/.lingtai/config.yml keeps it on this machine.

If review raises findings, the card stops in Waiting on you:

The card in Waiting on you after review, numbered 1 to 4.

  1. Waiting on you: nothing more is spent until you answer.
  2. review is red: built, then refused.
  3. The findings. On the card's page: another writer round, a new attempt, or approve.
  4. Landed is empty until review passes or you approve.

When the card is Landed:

The card in Landed, on your branch, numbered 1 to 3.

  1. Landed: merged into your branch.
  2. on your branch: not yet on main.
  3. 1 not in a PR yet: waits for your PR.

Look at what landed:

git -C chapter-garden log -1 --stat lingtai-base
git -C chapter-garden diff main...lingtai-base

The next chapter takes it to main in a PR. To OK each landing first, declare a human: at proposed:; see the recipe.

Next#

Next: Team mode — the way we recommend working.