
Tirith
io.github.eabz由 GitHub 账号 eabz 发布v1.2.0更新于 Oct 24, 2026
Coordination server for parallel coding agents: claims, contracts, notices, and memory notes.
概览
一个本地协调守护进程,让多个编码代理通过 MCP 认领文件、共享任务、接口契约、变更通知和按路径划分的笔记。
- 可以做什么
- 认领、释放和续租文件或目录,并列出当前认领,冲突会被拒绝或等待。
- 创建、拉取、更新和列出带优先级、负责人和依赖关系的任务。
- 发布、获取和列出带版本的接口契约,发布或列出变更通知。
- 记录和列出已定决策,写入、读取、搜索或删除按仓库路径划分的记忆笔记。
- 在代理之间发送和列出简短消息,并查看状态计数和负载问题。
- 适用场景
- 适合多个编码代理同时在一个仓库上工作时使用,避免同时改同一批文件、统一接口形状,并在会话之间传递经验。单个代理的小项目收益不大。
- 运行要求
- 需在本地安装(安装脚本或 cargo,包名 tirith-mcp,可执行文件 tirith),支持 macOS、Linux 和 Windows。在仓库中运行 tirith init 完成注册,每个代理每次调用都要传一个固定的 agent 名称。守护进程在本机 HTTP 端口提供 MCP,并把状态写入仓库内的 .tirith 目录。
安装
在 SourceWeft 中
- 打开 控制台中的 Tirith,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Tirith
Coordination server for parallel coding agents.
Claims, a task board, interface contracts, change notices, a decisions log,
path-scoped memory notes, and agent messages, over MCP.
Run five or ten coding agents on one repository and they edit the same files, rename things others depend on, and build both sides of an interface to different shapes. Tirith is a small daemon they all talk to: an agent claims files before editing, gets the notices, contracts, decisions, and notes for those files back with the claim, and publishes the shape of an interface before either side implements it.
It works with anything that speaks MCP, over stdio or HTTP: Claude Code, Cursor, Codex, LangGraph, CrewAI, or a plain script.
It also remembers. Agents leave notes scoped to repository paths, so what one agent learned about a file reaches the next agent that claims it. Tirith stores no conversation history and no embeddings.
Status: v1 shipped. Every primitive, the CLI, persistence, and the dashboard are built and tested, against the definition in ADR-0013; tool schemas follow semantic versioning.
Install
macOS and Linux:
Windows (PowerShell):
With cargo (the package is tirith-mcp, the binary is tirith):
Already installed? tirith update replaces the binary in place with the
latest release. Prebuilt binaries for macOS, Linux, and Windows on x86_64
and ARM64 are on the releases page;
every option is in docs/1-about/05-installation.md.
Listed in the MCP Registry:
mcp-name: io.github.eabz/tirith.
Quick start
In the repository, run:
It registers tirith stdio in .mcp.json and puts a short block in
AGENTS.md (--file for another). The protocol itself, from the first
claim to who leads a swarm, arrives as the MCP server's instructions
every time a session connects; a repository that wants its own protocol
keeps it in .tirith/instructions.md (tirith init --instructions
writes the built-in one there to edit). Other clients register the same
command by hand: the shim starts the repository's daemon the first time a
session needs it, replaces a daemon of another version, and proxies to it
after that; nothing has to be started by hand.
The daemon serves MCP at http://127.0.0.1:7477/mcp and a live dashboard
at http://127.0.0.1:7477/. State is written to .tirith/ in your
repository: contracts, notices, decisions, and memory notes are meant to
be committed; .tirith/runtime/ (claims, tasks, messages) is gitignored
by a .gitignore Tirith writes itself.
Every agent passes a stable agent name with each call. That is the only
convention it has to follow. To run several agents at once, paste the
protocol block from
docs/2-examples/03-swarm-playbook.md
into your project's agent instructions: it says which session leads,
when it spawns workers, what each worker is told, and which model each
runs on. The daemon serves the same rules in its instructions.
What it does
Twenty-two tools, each with a description of every parameter, MCP
annotations, and an output schema, plus the protocol as the server's
instructions on connect (ADR-0038). Every result is JSON with a status
field, lists are paged, and any result may carry lost (a lease that
ended) or inbox (messages waiting). The full reference, the single source of truth for
tool schemas, is docs/1-about/04-primitives.md.
Example
Two agents, one directory. The second is refused with enough information to decide what to do next:
A note left for whoever edits a path next. Alice writes it once; it comes back on Bob's claim without anyone searching, as an excerpt, never a body:
The full walkthrough, with contracts, notices, and the same calls over raw MCP, is docs/2-examples/01-two-agents-demo.md; the script is examples/demo.sh.
CLI
Every tool has a subcommand; the CLI uses the same MCP path agents do.
--agent sets your name, --json prints the raw result, and non-ok
outcomes exit with status 1.
Swarm lead and escalations
The session that spawns other agents claims the reserved path
.tirith/lead and becomes the swarm lead; status and the dashboard show
who holds it. The daemon then handles routine escalations with fixed
rules, without spending an LLM turn:
- What is the lead's: while it holds
.tirith/lead, only the lead publishes contracts, creates tasks, records decisions, deletes memory notes and forces another agent's task; anyone else getsconflictnaming the lead and proposes the change withmessage_send(ADR-0036). With no lead nothing is gated. The lead is also the only session that commits, pushes, opens pull requests or deploys (ADR-0037). - What escalates: a task set to
blocked(its note is the reason), or the third refusal of the same claim within 360 s. A message to the lead is never an escalation. - Where it goes: while there is a lead, to the lead's inbox as a
message from
tirith, tagged "may need the human" when it mentions credentials, permissions, spending, or destructive steps. Nothing reaches you on its own: the lead relays what needs you withmessage_sendtohuman, written for you. While there is no lead, escalations go to your queue. - Your queue: the dashboard's "Needs you" list,
tirith lead human,/api/humanon the dashboard port, and the macOS tray, which lists each item's sender and first line and notifies you of new ones. Answer with the dashboard's Done button ortirith lead human done <id> --reply "..."; the reply reaches the sender as a message fromhuman.
Claim grants, refusals, waits, releases and lease ends, notice pushes, and
escalations are appended to the lead decision log: tirith lead log, or
/api/lead on the dashboard port. Design:
ADR-0027; per tool:
04-primitives.md.
Documentation
Contributing
Coding agents must read AGENTS.md first. This repository is
coordinated with Tirith itself: a daemon runs for the repo and agents claim
files through it before editing. The skills in
.agents/skills/ say how.
License
来源:README.md,提交 5036a0f
工具
0版本历史
2- v1.2.0最新Sep 19, 2026
- v1.1.1Sep 18, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分