Lingtai
Docs
GitHub

Documentation

Requirements

What Lingtai needs — the minimum is short; everything else is a choice you make

Read this before the tutorial, or when lingtai doctor complains about something you did not know you needed. Coming from Symphony and wondering about Linear? See coming from Symphony.

Not on this page: what your project needs (your recipe's run: commands and whatever they call are the project's requirement, not Lingtai's; packages/actions/src/command.ts:403, packages/conductor/src/conduct.ts:490), and what building a release needs (bun, next build and node --build-sea; installing and running one needs none of them).

The minimum#

A local repository and one agent, which is what the tutorial's Part 1 uses (--local).

  • macOS or Linux, with git and ps.
  • One of Claude Code or Codex, installed and signed in (GitHub Copilot CLI and Antigravity are optional extras for implement alone; see where each agent may be named), and every role in the recipe set to it: discuss.agent defaults to claude-code, so a Codex-only setup must say so there or it ends up needing claude.
  • The installer's own needs: curl, sh, tar, and shasum or sha256sum.
  • No GitHub, no database server, no account with Lingtai. The log is a SQLite file at ~/.lingtai/lingtai.db.

Add only if you…#

  • …keep tickets in GitHub issues. One person: gh signed in with the repo and workflow scopes (--github-auth gh, the default). A team: a GitHub App you create and install (github.md). Lingtai's actions then appear as that account.
  • …use Codex for discussion or triage without tools. A separately billed OpenAI API key (codex_text); the Codex login does not supply it.
  • …want it to keep running after you close the terminal. lingtai service, using launchctl or systemctl --user, which the OS already has. It runs from a source checkout only; the installed binary does not support it yet.
  • …keep the log in Postgres. A database you run, reached by the direct host, never a pooler.
  • …want notifications. Desktop (terminal-notifier, or osascript, which macOS ships) or a Telegram bot.
  • …run from a source checkout. Node.js 26 or later, pnpm, and bun to build the hook.
  • …upgrade an installed copy. lsof, and GitHub release downloads reachable.

Full reference#

Every external program, service and account, with the code that touches it. Where a table says "any recent", the code does not check a version.

Programs on your machine#

WhatNeeded whenMinimum versionWhylingtai doctor checkWhere
gitAlwaysAny recent; 2.38 for conflict triageWorktrees, branches, the clone Lingtai keeps of each repository, the merge laneNone. lingtai init runs git --version and stops if it failspackages/repo/src/git.ts:44, apps/cli/src/init.ts:1007; the 2.38 check is packages/repo/src/mirror.ts:158
ghThe project is a GitHub one and init chose --github-auth gh, its default. A --local project does not use itAny recentLingtai acts on GitHub as your logingithub: gh loginapps/cli/src/github-auth.ts:3, apps/cli/src/doctor.ts:957
claudeAny role in the recipe runs claude-code. discuss.agent defaults to it, so leaving discuss: out needs it even when runtime.agent is codexAny recentThe agent that does the workruntime: signed in and runtime: <project> signed in report whether it is signed in; neither checks the binary on its ownpackages/agent/src/claude-code.ts:402, :431
codexAny role in the recipe runs codex: runtime.agent, discuss.agent, triage, a step's agent: or a judge:Any recentThe agent that does the workruntime: signed in and runtime: <project> signed in report whether it is signed in; neither checks the binary on its ownpackages/agent/src/codex.ts:1107, :1181
copilotOnly when a step's agent: at implement names copilot1.0.112 (measured 2026-11-19)The agent that does that step's worksteps: <project> <agent> signed inpackages/agent/src/acp-session.ts, apps/cli/src/doctor.ts:3494
agyOnly when a step's agent: at implement names antigravity1.5.9 (measured 2026-11-19)The agent that does that step's worksteps: <project> <agent> signed inpackages/agent/src/acp-session.ts, apps/cli/src/doctor.ts:3494
Node.jsA source checkout only. An installed copy carries the Node it was built with26 or laterRuns the CLI, the conductor and the board from sourcenode: at or above the floorpackage.json:8, .node-version, apps/cli/src/doctor.ts:2489
bunA source checkout only, to build the hook binary a run refuses to start without (pnpm --filter @lingtai/hook build)Any recentCompiles packages/hook/bin/lingtai-hook, which is not committedNoneapps/cli/src/run.ts:354, packages/hook/package.json:10
pnpmA source checkout onlyThe version packageManager pins, 11.9.0; nothing checks itInstalls and runs the workspaceNonepackage.json:7
psAlwaysAny recentFinds an agent left running by an earlier run, and checks whether a recorded process is still the one Lingtai startedNonepackages/agent/src/codex.ts:72, :118, packages/daemon/src/reconcile.ts:565
launchctl (macOS) or systemctl --user (Linux)You run lingtai service, which runs from a source checkout you own; the installed binary does not support it yet. Not needed for a daemon started in a terminalAny recentKeeps the conductor and the board running and restarts themdaemon: liveness reports whether the daemon is up, not whether the supervisor existsapps/cli/src/service.ts:430, :457, :467, :717
tarInstalling, and lingtai upgrade on an installed copyAny recentUnpacks the releaseNoneapps/site/public/install.sh:66, apps/cli/src/install.ts:404
shasum or sha256sumInstallingAny recentChecks the download; the installer refuses if neither existsNoneapps/site/public/install.sh:67-73
lsofAn installed copy, on lingtai upgradeAny recentFinds processes still using the old version's directoryNoneapps/cli/src/install.ts:802
curl and shInstalling, once; curl is also checked by the installer before anything elseAny recentThe one-line installer in the tutorialNonetutorial.md
open (macOS) or xdg-open (Linux)OptionalAny recentOpens the board or the GitHub App page in your browser; without it Lingtai prints the addressNoneapps/cli/src/board-world.ts:56, apps/cli/src/init.ts:1054
terminal-notifier or osascript (macOS)Optional, for desktop notificationsAny recentShows a notification when a question is waiting; osascript ships with macOS and is the fallbackNoneapps/cli/src/notify.ts:68, :124
$EDITOROptional, for lingtai ticketAnyOpens the ticket formNoneapps/cli/src/ticket.ts:87
srt sandbox, on a host that can run itA project's recipe has sandbox.enabled (safety)Pinned by LingtaiWraps every agent runsandbox: host and sandbox: <project>; with a live canary of four commands through the run's own wrapper (a planted file under a denied path and a host off the allowlist must fail; two controls must succeed), run only where the host can sandbox and some project asks for itapps/cli/src/doctor.ts, apps/cli/src/sandbox-canary.ts

Services Lingtai reaches#

WhatNeeded whenWhylingtai doctor checkWhere
GitHub API, for your repositoryThe project is a GitHub one, authenticated as your gh login or as the App. A --local project does not use itIssues, labels and branchesgithub: gh login under gh auth. Under an App, github: installation and labels is listed by doctor as deferred and checks nothing; lingtai add checks the App's permissions before it records a repositoryapps/cli/src/doctor.ts:957, :1063
GitHub Releases API and release downloadslingtai upgrade, and the version question doctor asksWhich release is newest, and the artifacts of the one you ask for. An allowlist naming only the API is not enoughrelease: newest, for an installed copy onlyapps/cli/src/install.ts:59, :326, :735
Your agent's providerAlways, through claude or codexThe work itselfNoneThe README row on what is sent
api.openai.com, directlyThe runtime is codex and discussion or triage is model-only (no tools: full)The Responses call that codex the CLI is not used for; billed separately from the Codex loginNonepackages/agent/src/codex-text.ts:65, packages/agent/src/runtimes.ts:116, config.example.yml
Postgresdatabase.url is set. The default is a SQLite file at ~/.lingtai/lingtai.db, which needs nothingThe log, if you chose to keep it therepostgres: pooled connection, postgres: direct connection is session mode, and the schema: checks. Use the direct host, never a poolerapps/cli/src/doctor.ts:317, :322, config.example.yml
TelegramA telegram subscriber is in your recipePosts the notification you asked forNoneThe README row on what is sent

The README's Nothing is sent anywhere row is the complete list of what leaves the machine, with the reasons. This page does not repeat it.

Accounts you must sign in to#

WhatNeeded whenWhylingtai doctor check
Claude CodeAny role runs claude-code, including the discuss defaultThe agent runs as you. Lingtai probes claude auth status before it starts oneruntime: signed in and runtime: <project> signed in
CodexAny role runs codexSame, with codex login statusruntime: signed in and runtime: <project> signed in
A signed-in gh with the repo and workflow scopes (gh auth login --scopes repo,workflow)The project is a GitHub one and init chose --github-auth gh, its default: one person lends Lingtai their own login. A --local project needs noneLingtai acts on GitHub as yougithub: gh login reports ok and names the account
A GitHub App you create and install on the repositoryThe project is a GitHub one run by a team (0114). A --local project needs noneLingtai acts on GitHub as the App, not as yougithub: app credentials (skip under gh). lingtai add checks the App's permissions before it records a repository
GitHub access for gitYou run git against the repository yourself, and for a remote that is not served by the AppA run's own push and fetch use an installation token of the App in App mode, and the token gh auth token prints in gh mode (packages/repo/src/git.ts:47, packages/github/src/client.ts:382), so they need no personal key; your own clone and any push you make use your SSH key or credentials, which Lingtai does not storeNone
A separately billed OpenAI API key (codex_text)The runtime is codex and discussion or triage is model-onlyThe Responses API is called directly, and the Codex login does not supply the key. Put the codex_text block from config.example.yml in ~/.lingtai/config.yml (the example file itself is never read), or export it as LINGTAI_CODEX_TEXT_* variables (packages/env/src/index.ts:187)discuss: <project> codex ready and triage: <project> codex ready
A Claude token, for a sandboxed runA project is sandboxed and a role runs claude-code: the login in ~/.claude/.credentials.json is denied to the runThe run uses a long-lived token instead (below)None
A Copilot token, for a sandboxed runA project is sandboxed and a step names copilotThe run is handed a fine-grained token instead of gh's login (below)None
Copilot's own login, for an unsandboxed runA step names copilot and the project is not sandboxedThe agent runs as youcopilot login, or gh's own login
An Antigravity loginA step names antigravityThe sign-in lives in the keychain, so run agy acp --login in your GUI login session, not over sshNone
Postgres credentialsdatabase.url is setPart of the URLpostgres: pooled connection
A Telegram botA telegram subscriber is in your recipeTo post asNone

Tokens for a sandboxed run#

lingtai token claude and lingtai token copilot make them (cli.md). Revoking either is yours to do.

  • Claude. claude setup-token's result is saved as claude.oauth_token in ~/.lingtai/config.yml; LINGTAI_CLAUDE_OAUTH_TOKEN is read first. The run gets it as CLAUDE_CODE_OAUTH_TOKEN, and a configuration directory of its own with the hook settings and copies of your user-level CLAUDE.md, skills/ and agents/, but no MCP servers, plugins, settings.json or login (apps/cli/src/claude-token.ts).
  • Copilot. A fine-grained personal access token (github_pat_…), owned by your own account, with only the Copilot Requests account permission. It is not gh's login: that can reach your repositories, and this token cannot. A classic ghp_ token is silently ignored by Copilot, so the command refuses it by name. It is saved as copilot.github_token; LINGTAI_COPILOT_GITHUB_TOKEN is read first and wins over the file. Only the token's shape is checked, not its permission or expiry (apps/cli/src/copilot-token.ts).

lingtai doctor reports sign-in through runtime: signed in (any runtime) and runtime: <project> signed in (the runtime that project dispatches), both off the probes in packages/agent/src/auth.ts:31 and :95 (apps/cli/src/doctor.ts:788, :2080). The codex_text block is checked per role by discuss: <project> codex ready and triage: <project> codex ready (apps/cli/src/doctor.ts:2102), which report a missing block or a model that differs from codex_text.model.

Rendered from doc/requirements.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.