YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
- LingTai
- A meta-organization, not another chat window
- Start in three commands
- What it is good at
- Why it is different
- Architecture at a glance
- Builds an organization as the work grows
- External channels
- The interface
- Filesystem you can read
- Use coding agents as hands
- Install in detail
- Architecture
- Docs by goal
- Repository map
- Troubleshooting
- Development
- Contributing
- Design philosophy
- Community
- Star history
- License
- A meta-organization, not another chat window
LingTai
Build an AI organization inside your project β not just another agent.
Local-first Β· resident agents Β· soul-flow proactiveness Β· mailboxes Β· lifecycle Β· multi-agent networks
Most agent tools give you a better worker. LingTai gives you the substrate for an AI organization: long-lived local agents with home directories, inbox/outbox mailboxes, durable memory, lifecycle controls, self-reflection, and peers they can spawn or call when the work gets bigger than one mind.
Tools such as OpenClaw and Hermes are useful hands for executing agentic tasks. LingTai is the organizational layer around those hands: it can use coding agents and CLIs as workers, while preserving the roles, memory, communication, supervision, and recovery paths that let an agent network keep operating after a single chat or terminal session ends.
Send a task from the TUI, Telegram, Feishu/Lark, WeChat, WhatsApp, or email. The same organization wakes up through the addressed agent, reads project memory, uses local tools, writes artifacts, coordinates peers when needed, and replies on the channel where you started.
A meta-organization, not another chat window
You
"Watch the repo overnight. If a PR breaks, inspect it, draft a fix,
and send me a morning brief."
LingTai
wakes from its mailbox
β reads durable project memory
β runs shell / web / file / coding-agent tools
β reflects via soul flow when idle or stuck
β writes notes, reports, patches, or schedules
β asks a specialist avatar or daemon when parallel work helps
β replies on Telegram / TUI / email with the artifacts
Close the terminal if you want. The organization still has a filesystem home under .lingtai/, mailboxes, logs you can inspect, and lifecycle controls to sleep, refresh, recover, or molt long sessions without losing the grain. Soul flow gives agents a built-in reflective loop: after idle time they can re-read the situation, notice missed angles, and surface proactive next steps instead of waiting forever for the next prompt.
Start in three commands
brew install lingtai-ai/lingtai/lingtai-tui
mkdir my-project && cd my-project
lingtai-tui
On first run LingTai creates .lingtai/, provisions its own runtime, walks you through model/preset setup, and starts one resident assistant for the project.
project/
βββ .lingtai/
βββ human/ # your mailbox identity
βββ <agent>/ # one resident project agent
βββ inbox/ outbox/ # messages wake the agent
βββ knowledge/ # durable facts and lessons
βββ system/ # pad, summaries, standing rules
βββ logs/ # inspectable runtime trace
The
lingtaiPyPI package exists, but it is the Python runtime the TUI manages on your behalf. Use Homebrew (or the source build below) to install and upgrade; reach forpiponly when you are developing or diagnosing the kernel itself.
For source builds, mainland-China mirror setup, and from-tarball install paths, see Install in detail.
What it is good at
| Use LingTai when you want... | What the agent actually does |
|---|---|
| A daily project operator | Scans changes, remembers decisions, summarizes blockers, and posts a brief before you sit down. |
| GitHub triage with judgment | Reads issues/PRs, categorizes risk, drafts replies or patches, and stops for approval before real side effects. |
| Research that becomes an artifact | Searches, fetches, compares, cites, and ships a standalone HTML memo instead of a loose chat transcript. |
| Coding work that can run long | Uses Claude Code, Codex, OpenCode, shell commands, and local files while LingTai keeps the plan and communication. |
| Schedules that act | "Every weekday at 9, check the deploy queue and ping me if anything is stuck" β not just a reminder. |
| Memory across sessions | Keeps paths, preferences, collaborator context, lessons, and reusable procedures for the next run. |
Why it is different
| Agent tool / coding assistant | LingTai meta-organization builder |
|---|---|
| The conversation or run is the product. | The project organization is the product; conversations are only input channels. |
| Tools like OpenClaw or Hermes act as capable workers for a task. | LingTai supplies the persistent org chart around the workers: memory, mail, roles, lifecycle, supervision, and recovery. |
| Closing the window ends the relationship. | Agents have local homes, mailboxes, logs, memory, and lifecycle. |
| Proactiveness depends on the user prompting again. | Soul flow lets an idle agent reflect, surface missed angles, and propose next moves. |
| Scaling means juggling more chats or runs. | Spawn persistent avatars for specialists or short-lived daemons for parallel work; watch the topology in the portal. |
| A bad turn means restart and hope. | Sleep, wake, refresh, CPR, clear, doctor, and molt are built into the runtime. |
Architecture at a glance
flowchart LR
human[Human] --> channels[TUI / Telegram / Email / Feishu / WeChat]
channels --> agent[Resident LingTai agent]
agent --> soul[Soul flow: reflection + proactive next steps]
agent --> tools[Files / Bash / Web / Vision / MCP / Coding CLIs]
agent --> memory[Pad / Knowledge / Skills / Character]
agent --> lifecycle[Sleep / Wake / Refresh / CPR / Molt]
agent --> network[Organization: avatars + daemons]
network --> portal[Live org visualization]
tools --> artifacts[Reports / patches / notes / scheduled work]
soul --> agent
memory --> agent
Builds an organization as the work grows
Start with one resident agent. When the work grows, the organization grows with it:
- Molt instead of forgetting. Long sessions shed noisy transcript while carrying forward summaries and durable memory.
- Reflect instead of waiting. Soul flow gives the agent an inner review loop for proactive insight when the project goes quiet or a path looks wrong.
- Spawn an avatar. Give a persistent specialist its own memory, mailbox, and responsibility.
- Emanate a daemon. Split a noisy batch into short-lived workers and keep only the conclusions.
- Use coding agents as hands. Claude Code, Codex, OpenCode, OpenClaw, Hermes, and similar tools can execute precise work while LingTai owns the plan, memory, coordination, and communication.
- Watch it live. The portal shows who is alive, what they are doing, and how the organization has changed.
External channels
LingTai bridges the same long-lived assistant to the messaging surfaces you already use. The currently curated MCP addons:
| Addon | Use it for |
|---|---|
telegram |
Talk to your assistant from Telegram (DMs, optional allowlist, voice/file passthrough). |
feishu |
Feishu/Lark β uses a WebSocket long connection, no public IP required. |
wechat |
WeChat through an iLink/gewechat-style bridge. |
whatsapp |
WhatsApp through the curated LingTai WhatsApp bridge. |
imap |
Real email through IMAP/SMTP β multi-account, with safety defaults for unknown senders. |
Channels are doors into the same assistant, not separate bots. Memory, tools, and history are shared across them. Configure from the TUI's /mcp control panel, or declare them in init.json.
Credentials live in local .secrets/ files (never in Git). Unknown external senders do not auto-receive replies. External side effects (sending messages, filing issues, deleting resources) are treated as real actions by default.
The interface
TUI
lingtai-tui is the main human surface. It gives you setup, model/preset configuration, chat and mail, agent status (token + stamina + heartbeat), avatar and daemon visibility, markdown rendering, a slash-command palette, and upgrade/doctor flows.
Frequently used slash commands:
| Command | Use |
|---|---|
/setup |
Change model, recipe, language, tools, or behavior. |
/kanban |
Inspect agent + project status. |
/mcp |
Configure external channels (Telegram/Feishu/WeChat/WhatsApp/IMAP/β¦). |
/skills |
Browse available skills and capabilities. |
/viz |
Open the network visualization. |
/insights |
Ask the assistant for a reflective second look. |
/sleep Β· /refresh Β· /cpr Β· /clear |
Lifecycle: pause, reload, revive, reset context. |
/projects |
Switch or inspect known projects. |
/doctor |
Diagnose installation/runtime issues. |
Shell entrypoints when useful:
lingtai-tui # open the TUI in the current project
lingtai-tui list <project> # list agents and states
lingtai-tui spawn <dir> --preset <name> [--agent-name <name>]
lingtai-tui bootstrap # re-extract bundled skills/utilities
lingtai-tui doctor # repair/update TUI runtime
Portal
lingtai-portal is the visualization server. It reads project state to show the agent network, mail edges, and history. It becomes useful when you have more than one assistant per project, or when you want to see how the work evolved.
Tips
- Use a dark terminal theme β LingTai's palette is tuned for it.
Ctrl+Ein the TUI opens an external editor for long messages.- Hold
Option(macOS/iTerm2) orShift(most Linux/Windows terminals) to select text without the TUI capturing it. - If anything feels broken after an upgrade, run
/doctor(orlingtai-tui doctorfrom a shell).
Filesystem you can read
LingTai keeps state on disk, on purpose. You can debug it with ls, cat, tail, jq, grep, your editor, or another coding agent. The shape after first launch:
project/
βββ .lingtai/
βββ human/ # your mailbox identity
βββ <agent-name>/ # one running assistant
β βββ init.json # model, tools, preset, MCP wiring
β βββ system/ # prompt layers, pad, rules, summaries
β βββ knowledge/ # durable private memory
β βββ inbox/ outbox/ # internal mail
β βββ logs/ # event log + human-readable log
β βββ delegates/ # spawned-avatar ledger
β βββ daemons/ # daemon run records
β βββ .agent.json # heartbeat, status, identity card
βββ .portal/ # topology/history for visualization
Useful inspection commands:
lingtai-tui list /path/to/project # running agents and states
tail -f /path/to/project/.lingtai/<agent>/logs/agent.log # human-readable log
jq -r '.event' /path/to/project/.lingtai/<agent>/logs/events.jsonl | tail # structured events
Use coding agents as hands
LingTai assistants live in the filesystem, so coding agents can work with them in two ways. As daemon backends, Claude Code, Codex, and OpenCode can be launched for focused implementation or review jobs while LingTai keeps the long-running plan and memory. As peer tools, any coding agent that can read and write files can collaborate through the shared .lingtai/human/ mailbox.
- Claude Code β
claude plugin add Lingtai-AI/claude-code-plugin - OpenAI Codex CLI β
git clone https://github.com/Lingtai-AI/codex-plugin.git && cd codex-plugin && ./install.sh - Other coding agents (OpenCode, OpenClaw, Hermes, β¦) β vendor the
lingtai-skillprotocol skill under your tool's skills directory.
The split: a coding agent is precise and verifiable β every tool call visible, every edit reviewable. A LingTai assistant is asynchronous and patient β it remembers the goal, talks to the human, coordinates parallel contexts, and decides when to hand work to a specialist. Use the coding agent as hands. Use LingTai as the long-running collaborator that plans, drafts, monitors, and remembers.
Install in detail
Homebrew (recommended)
brew install lingtai-ai/lingtai/lingtai-tui
lingtai-tui
# upgrade later
brew update
brew upgrade lingtai-ai/lingtai/lingtai-tui
After upgrading, restart the TUI so the new binary takes over. The TUI manages the Python runtime under ~/.lingtai-tui/runtime/venv/ β installing lingtai into your system Python does not affect a running project.
From source
Use this when hacking on the TUI/portal itself or when Homebrew is unavailable:
git clone https://github.com/Lingtai-AI/lingtai.git
cd lingtai
./install.sh
lingtai-tui
install.sh builds lingtai-tui and (when npm is available) lingtai-portal, then installs binaries into the Homebrew prefix if brew exists, otherwise /usr/local/bin.
Kernel dev mode (advanced)
Only if you are editing the kernel checkout and want your edits to take effect immediately in the TUI runtime:
~/.lingtai-tui/runtime/venv/bin/pip3 install -e /path/to/lingtai-kernel
Runtime repair
lingtai-tui doctor
doctor checks the TUI/kernel/runtime relationship, refreshes shipped utility skills, and reports concrete repair steps. Use it after a failed startup or a stale-looking upgrade.
Architecture
LingTai is split across two repositories.
| Repository | Language | Owns |
|---|---|---|
Lingtai-AI/lingtai (this one) |
Go + TypeScript | TUI, portal, Homebrew/source install, shipped utility skills. |
Lingtai-AI/lingtai-kernel |
Python (+ Rust sidecar pieces) | Agent runtime, LLM turn loop, intrinsic tools, session/context/molt management, MCP host. Published as the lingtai PyPI package. |
The Go TUI does not run the agent mind. It launches and supervises Python kernel agents as subprocesses; everything between UI and agents flows through the project filesystem (.lingtai/ mailboxes, heartbeats, logs, prompt files, portal records). That is why the state is so easy to inspect β and why other tools can cooperate with it without any SDK.
This repo carries two Go binaries:
| Tree | Binary | Description |
|---|---|---|
tui/ |
lingtai-tui |
Bubble Tea terminal app, setup wizard, process monitor, slash-command shell, preset editor, upgrade/doctor flows. |
portal/ |
lingtai-portal |
Go HTTP server with an embedded React frontend for topology/replay visualization. |
Docs by goal
- New here? Run
lingtai-tui, pick the Tutorial recipe, follow the prompts. - Set up a channel β
/mcpinside the TUI, then the addon's own onboarding resource. - Write a skill β see
tui/internal/preset/skills/lingtai-dev-guide/after first launch. - Source layout β start at
ANATOMY.md, then descend intotui/ANATOMY.mdorportal/ANATOMY.md. - Release process β
RELEASING.md. - Contributing β anatomy-first, worktree-first, with validation in the PR body. See Contributing.
Repository map
.
βββ README.md / README.zh.md / README.wen.md
βββ ANATOMY.md # source-grounded repo map for agents and humans
βββ CLAUDE.md # coding-agent guidance
βββ RELEASING.md # release checklist
βββ install.sh # source installer
βββ tui/ # lingtai-tui Go module
β βββ main.go
β βββ internal/ # TUI implementation
β βββ i18n/ # en/zh/wen UI strings
β βββ packages/ # npm wrapper metadata
βββ portal/ # lingtai-portal Go module
β βββ main.go
β βββ web/ # React/Vite frontend
β βββ i18n/
βββ docs/ # design notes, blog, status, known limitations
βββ examples/ # example init/addon/policy JSONC files
βββ scripts/ # helper scripts
βββ discussions/ # design patches and investigation notes
Troubleshooting
lingtai-tui is not found. Make sure Homebrew's bin directory is on PATH (brew --prefix/bin). If you used install.sh, check /usr/local/bin/lingtai-tui or the Homebrew prefix.
The TUI starts but the assistant does not respond. Run lingtai-tui doctor and lingtai-tui list /path/to/project, then tail -100 /path/to/project/.lingtai/<agent>/logs/agent.log.
A skill or command is missing. lingtai-tui bootstrap (or /doctor inside the TUI) re-extracts bundled utilities.
You upgraded but behavior did not change. Two layers: the Go TUI binary (Homebrew/source) and the Python runtime (TUI-managed venv). Restart the TUI after upgrading; run doctor if the runtime looks stale. Installing the lingtai PyPI package into your system Python does not affect projects.
You are developing the kernel and your edits are ignored. See Kernel dev mode.
Development
Prerequisites
Before running the local development commands below, make sure these tools are available:
- Git for cloning the repository and using the worktree-based contribution workflow.
- Go 1.26.1 or newer compatible Go release. Both Go modules currently declare
go 1.26.1(tui/go.modandportal/go.mod). - Node.js and npm for the portal web frontend under
portal/web(npm ciandnpm run build). Use a recent LTS Node.js release unless the frontend tooling is pinned more tightly in the future. - make for the Makefile-based workflows in
tui/andportal/(for example,cd tui && make buildorcd portal && make build). The validation commands below also show the directgo/npmcommands. - A POSIX-compatible shell for the shell snippets and installer scripts. On Windows, use WSL, MSYS2, or an equivalent environment.
For non-trivial changes, work in a Git worktree off origin/main:
cd /path/to/lingtai
git fetch origin main
git worktree add -b docs/my-change .worktrees/my-change origin/main
cd .worktrees/my-change
Validation:
# TUI changes
cd tui && go test ./... && go vet ./... && go build -o bin/lingtai-tui .
# Portal changes
cd portal/web && npm ci && npm run build && cd .. && go test ./... && go build -o bin/lingtai-portal .
# Docs-only
git diff --check && git status --short
If a doc change references generated UI commands or shipped skills, regenerate via lingtai-tui bootstrap and inspect ~/.lingtai-tui/commands.json.
Contributing
LingTai contributions are source-grounded and workflow-aware.
- Read the relevant anatomy first: root
ANATOMY.md, thentui/ANATOMY.mdorportal/ANATOMY.md. - Work in a branch/worktree.
- Keep changes scoped.
- Run the relevant validation commands.
- Update anatomy/docs when structural behavior changes.
- Open a PR that says what changed, why, and how you validated it.
Common areas that need help: TUI usability and accessibility, portal visualization and replay, MCP/addon onboarding, cross-platform install polish, docs and tutorials, runtime diagnostics, and high-quality reusable skills.
Design philosophy
LingTai borrows its name from the heart-mind β the square inch where transformation begins. The product follows three practical beliefs:
- Assistants need bodies. A durable filesystem home gives continuity, inspectability, and a place to accumulate tools and memory.
- Networks should grow through service. When a task needs a new capability, write a skill, record knowledge, or spawn a specialist, and the next task gets easier.
- Memory must be layered. Conversation is temporary. Pad, character, knowledge, skills, and mail carry what matters forward.
The goal is not agent theater. The goal is useful long-running AI collaborators that can be inspected, restarted, taught, and improved.
Community
- Website and release notes: https://lingtai.ai
- Main repo: https://github.com/Lingtai-AI/lingtai
- Kernel repo: https://github.com/Lingtai-AI/lingtai-kernel
- Homebrew tap: https://github.com/Lingtai-AI/homebrew-lingtai
- Discord: https://discord.gg/cMchjXpg
- GitHub issues: https://github.com/Lingtai-AI/lingtai/issues
- GitHub discussions: https://github.com/Lingtai-AI/lingtai/discussions
For Chinese-language discussion and early testing, scan the WeChat QR below. Add the author on WeChat with the note lingtai; if the QR has expired, please open an issue and we will refresh it.
Star history
License
Apache-2.0 β see LICENSE.