Tirith

io.github.eabz由 GitHub 帳號 eabz 發布v1.2.0更新於 Oct 24, 2026

Coordination server for parallel coding agents: claims, contracts, notices, and memory notes.

概覽

AI 產生的概覽

一個本機協調守護程序,讓多個編碼代理透過 MCP 認領檔案、共用任務、介面契約、變更通知與依路徑劃分的筆記。

可以做什麼
  • 認領、釋放與續租檔案或目錄,並列出目前認領,衝突會被拒絕或等待。
  • 建立、拉取、更新與列出含優先順序、負責人與相依關係的任務。
  • 發布、取得與列出帶版本的介面契約,發布或列出變更通知。
  • 記錄與列出已定決策,寫入、讀取、搜尋或刪除依儲存庫路徑劃分的記憶筆記。
  • 在代理之間傳送與列出簡短訊息,並查看狀態計數與負載問題。
適用情境
適合多個編碼代理同時在同一個儲存庫上工作時使用,避免同時改到相同檔案、統一介面形狀,並在工作階段之間傳遞經驗。單一代理的小專案效益不大。
執行需求
需在本機安裝(安裝腳本或 cargo,套件名 tirith-mcp,執行檔 tirith),支援 macOS、Linux 與 Windows。在儲存庫中執行 tirith init 完成註冊,每個代理每次呼叫都要帶固定的 agent 名稱。守護程序在本機 HTTP 埠提供 MCP,並把狀態寫入儲存庫內的 .tirith 目錄。
安裝前請注意
它會把狀態寫入儲存庫:契約、通知、決策與記憶筆記依設計需要提交,執行階段資料則被 gitignore。代理可以建立、更新與刪除任務、筆記與訊息;lead 角色會限制誰能發布契約、建立任務或刪除筆記。升級事項可能涉及憑證、權限、花費或破壞性操作,並由 lead 轉達給你。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Tirith,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

[Tirith]

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.

[CI] [Release] [crates.io] [License: MIT]

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:

bash
curl -LsSf https://eabz.github.io/tirith/install.sh | sh

Windows (PowerShell):

powershell
irm https://eabz.github.io/tirith/install.ps1 | iex

With cargo (the package is tirith-mcp, the binary is tirith):

bash
cargo install tirith-mcp

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:

bash
tirith init

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.

ClientSetup
Claude Codeclaude mcp add tirith -- tirith stdio
Cursor.cursor/mcp.json: { "mcpServers": { "tirith": { "command": "tirith", "args": ["stdio"] } } }
Codexcodex mcp add tirith -- tirith stdio
LangGraph, CrewAI, curlconnect over HTTP, see docs/2-examples/02-client-setup.md

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

PrimitiveToolsPurpose
Claimsclaim, release, renew, claims_listLease files or directories before editing. Overlaps are refused with the owner, reason, and expiry, or waited out server-side with wait_secs. Leases expire if the agent dies, and the agent is told on its next call.
Task boardtask_create, task_pull, task_update, task_listTasks with priority, owner, and dependencies. Agents pull the next unblocked task, skipping tasks another agent holds, and can wait server-side for one with wait_secs; a task whose owner goes silent returns to the board.
Contractscontract_publish, contract_get, contract_listInterface shapes published and versioned before implementation. A new version notifies its consumers automatically.
Change noticesnotice_publish, notice_list"Renamed X to Y, these paths are affected." Dependents get them in the brief that comes back with a claim, once each.
Decisions logdecision_record, decision_listSettled choices with rationale, so nothing is decided twice.
Memory notesmemory_write, memory_read, memory_search, memory_deleteLessons, traps, and handoffs scoped to repository paths. Committed Markdown, searchable, and delivered to whoever claims the paths a note is about.
Messagesmessage_send, message_listShort notes between agents, delivered on the recipient's next call, so any MCP client can take part. Runtime only.
StatusstatusCounts, persistence and load problems; verbose adds who holds what.

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:

bash
tirith claim --agent alice --reason "refactor session handling" src/auth/# ok       alice  src/auth  expires 04:14:34Z
tirith claim --agent bob --reason "fix login redirect" src/auth/login.rs# conflict src/auth/login.rs overlaps src/auth (alice: "refactor session handling", expires 04:14:34Z)

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:

bash
tirith memory write --agent alice "Session ids are opaque" -k gotcha --path src/auth/ <<'NOTE'Tokens are opaque strings. Compare them, never parse them.NOTE
tirith release --agent alicetirith claim --agent bob --reason "fix login redirect" src/auth/login.rs# ok       bob  src/auth/login.rs  expires 04:14:34Z# memory:#   session-ids-are-opaque gotcha   04:04:34Z  paths src/auth  Session ids are opaque: Tokens are opaque strings. Compare them, never parse them.

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.

bash
tirith serve                               # run the repo's daemon by handtirith stdio                               # per-session shim clients spawn; starts the daemon if neededtirith update                              # replace the binary with the latest releasetirith status                              # counts, and who holds whattirith init [--file AGENTS.md] [--instructions]  # register the server, add the agents blocktirith claim | release | renew | claimstirith task     create | pull | update | listtirith contract publish | get | listtirith notice   publish | listtirith decision record | listtirith memory   write | read | search | delete   # body from --body, --file, or stdintirith message  send | list                # talk to other agents; the inbox shows on any resulttirith lead log                            # the swarm lead and its policy's decisionstirith lead human                          # items waiting for you, most agents blocked firsttirith lead human done <id> [--reply TEXT] # answer one; the reply reaches its sendertirith tray                                # macOS only: menu bar icon listing every daemontirith tools                               # list tools with descriptionstirith call <tool> '<json>'                # call any tool directly

--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 gets conflict naming the lead and proposes the change with message_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 with message_send to human, 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/human on 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 or tirith lead human done <id> --reply "..."; the reply reaches the sender as a message from human.

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

SectionContents
1-aboutPurpose, architecture, project structure, tool reference, installation
2-examplesThe demo, client setup for every supported framework, and the swarm playbook: lead, workers, briefs, models
3-testsTesting strategy
4-styleRust rules and their sources, git conventions
5-decisionsArchitecture decision records
6-agent-workflowHow agents work on this repo: Serena, memory, Tirith on itself
7-releaseRelease process and version bumping
index.htmlThe landing page at eabz.github.io/tirith

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

MIT

來源:README.md,提交 5036a0f

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

2
  1. v1.2.0最新Sep 19, 2026
  2. v1.1.1Sep 18, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分