Main agent
The one resident agent you talk to.
Created at first launch, it is the persistent hub: it holds the plan and memory, and it spawns the others. Use it for anything small — most of the time this is all you need.
Beginner Tutorial
LingTai gives you a long-lived AI assistant that lives inside a project folder on your own machine. This guide takes you from installing it to handing it a real first task — and explains just enough of how it thinks to keep going on your own.
~10 minute read
LingTai is a home for a persistent AI agent that you run yourself. It works inside a project directory and keeps everything it knows — memory, identity, knowledge, skills — as plain files in that directory. The guiding idea: the agent is its files, and the files are the agent. Swap the underlying model and the agent remains.
It is
It is not
This is the primary install path for new users. It fetches a prebuilt release, sets up the managed runtime, and needs no Homebrew.
Homebrew (existing users)
brew install lingtai-ai/lingtai/lingtai-tui Still supported during the migration period. If you already installed with Homebrew, upgrade with: brew update && brew upgrade lingtai-ai/lingtai/lingtai-tui — then restart the TUI.
pip (development / diagnostics only)
pip install lingtai Not a normal install or upgrade path. Reach for pip only when you are developing or diagnosing the kernel itself — it does not manage a project runtime.
With the recommended install, the TUI manages its own runtime updates. Remember there are two layers — the TUI program and the managed Python runtime; if a version looks stale after an upgrade, restart the TUI and run /doctor to repair the runtime.
A LingTai project is just a folder. You launch the TUI inside it, and everything the agent creates lives there. On the very first run, a short wizard walks you through setup and starts one resident agent.
Make a project folder and enter it
The folder you are in becomes the project. Start with an empty one while you learn.
mkdir my-project && cd my-project Launch the TUI
This opens LingTai in the current directory. The first run auto-creates a .lingtai/ folder and provisions the runtime.
lingtai-tui Follow the setup wizard, then pick the Tutorial recipe
The wizard asks for your API key, a model, an agent name, and a starting recipe. Choose the built-in "Tutorial" recipe: the agent then teaches you the system, lesson by lesson, right inside the TUI.
That first wizard is the /setup flow. You can re-run /setup any time to change your provider, model, or capabilities; add /setup credentials to jump straight to the credential check.
You talk to the agent by typing plain messages and pressing Enter. A good first task is safe, concrete, and read-only — let the agent look before it touches anything.
Try typing something like
Help me get oriented in this project. First read the README and the docs folder — do not change any files. Then tell me what the project is for, which files matter most, and what you would suggest doing next.
There is no /status command. Instead, open a dashboard. The most useful is /kanban, which shows each agent's status, heartbeat, token usage, and how full its context window is.
/kanban | The network dashboard: per-agent status, heartbeat, token/stamina, and context usage. |
/daemons | Inspect the short-lived worker runs an agent has spawned — their task, trace, and status. |
lingtai-tui list --detailed <project-dir> | From a shell: list every agent in a project directory (the main agent is marked). |
LingTai is not one agent but a small organization. Three roles are worth knowing early; a rule of thumb follows each.
The one resident agent you talk to.
Created at first launch, it is the persistent hub: it holds the plan and memory, and it spawns the others. Use it for anything small — most of the time this is all you need.
A short-lived parallel worker.
Emanated for a noisy, bounded job — bulk lookups, cross-checking, a wide scan — then discarded. You keep its conclusions, not the worker. Use one for a one-off burst of parallel work.
A persistent, specialized teammate.
A long-lived agent with its own memory, mailbox, and responsibility — like a fixed teammate who owns one domain. Create one when a specialty deserves to persist across many sessions.
Everything the agent knows lives on disk under .lingtai/, which you can inspect with ordinary tools like ls and cat. Three tiers are worth telling apart.
Ordinary working files.
The reports, edits, and artifacts the agent reads and writes anywhere in your project. Nothing special — just the work itself.
Durable, private, per-agent memory.
Lasting facts, paths, decisions, and lessons an agent keeps for itself, in its knowledge/ folder. Only a short index sits in the prompt; full entries are read on demand. Browse it with /knowledge.
Reusable playbooks, shared by all agents.
Markdown playbooks (each a SKILL.md) that describe how to do a recurring task, loaded on demand. Unlike Knowledge, Skills are shared across every agent in the same .lingtai/. Browse them with /skills.
An agent can only hold so much conversation in view at once — its context window. Think of it as a desk that slowly fills with paper. When it gets full, the agent molts: it writes itself a careful summary, then clears the window and carries that summary — plus all its durable memory — forward onto a clean desk.
This is normal housekeeping, not a failure. Under context pressure the agent will molt on its own, after a short series of warnings. You usually do not need to do anything.
If a task matters, you can prepare for a molt: ask the agent to "wrap up and summarize" first — saving the goal, what is done and not done, key file paths, conclusions, and next steps into its memory — and then run /molt to force it. (Do not confuse this with /clear, which wipes the conversation without saving, or /nirvana, which irreversibly erases the whole agent.)
By default you talk to your assistant in the terminal. If you want, you can also reach the same assistant — same memory, same history — through outside channels. These are optional add-ons, configured with /mcp.
After changing any channel or MCP configuration, run /refresh so the agent picks it up.
Type / in the TUI to open the command palette; it fuzzy-matches, so /skl finds skills. A compact set to get started:
/setup | Set up or change your provider, model, capabilities, and credentials. |
/kanban | The network dashboard, including context-window usage. |
/skills | Browse the shared skill playbooks. |
/knowledge | Browse this agent's private knowledge (aliases: /library, /codex). |
/mcp | Manage external channels and other MCP add-ons. |
/molt | Save context, then reset the conversation window. |
/doctor | Diagnose connectivity, keys, models, and repair the runtime. |
/help | Open the in-TUI help reader for the full list. |
| Enter | Send the current message. |
| Shift+Enter / Ctrl+J | Insert a newline instead of sending. |
| / | Open the command palette (type to fuzzy-filter). |
| Ctrl+E | Open an external editor for a long message. |
| Ctrl+T | Switch between agents inside the /skills, /knowledge, and /system views. |
The fastest way to go deeper is inside the product itself: launch lingtai-tui, pick the Tutorial recipe, and let the agent teach you concept by concept. When you want more, these are the canonical sources.