YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

LingTai

Build an AI organization inside your project β€” not just another agent.

Local-first Β· resident agents Β· soul-flow proactiveness Β· mailboxes Β· lifecycle Β· multi-agent networks

English Β· δΈ­ζ–‡ Β· 文言 Β· Website Β· Releases

Homebrew License Kernel Site Discord


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 lingtai PyPI 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 for pip only 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.
LingTai portal showing a live local network of long-lived project agents

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+E in the TUI opens an external editor for long messages.
  • Hold Option (macOS/iTerm2) or Shift (most Linux/Windows terminals) to select text without the TUI capturing it.
  • If anything feels broken after an upgrade, run /doctor (or lingtai-tui doctor from 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-skill protocol 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 β€” /mcp inside 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 into tui/ANATOMY.md or portal/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.mod and portal/go.mod).
  • Node.js and npm for the portal web frontend under portal/web (npm ci and npm 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/ and portal/ (for example, cd tui && make build or cd portal && make build). The validation commands below also show the direct go/npm commands.
  • 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.

  1. Read the relevant anatomy first: root ANATOMY.md, then tui/ANATOMY.md or portal/ANATOMY.md.
  2. Work in a branch/worktree.
  3. Keep changes scoped.
  4. Run the relevant validation commands.
  5. Update anatomy/docs when structural behavior changes.
  6. 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:

  1. Assistants need bodies. A durable filesystem home gives continuity, inspectability, and a place to accumulate tools and memory.
  2. 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.
  3. 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

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.

WeChat QR code for joining the LingTai testing group

Star history

Star History Chart

License

Apache-2.0 β€” see LICENSE.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support