FlightPlan
FlightPlan
你的代理相互冲突。提交一份 FlightPlan。
在工作开始之前,你的每个代理都会声明其目标,并查看已经在进行中的工作。 它们围绕冲突进行协调,然后留下变更内容及其原因。
提供建议,绝不锁定。
是代理工作的副产品,而非需要维护的另一个流程。
FlightPlan 在编码代理的工作发生冲突之前对其进行协调。此仓库包含托管服务 getflightplan.com 的 CLI、MCP 服务器和安装程序。
快速开始
在你的仓库根目录下:
uvx getflightplan install这将为 Claude Code 安装 FlightPlan。对于 Codex,请附加 --agent codex(或 --agent both)。该命令可以安全地重复运行。
在机器上首次运行时,接下来运行 uvx getflightplan login——它会连接你的账户并完成 MCP 设置。
托管服务处于测试阶段;使用你的 GitHub 账户登录 getflightplan.com。该包位于 PyPI 上,因此上述命令就是你所需要的全部。要固定某个分支或提交,请从源码安装:
uvx --from git+https://github.com/sledmonkey/getflightplan getflightplan install。
版本和兼容性策略:docs/versioning.md。
Related MCP server: agenthelm
工作原理
提交工作。 在编辑之前,代理声明其任务和预期要接触的文件。
查看进行中的工作。 FlightPlan 返回重叠的活跃工作,包括 Git 无法看到的未提交更改、编码过程中做出的决策,以及相关的近期结果。
协调。 重叠是建议性的:缩小工作范围、排序,或在了解上下文的情况下继续。
汇报。 代理记录变更内容、意外情况以及尝试过的方法,以便下一次会话不会从零开始。
安装程序添加的内容
.flightplan.toml——固定每个代理发布时使用的仓库名称以及注册表 URL。有意提交;不包含机密。在
CLAUDE.md和/或AGENTS.md中的托管代理片段。/registry-digest——一个按需的“最近发生了什么”命令。一个会话结束停止钩子(
.claude/hooks/flightplan_stop_hook.py及其设置连接),提醒代理关闭未完成的意图。
它还会检查 MCP 注册和服务可达性,并在机器拥有凭据时修复注册——无需提示。验证是建议性的,绝不会导致运行失败。
要删除安装程序写入的所有内容,请在仓库根目录下运行 getflightplan uninstall(使用 --dry-run 预览,使用 --purge-key 同时删除保存的 API 密钥)。
登录
getflightplan login 无需复制 API 密钥即可获取凭据。它会打开你的浏览器,你在那里批准,凭据会以模式 600 保存到 ~/.config/flightplan/env。凭据永远不会被打印出来。存储凭据后,登录还会为你机器上的代理二进制文件注册 MCP 服务器——这是安装程序在机器没有凭据时必须跳过的步骤。
在没有浏览器的机器上,运行 getflightplan login --headless。该命令会显示一个短代码和一个地址。在另一台设备上打开该地址并输入代码。
getflightplan logout 会从这台机器上删除存储的凭据。要在服务上撤销它,请使用 /devices 页面。
查找你的仓库
登录后,客户端会向注册表询问此检出属于哪个仓库。它会发送你的 origin 远程地址以及最多 1000 个提交 ID,以证明你拥有一个克隆。如果你的账户有访问权限,ID 和名称会写入 .flightplan.toml。如果注册表不知道这个仓库,客户端会提供在你的浏览器中注册它的选项。如果你的账户没有访问权限,客户端会提供请求访问的选项。
getflightplan login --no-register 会跳过检查。getflightplan register 稍后单独运行它。失败的检查绝不会导致登录失败。
声明工作已完成
使用 uncommitted: true 完成的意图表示工作位于某人的工作树中,而不是其他地方。注册表无法看到你的工作树,因此它会持续警告所有接触这些路径的人,直到被告知工作已落地。
代理使用 mark_intent_landed 工具执行此操作。你也可以手动操作:
getflightplan landed <intent-id> --commit <sha> --commit <sha>提交是可选的;时间戳是修正。只有在你确定知道的情况下才传递 SHA——客户端永远不会猜测哪些提交属于某个意图。落地可以安全地重复执行,并且永远不会重写已完成记录。
配置
FLIGHTPLAN_URL——https://api.getflightplan.comFLIGHTPLAN_API_KEY——你的密钥(MCP 服务器的环境变量;停止钩子也会读取~/.config/flightplan/env)。.flightplan.toml——每个仓库的固定配置:一个repo名称和url,或者一个带有可读name的target_id(一旦仓库有了固定的 ID)。
你的代理被告知的内容
安装程序会添加以下托管契约,其中固定了你的仓库名称。
意图注册表
此仓库参与团队意图注册表(MCP 服务器:flightplan)。
在开始非琐碎工作之前,调用
post_intent。判断标准:该工作是否会改变其他代理可能遇到的行为、默认值或契约——或者,对于纯调查,调查结果是否能节省下一个代理一个小时?两者中任一为是 → 发布;问答和拼写级别的修复,则不需要。发送一段摘要(做什么 + 为什么)、kind(build,或用于一次性调查的explore/spike)以及你预期要更改区域的touchesglob 模式。保留返回的 ID 以供后续使用。对于repo,使用 git 远程 origin 的 basename(如果没有远程,则使用仓库根目录名称)——此仓库上的每个代理必须使用相同的名称,否则冲突检查会静默地互相错过。响应可能包含context:与你的任务相关的近期已完成工作——在开始之前阅读这些结果;其中的意外和死胡同是重要的信息。如果响应包含级别为
warn的重叠,在暂停之前检查重叠是什么。两种情况无需确认——提及重叠并继续:重叠的意图正是你被要求处理的工作(审查它、验证它、跟进它),或者你的任务是只读的。否则,告诉你的用户谁在做什么以及哪些 glob 冲突,并在继续之前询问如何操作。fyi/nudge级别:简要提及并继续。如果工作范围发生变化或运行时间过长,调用
update_intent:当范围扩大时修改摘要/touches(冲突检查会针对它们运行——过时的 glob 会错过真正的冲突),或者仅使用 ID 调用以续订跨越超过一天的工作的 TTL。响应包含新的overlaps——与发布时相同的基于 glob 的冲突检查——其中的warn与发布时的warn处理方式相同。当工作完成或被放弃时——包括会话即将结束时——调用
complete_intent并附上一段结果:实际发生了什么变化、任何意外情况、尝试过并被拒绝的方法、任何故意保留的内容。如果warn重叠改变了工作的进行方式(协调、缩小范围、无论如何继续),请说明是哪一个。附上你已经知道的 git 事实:实际更改的files(git diff --name-only)、创建的commits,以及如果任何工作尚未提交则uncommitted: true——这个标志让其他代理的冲突检查大声警告而不是静默处理。完成意图结束的是片段,而不是会话:完成之后改变行为、默认值或契约的后续工作需要重新发布——“同一会话”并不豁免。当你得知已声明未提交的工作已落地时,使用该意图的 ID(以及你知道的提交 SHA)调用
mark_intent_landed:除非有人声明,否则注册表会持续警告所有接触这些路径的人。每当你对进行中工作的了解可能过时时,重新检查冲突——发布时检查一次,在长时间会话中会过时。需要重新检查的时刻:在你读取和编辑之间文件发生了变化,或者编辑在你刚刚读取的文本上失败——某人的工作在你下面落地了;在编辑你本次会话未创建的共享文档或工件之前;在从另一个代理交接后恢复时;以及在接触早期
warn中命名的文件之前。最便宜的重新检查是仅使用你的意图 ID 调用update_intent(续订 TTL,返回新的overlaps);当你没有开放的意图或正在规划新工作时,使用list_intents(传递overlapsglob,加上用于语义检查的summary,或用于历史的q/since)。当在对话中做出决定时(选择了方法、拒绝了替代方案、设定了方向),在决定确定的那一刻记录它:使用
kind: "decision"调用post_intent,摘要为问题,结果在outcome中——决定了什么、拒绝了什么以及原因。一次调用;没有 touches,稍后无需完成。决定永远不会冲突,并成为可搜索的团队记忆。决定也是修正机制:已完成的结果是不可变的,因此如果后来证明是错误的,发布一个决定,引用实际成立的内容。注册表是建议性的,绝不能阻塞工作:如果其工具缺失或出错,继续工作,并告诉你的用户一次,他们可以运行
uvx getflightplan install(参见 getflightplan.com)加入此仓库的注册表。
数据
离开你机器的是协调记录:意图摘要和结果段落、glob 模式、更改的文件路径、分支名称和提交 ID——仅发送给 FlightPlan 服务。源代码内容永远不会上传。注册表知道的一切,都是作为你代理工作的副产品而得知的。
详细信息——什么永远不会离开,以及什么存储在哪里——在 docs/data-flow.md 中。漏洞报告:SECURITY.md。
许可证
Apache-2.0
Available Tools
6 toolscomplete_intentA
Close out an intent when work finishes or is abandoned. The outcome summary is required for done and is the most valuable artifact this system produces: write one paragraph covering what actually changed, anything surprising, approaches tried and rejected, and anything deliberately left in place. Gather git facts you already have at completion time: files = repo-relative paths actually changed (git diff --name-only over the work, committed or not); commits = SHAs created for this work; uncommitted = true if ANY of the work is not yet committed (untracked/unstaged/staged-only), false if all of it is. True makes other agents' collision checks warn loudly. Outside git, omit uncommitted and commits (there is no commit to wait for), but still send files. Send files: [] only when this work changed no files, committed or not; omit files when you do not know. Omit anything unknown. Any overlaps that come back carry excerpts, and overlaps_omitted counts the ones the server cut per level — use get_intent(id) for a full record.
Inputs: id (required), status (required), outcome (required), files, +2 more.
get_intentA
Fetch one intent's full record — the whole summary and outcome — by id or by a unique 8-char prefix. Overlap, context and list entries carry excerpts only, so call this when the excerpt is not enough: an overlap you have to describe to your user, or a context outcome you want to read in full before starting. Read-only; it records nothing.
Inputs: id (required).
list_intentsA
Query in-flight and recent work across the team. Three distinct uses — pick exactly one: (1) pre-planning semantic check — pass summary (and optionally overlaps globs) to get an advisory semantic overlap before you post_intent; this is the strong collision check; (2) fast glob collision check — pass overlaps alone (no summary, no q) for deterministic prefix matching; (3) context search — pass q and since (add match=any for recall if a precise query returns nothing) to search summaries and outcomes including completed work. q and overlaps are AND-combined: a descriptive q alongside overlaps filters out overlapping intents whose summaries don't contain your words — for a collision check, omit q. q matches per-word (all words must appear, any order). Each returned intent carries an alert_level when overlaps is given: warn = surface loudly to your user; fyi = quiet mention; nudge = possible duplicate spike, suggest comparing notes. Rows carry outcome_excerpt by default; pass detail="full" for whole outcomes.
Inputs: q, kind, repo, limit, +10 more.
mark_intent_landedA
Record that work an already-COMPLETED intent declared uncommitted is now in git. Call this the moment you learn it: you committed and pushed that work yourself, or you can see in the tree that the work another session left uncommitted has since landed. Until someone says so, the registry keeps warning every agent who touches those paths and keeps re-telling the same story about work that is no longer at risk — a tree it cannot see is the one thing it cannot check for itself. Pass the commit SHAs if you know them; landing without them is fine and complete, the timestamp is the correction. Idempotent, and it never rewrites the completion record — the outcome, the reported files and the original uncommitted declaration all stand.
Inputs: id (required), commits.
post_intentA
Register what you are about to work on so other developers' agents can avoid collisions. Call this before starting any non-trivial task (anything touching more than a trivial fix). Infer kind: build for work meant to land, explore/spike for throwaway investigation, decision for a resolved decision worth recording (post it the moment a debate settles: pass the resolution in outcome — what was decided, what was rejected, and why; no touches needed; it is stored complete, never collides, and needs no complete_intent). Infer touches from your plan as repo-relative glob patterns. Returns the intent id — keep it to post the outcome later. Also returns any overlapping in-flight intents — active work (alert warn/nudge/fyi) and recently-completed work that may not have landed in git yet (always fyi): overlaps are the COLLISION signal — if overlap level is warn, tell your user before proceeding; for fyi, check whether that work is already in your tree before redoing it. The response also includes context — recently-completed work relevant to THIS task: read those outcomes before you start, the surprises and dead ends in them are load-bearing (a rejected approach you might retry, a gotcha you will hit). Overlap entries carry summary_excerpt; context entries carry summary_excerpt and outcome_excerpt. overlaps_omitted counts what the server cut per alert level — a non-zero warn there means more warnings exist than are shown. Call get_intent(id) for any full record.
Inputs: repo (required), summary (required), touches (required), kind, +3 more.
update_intentA
Update an in-progress intent. Call when the work changes shape (revise summary or touches — collision checks run against these fields, so stale globs silently miss real collisions) or when work runs long (a call with just the id renews the TTL heartbeat; active intents expire after ~48h without one). Calling with just the id ALSO returns fresh overlaps — the cheap mid-session collision re-check, since a post-time check goes stale over a long session. Treat a warn here exactly like a warn at post time: tell your user before proceeding. Overlaps carry excerpts, and overlaps_omitted counts any the server cut per level — use get_intent(id) for a full record. Never use this to finish work — call complete_intent for that.
Inputs: id (required), title, branch, summary, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
The six tools have mostly clear lifecycle boundaries: post, update, complete, get, list, and mark landed. However, list_intents is overloaded with three distinct modes (pre-planning semantic check, glob collision check, context search), and collision/overlap results also surface from post_intent and update_intent, which could make tool selection less immediate despite detailed guidance.
All tool names use snake_case and a predictable verb_object pattern: list_intents, post_intent, complete_intent, get_intent, mark_intent_landed, update_intent. The lone four-word name, mark_intent_landed, is still consistent and readable.
Six tools are well-scoped for an intent registry: create, list/query, fetch, update, complete, and mark landed. Each tool earns its place without obvious redundancy or missing lifecycle operations.
The surface covers the full lifecycle for work intents: registration, search/listing, detail retrieval, mid-flight updates and TTL renewal, completion with outcome, and post-completion landing correction. No obvious CRUD or workflow gap remains for the stated domain.
Maintenance
Related MCP Connectors
Coding agents from Claude Code, Cursor and Codex claim jobs and lock files on one shared board.
Coordination for AI coding agents: declare plans, catch design conflicts early, share team memory.
Shared control plane for AI coding agents — tasks, memory, decisions, file locks. 12 tools.
Multiplayer for the coding agents your team already uses: shared tasks, decisions, skills and tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceCoordination layer for AI coding agents working on the same codebase. Adds file locks, shared project memory, and cross-machine file sync so Claude Code, Cursor, Windsurf, and other MCP agents stop overwriting each other.52Apache 2.0
- AlicenseAqualityDmaintenanceShared, versioned memory and governance control plane for AI coding agents. Compiler pipeline resolves architectural decision conflicts across Claude Code, Cursor, and custom agent fleets.36MIT
- AlicenseNot gradedqualityCmaintenanceMultiplayer coordination for AI coding agents: Claude Code, Codex CLI and Cursor share one room per repository. An agent claims a path glob before it edits and a conflicting claim is refused at claim time, so collisions are prevented rather than resolved at merge. Metadata only — source code and diffs never leave the machine.MIT
- FlicenseAqualityBmaintenanceOne shared project for your team's Claude Code, Codex, Cursor and OpenCode agents: a task board, decisions and handoffs. Everyone keeps their own plan.1352-