Lingtai
Docs
GitHub

Documentation

CLI

The lingtai command line

Generated from apps/cli/src/commands.ts and the parser; lingtai --help prints the same. Do not edit — run pnpm docs:cli.

Everyday#

To…Run
onboard a repository, on GitHub or on this machinelingtai add
take the queue, in the recipe’s priority orderlingtai run
what is runnable, and what is holding the restlingtai status
ask for one ticket ahead of the queuelingtai now
what a team project’s draft holds, and where its open PR islingtai pr
follow a run’s log, from the beginninglingtai attach
the minor findings passing steps raisedlingtai backlog
what the pipeline did over a window of dayslingtai report
a project’s own tickets, where the recipe keeps themlingtai ticket
serve, stop or inspect the boardlingtai board
the values a project’s agents are givenlingtai env
replay the end step for items that landedlingtai end

lingtai add#

Onboard a repository, on GitHub or on this machine.

Changes state.

lingtai add [<owner>/<repo>] [flags]
  A GitHub repository the App is installed on, or — with no
  argument, or --local <dir> — a git checkout on this machine.
  --github <owner>/<repo>   same as the positional
  --local <dir>             a directory on this machine instead
  --project <github|local>  answers the question above, when neither
                            a slug nor --local is given
  --github-app <create|skip>
      create or skip the App, asked only when none is configured
  --github-auth <gh|app>
      how this machine reaches GitHub, asked only when nothing is set:
      the signed-in gh login, or the App. gh is checked, not trusted
  --main <branch>
      the branch the recipe governs and merges into (branch.main).
      A recipe's own branch.main contradicting it is refused.
      default: the repository's own default branch
      (--base is the old name for this flag, and is refused)
  --mode <team|solo>
      does anyone else work on this repository? team is the default:
      Lingtai works on a personal branch and you send main a PR
  --login <login>
      team mode on a machine that does not know your GitHub login:
      the issues assigned to it are the ones taken
  --personal <branch>
      team mode: the branch Lingtai works on, yours alone. default:
      <login>/<machine>, or lingtai-base for a local project
  --tickets <github|db>
      where tickets come from, instead of being asked. local takes
      db only (#396)
  --kinds <a,b,c>
      which labels are work, first taken first.
      default: bug, feature, tech-debt, documentation
  --agent <claude-code|codex>  which agent writes the change
  --model <name>, or --model ''
      the writer's model; '' for the runtime's own default
  --reviewer <agent|none>      a cold reviewer, and which, or none
  --reviewer-model <name>, or --reviewer-model ''
      the reviewer's model; '' for the runtime's own default
  --install <cmd>              what prepares a worktree, e.g. npm ci
  --build <cmd|none>           a check that must pass before review;
                               repeat it for more than one
  --check-build yes|no         try install and build once first;
                               --defaults skips it unless yes
  --land <branch|hold>
      where an attempt lands, or hold every one for a person at proposed
  --refusal-fixes <n>          fixes after a refusal an attempt may buy
  --conflict-resolutions <n>   merge conflict resolutions an attempt may buy
  --wall <duration>            wall time per agent run, e.g. 1h
  --budget <usd>               a dollar ceiling per agent run
  --defaults, --yes
      use the default of every question whose answer was detected or is
      easy to change later. With no terminal, this
      or an answer to every question is required. Before anything is
      registered the checks and the landing are printed, and a run
      that took the defaults for an empty build or an unattended
      landing stops there unless --defaults named it
lingtai add steven-zhc/lingtai
lingtai add --local ~/code/app --tickets db --defaults

lingtai run#

Take the queue, in the recipe’s priority order.

Changes state.

lingtai run <project> [flags]
  --issue <n>   one nominated issue instead of the queue
  --max <n>     stop after n items
                continues what you approved first, then takes the queue
  --once        the same as --max 1
  --no-merge    stop after the steps and ask before merging
lingtai run lingtai --once
lingtai run lingtai --issue <n> --no-merge

lingtai status#

What is runnable, and what is holding the rest.

Reads only — takes --json (version 1).

lingtai status [<project>] [--all] [--json] [--no-color]
  Takes nothing and claims nothing.
  --all   include items that have left the queue, and why
  --json  one document instead of the sections
lingtai status
lingtai status lingtai --all

lingtai now#

Ask for one ticket ahead of the queue.

Changes state — --json on its verdict (version 1).

lingtai now <project> --issue <n> [--json] [--no-color]
lingtai now lingtai --issue <n>

lingtai pr#

What a team project’s draft holds, and where its open PR is.

Changes state — --json on its verdict (version 1).

lingtai pr [<project>] [--json] [--no-color]
  The draft, which is the next PR, not yet submitted: the tickets landed
  since the last PR was frozen. And the open PR: its number, its state
  and the steps it has been through.
  A solo project has no PR page: it lands on branch.main itself.
lingtai pr submit [<project>] [--json] [--no-color]
  Freezes branch.personal at one commit and starts the PR. Refused
  while another PR is open, saying which, and in a solo project. Refused
  with nothing landed, and records nothing. Tickets the frozen commit
  does not hold stay in the draft for the next PR. A submit Lingtai
  cannot carry out returns the PR to the draft, keeping its number, and
  says why.
  It is served by a running conductor: lingtai start, or lingtai run.
lingtai pr retry [<project>] [--pr <n>] [--json] [--no-color]
  Check a waiting PR again: after resolving a conflict by hand on the
  PR branch, or after re-running a workflow on GitHub. The conductor
  takes the branch as you pushed it if it still holds the frozen commit.
lingtai pr rounds [<project>] [--pr <n>] [--json] [--no-color]
  Give the conflict agent 3 more rounds for the main commit the PR
  waits on. Refused for any wait that is not a conflict.
lingtai pr back [<project>] [--json] [--no-color]
  Take the PR back to Draft: closes the draft pull request on GitHub.
  Its tickets join the draft. Refused while a step runs.
lingtai pr summary [<project>] [--file <path>] [--json] [--no-color]
  Prints the open PR’s summary. --file replaces it with the file’s text
  and waits for the description to be pushed to GitHub. Only the summary
  is yours: the ticket lines and Closes lines are regenerated. Refused
  for a PR that is merged or closed.
lingtai pr
lingtai pr submit lingtai
lingtai pr retry lingtai

lingtai attach#

Follow a run’s log, from the beginning.

Reads only.

lingtai attach <runId>
  What a run is doing, as it does it, however late you attach.
  Reads a file and asks nothing of the daemon or the database, so
  it answers on a stopped system. A landed run has no log: 0034
  keeps exactly the ones still owed an explanation.
lingtai attach <runId>

lingtai backlog#

The minor findings passing steps raised.

Changes state — --json only on the invocations that show it below (version 1).

lingtai backlog [<project>] [--all] [--json] [--no-color]
  The open ones. --all adds the decided ones, and what was decided.
lingtai backlog accept <project> <key> --kind <kind> [--unheld]
  Open one as an issue through the ticket store. One key: there is
  no accept-all. Without --kind, opens the issue of an entry
  already accepted — safe to repeat, never a second.
  --unheld   without lingtai:hold, so the next turn may take it
lingtai backlog decline <project> <key> --reason <why>
  Recorded, so the next attempt does not ask again.
lingtai backlog lingtai
lingtai backlog accept lingtai <findingId> --kind tech-debt

lingtai report#

What the pipeline did over a window of days.

Reads only — takes --json (version 1).

lingtai report [--window today|7d] [--kind <k>] [--project <p>]
                [--json] [--no-color]
lingtai report --from <date> --to <date> [--kind <k>] [--project <p>]
  Tickets landed, closed and open, the refusal fixes and cost of the
  landed ones, spend by kind, and the tickets that went round most.
  --window <w>    today, or 7d: the last seven days (the default)
  --from <date>   first day of a range, as YYYY-MM-DD, local time
  --to <date>     last day of it, included; with --from, never with
                  --window
  --kind <k>      one kind; unclassified tickets are left out
  --project <p>   one project; every project by default
  --json          one document instead of the sections
  Only reads: it changes nothing, and a projection that is behind
  is said on stderr while the figures are still printed.
lingtai report
lingtai report --window today --project lingtai --json

lingtai ticket#

A project’s own tickets, where the recipe keeps them.

Changes state — --json only on the invocations that show it below (version 1).

lingtai ticket list [--all] [--project <p>] [--json] [--no-color]
  Only for a project whose recipe keeps tickets in Lingtai's
  database (source.tickets: db); GitHub-backed ones are read with
  gh issue list. Open ones by default; --all adds closed ones.
lingtai ticket close <n> [--project <p>]
  Closes that row — not lingtai close, which ends a work item on
  the log. The daemon drops it on its next sweep, not at once.
lingtai ticket new [--project <p>]
  Opens $VISUAL or $EDITOR on a form: a title, a labels: line, a
  blocked by: line (ticket numbers, e.g. 3, 5), then the body.
  Quitting with the form unchanged does nothing. No kind
  label and the ticket is created with a warning the queue will
  not take it.
lingtai ticket new --title <t> [--label <a,b>] [--blocked-by <n,n>]
    [--body <t> | -]
  No editor: creates the ticket from the flags. --body - reads the
  body from stdin. --label, --blocked-by and --body need --title.
  --blocked-by names tickets this one waits for; each must exist.
lingtai ticket edit <n> [--project <p>]
  The same form, started from the ticket; writes what changed,
  including its blocked by: line.
--project <p> is required with more than one project registered.
lingtai ticket list --project lingtai
lingtai ticket new --project lingtai
lingtai ticket new --title "Fix the footer link" --label bug

lingtai board#

Serve, stop or inspect the board.

Changes state — --json only on the invocations that show it below (version 1).

lingtai board start [--port <n>] [--dir <path>] [--no-open]
  Serve the board pnpm build wrote beside this CLI, in this
  process: the URL is printed, a browser opened, ctrl-c stops it.
  From the source there is no built board:
  pnpm --filter @lingtai/board dev
  --port <n>    default 17820, or board.port in ~/.lingtai/config.yml
  --dir <path>  a built board somewhere else
  --no-open     no browser — what the service’s job passes
lingtai board stop
  Stop the board this machine is running. Not shutdown, which
  waits for an attempt. Where a supervisor keeps the board, this is
  its stop, and it stays stopped until lingtai service start.
lingtai board restart
  Stop, then start. Refuses nothing first: a UI at the wrong
  commit costs a reload.
lingtai board status [--port <n>] [--json] [--no-color]
  Who serves it, whether a board answers, whether a supervisor
  keeps one — three facts, none concluded from another.
lingtai board start
lingtai board status

lingtai env#

The values a project’s agents are given.

Changes state — --json only on the invocations that show it below (version 1).

lingtai env set <project> KEY=VALUE
  Write one value into ~/.lingtai/env/<project>.env.
lingtai env set <project> KEY
  Read the value from stdin, unechoed.
lingtai env list <project> [--json] [--no-color]
  Names and which layer answered — never values.
lingtai env unset <project> KEY
  Remove one.
lingtai env set lingtai API_TOKEN
lingtai env list lingtai

lingtai end#

Replay the end step for items that landed.

Changes state.

lingtai end replay [<project>] [--issue <n>]
  Resolve the end step for items that landed, and deliver what it
  resolves to. --issue limits it to one.
lingtai end replay lingtai --issue <n>

Waiting on you#

To…Run
merge what a held run producedlingtai approve
answer a question a ticket was held onlingtai answer
hold a ticket on a decision before any runlingtai ask
one more implementation round on saved worklingtai fix-refusal
run the step that stopped again, on the saved worklingtai redo-step
end a wait with a new runlingtai start-new-attempt
end a ticket nobody is going to dolingtai close

Except close, which also carries out the recipe's end actions on the ticket at once, these commands only append to the log. When a wait ends, the conductor's next action on that ticket (the landing, the next hold, the release or the claim) edits the ticket's "Lingtai is waiting on you" comment into its outcome and posts no second comment; the CLI and the board never edit it.

lingtai approve#

Merge what a held run produced.

Changes state — --json on its verdict (version 1).

lingtai approve <project> --issue <n> [--note <text>] [--json]
  Merge what a held run produced, if its head has not moved since
  the approval was asked for.
  --note <text>   recorded with the approval, and required when a
                  step still refuses the head: approving then waives
                  each refusing step, with this as why
lingtai approve lingtai --issue <n>

lingtai answer#

Answer a question a ticket was held on.

Changes state — --json on its verdict (version 1).

lingtai answer <project> --issue <n> "<choice>" [--json]
  Answer it on the record: back in the queue, and every attempt at
  the ticket is told the answer — no editing the issue body.
lingtai answer <project> --issue <n> [--pick <q>=<a> ...] [--json]
  Answer what a step or triage asked: the answers are written into
  the ticket body, then the step that asked continues on its saved
  work. A question with no --pick takes its recommended answer.
lingtai answer lingtai --issue <n> "use the second option"
lingtai answer lingtai --issue <n> --pick 1=b

lingtai ask#

Hold a ticket on a decision before any run.

Changes state — --json on its verdict (version 1).

lingtai ask <project> --issue <n> "<question>" [--json]
  Nothing is spent, the queue passes over the ticket, and lingtai
  status prints the question.
lingtai ask lingtai --issue <n> "which groups?"

lingtai fix-refusal#

One more implementation round on saved work.

Changes state — --json on its verdict (version 1).

lingtai fix-refusal <project> --issue <n> [--if-head <sha>] [--json]
  Run one more implementation round on saved work, then repeat the
  checks without waiving a refusal.
lingtai fix-refusal lingtai --issue <n> --if-head <sha>

lingtai redo-step#

Run the step that stopped again, on the saved work.

Changes state — --json on its verdict (version 1).

lingtai redo-step <project> --issue <n> [--if-head <sha>] [--json]
  The same attempt runs the step a crash or a red stopped again, on its
  saved head: no fixer, nothing cut from base, and no round or restart
  spent. --if-head refuses if the saved head is a different commit.
lingtai redo-step lingtai --issue <n> --if-head <sha>

lingtai start-new-attempt#

End a wait with a new run.

Changes state — --json on its verdict (version 1).

lingtai start-new-attempt <project> --issue <n> [--note <why>]
                [--into-body <text>] [--json]
  Queues a new attempt for a blocked item — held for approval or not —
  and that attempt cuts a fresh branch from a base that has since
  moved. The actor is still recorded in by.
lingtai start-new-attempt lingtai --issue <n> --note "base moved"

lingtai close#

End a ticket nobody is going to do.

Changes state — --json on its verdict (version 1).

lingtai close <project> --issue <n> "<reason>" [--json]
  The queue stops offering it because the log says it is over.
  Nothing lifts a close: if the work is wanted again, open a new
  ticket.
lingtai close lingtai --issue <n> "superseded"

Daemon#

To…Run
hold the projections current and take worklingtai start
the old name of start, still answeredlingtai daemon
keep the daemon and the board runninglingtai service
drain, wait for the attempt, and start one daemonlingtai restart
stop the daemon after the ticket in flightlingtai shutdown
stop one project, or every project, taking new ticketslingtai pause
take tickets again, for one project or every projectlingtai resume
raise today's spending ceilinglingtai ceiling
lift an account's limitlingtai account

lingtai start#

Hold the projections current and take work.

Changes state.

lingtai start [--no-conduct] [--no-merge] [--verbose] [--no-color]
  Reads no standing signal: a pause or a shutdown aimed at an
  earlier daemon was not aimed at this one. If another daemon holds
  the lock this starts nothing and says so. Unchecked — lingtai
  restart is the checked start.
  --no-conduct   projections only, take nothing
  --no-merge     as for lingtai run
  --verbose      every line the conductor writes, as well
lingtai start
lingtai start --no-conduct

lingtai daemon#

The old name of start, still answered.

Changes state.

lingtai daemon [--no-conduct] [--no-merge] [--no-color]
  Still answers: an installed LaunchAgent or systemd unit has this
  name written into it (#159). It is lingtai start.
lingtai daemon --no-conduct

lingtai service#

Keep the daemon and the board running.

Changes state — --json only on the invocations that show it below (version 1).

lingtai service install|start|shutdown [why]|restart [why]|uninstall
lingtai service status [--json]
  Two jobs, the daemon and the board: a LaunchAgent each on macOS,
  a systemd user unit each on Linux. No service manager? run
  lingtai daemon and lingtai board start in the foreground.
  shutdown drains the conductor through the log, waits for the
  attempt, unloads it, then stops the board. restart is that and
  start, unchecked — lingtai restart is the checked one.
  status reports each job on its own: one word for both would hide
  a board that is up beside a conductor launchd keeps respawning.
lingtai service install
lingtai service status

lingtai restart#

Drain, wait for the attempt, and start one daemon.

Changes state.

lingtai restart [why] [flags] [--no-color]
  Here, or through lingtai service when a supervisor keeps it.
  Refuses a commit the tracking remote does not have, a dirty
  worktree, and what lingtai doctor failed on. Ctrl+C during the
  wait leaves the drain standing; the next restart picks it up.
  --dirty            start from a dirty worktree, having read why not
  --despite-doctor   start in spite of failed doctor checks
  --force, --timeout as for lingtai shutdown
  --no-conduct, --no-merge
      as for lingtai start; refused under a supervisor
lingtai restart "picking up #88"

lingtai shutdown#

Stop the daemon after the ticket in flight.

Changes state.

lingtai shutdown [why] [--force] [--timeout <duration>] [--no-color]
  The attempt finishes first, so the steps and the merge lane run
  too. It does not outlive the daemon it was sent to.
  --force                do not wait. The agent is left running and
                         the next conductor kills it
  --timeout <duration>   give up waiting after this and exit anyway.
                         Not with --force
lingtai shutdown "deploying"
lingtai shutdown --timeout 10m

lingtai pause#

Stop one project, or every project, taking new tickets.

Changes state.

lingtai pause [project] [--no-color]
  Locks the project, or every registered project when none is named.
  A person's pause carries no reason and holds until lingtai resume.
  An attempt already in flight finishes; nothing new starts. The pause
  is in the log and outlasts a daemon restart: it stands until
  lingtai resume lifts it. Not so for lingtai run, which takes no ticket
  while a pause stands, daemon or none: one already working
  finishes the ticket in hand and takes no other.
lingtai pause lingtai
lingtai pause

lingtai resume#

Take tickets again, for one project or every project.

Changes state.

lingtai resume [project] [--no-color]
  Unlocks the project. With none named it unlocks every paused
  registered project and also lifts a conductor-wide pause or a
  shutdown request that stands.
lingtai resume lingtai
lingtai resume

lingtai ceiling#

Raise today's spending ceiling.

Changes state.

lingtai ceiling raise <usd>
  Raises today's ceiling to <usd> dollars, a figure above both what has been
  spent and today's ceiling, at any time of the day. Lasts until midnight; the
  configuration (limits.day_usd) is not changed. Refused while no ceiling
  is configured, or while today's spend cannot be read.
lingtai ceiling raise 40

lingtai account#

Lift an account's limit.

Changes state.

lingtai account lift <account> [--no-color]
  Says an account — a runtime, or github — is no longer at its limit. Projects
  that use it take work again at the next look. Appends nothing when no limit
  stands. Accounts: claude-code, codex, copilot, antigravity, github
lingtai account lift claude-code
lingtai account lift github

Install and upkeep#

To…Run
a bare machine to the board, on the wizardlingtai init
the version, and which artifact is runninglingtai version
fetch and switch to the newest releaselingtai upgrade
go back to an older installed versionlingtai rollback
remove everything under ~/.lingtai and the shimlingtai uninstall
check everything that can be checkedlingtai doctor
remove orphan worktrees and run logs no longer owedlingtai clean
how far projections lag, and rebuild onelingtai projection
the events this version writes, by steplingtai events
set the token a sandboxed Claude Code or Copilot run holdslingtai token

lingtai init#

A bare machine to the board, on the wizard.

Changes state.

lingtai init [flags]
  Git and the agents looked at, a store connected to and its tables
  made, ~/.lingtai/config.yml written. Run it again to continue, or
  to see what is set.
  --store <sqlite|postgres>
      the store, instead of being asked. postgres takes
      --database-url with it
  --database-url <url>   instead of being asked
  --port <n>             the board's port, for this run.
                         default: 17820, or board.port
  --project <github|local>  the first project, instead of being asked
  --local <dir>             a directory on this machine, as the project
  --github-app <create|skip>
      create or skip the App, asked only when none is configured
  --github-auth <gh|app>
      how this machine reaches GitHub, asked only when nothing is set:
      the signed-in gh login, or the App. gh is checked, not trusted
  --main <branch>           the branch a local project governs
  --mode <team|solo>        does anyone else work here? team is the default
  --personal <branch>       team mode: the branch Lingtai works on
  --tickets <github|db>     where tickets come from
  --kinds <a,b,c>          which labels are work, first taken first
  --agent <claude-code|codex>  which agent writes the change
  --model <name>, or --model ''
      the writer's model; '' for the runtime's own default
  --reviewer <agent|none>      a cold reviewer, and which, or none
  --reviewer-model <name>, or --reviewer-model ''
      the reviewer's model; '' for the runtime's own default
  --install <cmd>              what prepares a worktree, e.g. npm ci
  --build <cmd|none>           a check that must pass before review;
                               repeat it for more than one
  --check-build yes|no         try install and build once first;
                               --defaults skips it unless yes
  --land <branch|hold>
      where an attempt lands, or hold every one for a person at proposed
  --refusal-fixes <n>          fixes after a refusal an attempt may buy
  --conflict-resolutions <n>   merge conflict resolutions an attempt may buy
  --wall <duration>            wall time per agent run, e.g. 1h
  --budget <usd>               a dollar ceiling per agent run
  --defaults, --yes
      use the default of every question whose answer was detected or is
      easy to change later. With no terminal,
      this or an answer to every question is required. The checks and
      the landing are printed before a project is registered, and a
      run that took the defaults for an empty build or an unattended
      landing stops there unless --defaults named it
lingtai init
lingtai init --store sqlite --defaults

lingtai version#

The version, and which artifact is running.

Reads only — takes --json (version 1).

lingtai version [--json] [--no-color]
  Platform, binary or script, and the Node running it.
lingtai version
lingtai version --json

lingtai upgrade#

Fetch and switch to the newest release.

Changes state.

lingtai upgrade [--despite-doctor]
  Fetch the newest release from GitHub Releases, check its
  checksums, unpack it beside this one in ~/.lingtai/versions,
  drain what conducts, then move ~/.local/bin/lingtai. Starts
  nothing. With lingtai doctor, the one request to the network
  this tool makes on its own account.
  --despite-doctor   upgrade in spite of failed doctor checks
lingtai upgrade

lingtai rollback#

Go back to an older installed version.

Changes state.

lingtai rollback [<version>]
  Run ~/.local/bin/lingtai from an older version still in
  ~/.lingtai/versions — the newest one below the current, unless
  named.
lingtai rollback
lingtai rollback 0.9.0

lingtai uninstall#

Remove everything under ~/.lingtai and the shim.

Changes state.

lingtai uninstall [--yes] [--nothing-conducts]
  Ask once, remove everything under ~/.lingtai and the shim, then
  name what it could not: the GitHub App, and the log where the
  log is a server.
  --yes               do not ask
  --nothing-conducts  remove a conductor's state though the lock
                      under ~/.lingtai/locks could not be read
lingtai uninstall

lingtai doctor#

Check everything that can be checked.

Reads only — takes --json (version 1).

lingtai doctor [--verbose] [--json] [--no-color] [--fix]
  Lists only what needs attention; --verbose lists every check, explained.
  --fix is the one way doctor writes: it rewrites a recipe refused for an old
  spelling (repo.base, worktree.base, take: both) as a new recipe change, and
  nothing else. It cannot be combined with --json.
  Exits non-zero on any failure. Under --json a failing report is still the
  report document, on exit 1: test .error first (the report could not be
  produced), then .failed.
lingtai doctor
lingtai doctor --verbose
lingtai doctor --json

lingtai clean#

Remove orphan worktrees and run logs no longer owed.

Changes state.

lingtai clean [<project>] [--yes] [--no-color]
  Lists each worktree under ~/.lingtai/worktrees that no running attempt
  uses, untouched for an hour and with no uncommitted changes, and each run
  log whose ticket landed, closed or was satisfied, with its size and the
  reason. Takes no lock and appends nothing. Whatever cannot be read is
  listed as could not be checked and kept, and the exit is 1.
  --yes               remove what is listed
lingtai clean
lingtai clean lingtai --yes

lingtai projection#

How far projections lag, and rebuild one.

Changes state — --json only on the invocations that show it below (version 1).

lingtai projection lag [--json] [--no-color]
  How far each projection is behind the log.
lingtai projection rebuild <name>
  Drop the table, reset the checkpoint, replay.
Projections: task_view, finding_backlog, spend, ticket_report
lingtai projection lag
lingtai projection rebuild spend

lingtai events#

The events this version writes, by step.

Reads only — takes --json (version 1).

lingtai events [<name>] [--json] [--no-color]
  Reads the list bundled with this version; needs no project and no
  network.
  --json  the manifest instead of the sections
lingtai events
lingtai events TicketReleased --json

lingtai token#

Set the token a sandboxed Claude Code or Copilot run holds.

Changes state.

lingtai token claude
  Runs `claude setup-token` for you and writes what it prints to
  claude.oauth_token in ~/.lingtai/config.yml (0600), keeping every other
  key. If that cannot be read from its output, asks you to paste the
  token at a hidden prompt. A token already set is asked about: replace
  or keep. LINGTAI_CLAUDE_OAUTH_TOKEN, when exported, wins over the file.
  Needs a terminal. The token is never printed, logged or put on a
  command line.
lingtai token copilot
  Asks, at a hidden prompt, for a fine-grained personal access token
  (github_pat_…) with the Copilot Requests permission and writes it to
  copilot.github_token in ~/.lingtai/config.yml (0600), keeping every other
  key. A classic ghp_ token, which Copilot ignores, is refused by name.
  LINGTAI_COPILOT_GITHUB_TOKEN, when exported, wins over the file. Needs a
  terminal. The token is never printed, logged or put on a command line.
lingtai token claude
lingtai token copilot

Rendered from doc/cli.md at build time. The file is the document; this page is a projection of it, and never a copy — which is why the fix for anything wrong on it is a pull request against that file.