coordination-worktree

coordination-worktree is a skill for Claude Code, Codex from 0fuk/OpenACCP. It costs 141 tokens per session (1,871 once invoked), scanned A, original, MIT.

A coordination method for multiple coding sessions or agents. It uses shared files as a message inbox and gives each work line its own Git worktree, which is a separate working directory connected to the same repository.

In plain words
What is it for?
Sending progress, instructions, and handback records between agents, and isolating parallel fixes before they are merged.
Why use it?
It provides a recorded way to exchange updates without relying on live chat, while keeping parallel changes from overwriting one another.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Sending progress, instructions, and handback records between agents, and isolating parallel fixes before they are merged.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/0fuk/openaccp/coordination-worktree
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add 0fuk/OpenACCP --skill coordination-worktree
Clone the repo
git clone --depth 1 https://github.com/0fuk/OpenACCP

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for coordination-worktree

README.md
[![agentmods](https://agentmods.dev/badge/skills/0fuk/openaccp/coordination-worktree/github.svg)](https://agentmods.dev/skills/0fuk/openaccp/coordination-worktree)
Your own site
<a href="https://agentmods.dev/skills/0fuk/openaccp/coordination-worktree"><img src="https://agentmods.dev/badge/skills/0fuk/openaccp/coordination-worktree/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for coordination-worktree

Your own site · 80×15
<a href="https://agentmods.dev/skills/0fuk/openaccp/coordination-worktree"><img src="https://agentmods.dev/badge/skills/0fuk/openaccp/coordination-worktree.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 141 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,871 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00141 $0.01871
Opus 5.5 $0.00056 $0.00748
Sonnet 5.5 $0.00028 $0.00374
Haiku 4.5 $0.00014 $0.00187

Measured 2d ago against content hash 6f6a5755ddb7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

coordination-worktree scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

field/skills/coordination-worktree/SKILL.md · 48 lines

How it starts

The opening of the file, as written. The whole thing — 48 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/coordination-worktree — 文件信箱通讯层 + worktree 工作模式

存在理由:多会话协作里,平台的会话间消息要么需人工点确认、要么在空闲期送不到;一个共享目录+一套命名约定,是唯一实证在无人值守下也能可靠送达、可审计、可回放的通道。worktree 则让每条线在同一仓里互不踩脚。项目具体路径读项目根 PROJECT-PROFILE.md。

一、协调目录=通讯层

  1. 一个项目一个协调目录(如 <项目>/coordination/),扁平存放,历史件按月归档到 _archive/YYYYMM/(Monitor 只扫顶层)。落盘即送达,收件=对方 Monitor 叫醒后消费;不发平台消息、不点确认框。
  2. 文件名即路由:致<收件角色>-<发件角色>-<件型>-<主题>-<YYYYMMDD-HHMM>.md(定向件);<角色>-<件型>-<主题>-<HHMM>.md(该角色的产出件)。角色 token 必须出现在文件名里,各角色的 Monitor pattern 按角色 token 收件并从真实文件名回测(见 /moniter-on)。
  3. 固定的文件类型清单:执行令/一行令(派活)·回执(收到并将做什么)·进度(30 分钟一落或转折时)·交回(完工,六节:目标与出处/改动清单/红绿验证(先复现出错再验证修好)/测试证据/规范或文档摘要/自检与遗留)·探活(对端疑死)·注记(主动提醒,不要求回复)·SELFTEST(通道实测(发一个真事件看它能否回到会话),阅后即焚)·心跳/状态(脱离进程写,不进人读流)。
  4. 时刻:文件名与内文时刻先 date 实取再落笔;估写=违规。
  5. 会话级活性判据:判对端活只认它的进度/回执/交回件 mtime;心跳/TICK/标记文件 由脱离进程写,只证进程活。停更超 40 分钟→探活件;探活 30 分钟无回执→备援。
  6. 收货门:交回件不是收货;主编排独立核对(数字回原文/关键宣称回源库面或真机/抽样复跑)后才收货;执行体降级时加码核对。引用他方数字必回原件逐字对;收件读全文,禁 tail 抽读后宣称「未落」;令件前提当刻 ls 确认。
  7. 台账:决策/事件台账是 SSOT(owner 原话逐字,事件按时刻前插);文件信箱件是过程,台账是结论。checkpoint/handoff 只记路径。
  8. 禁入文件信箱:凭据、密钥、明文口令(只写位置指针);签名尾注类平台默认物按项目铁律。

二、worktree 工作模式

  1. 一线一树:每条修复/功能线从钉死的基座 commit git worktree add --detach <目录>/<线名> <sha> 拉出;工单写明基座 sha,开工先 rev-parse HEAD 亲验。
  2. 改动面白名单+禁区写进工单;禁碰主线、发版树与他人树;合并权归主编排(cherry-pick/ff/tag 由编排做,线只 commit 不 push)。
  3. 禁 git stash:整仓所有 worktree 共享一个 stash 栈,并行线 pop 会互相弹错树(实证)。要证明测试会抓错,只用 git show HEAD:<path> 导出对比、单文件 checkout、或「改坏→红→复原→绿」。
  4. 写前自核:git status --short,树上出现陌生 modified 文件=并发污染信号,停手上报,禁顺手 checkout 清掉(可能是别人唯一副本)。主编排解缠序:先双树全量 diff 快照,再 git apply --check 原子预检后搬运。
  5. 编号预分配:迁移号/工单号/端口由编排在派线时分配,防撞号;弃用的号留空不补。
  6. 跑批期树冻结:全量测试在某树上跑时禁改该树;并行封版另起 worktree 或等 DONE 标记文件。
  7. 清理:线并入且树净后 git worktree remove;发版 tag 落成后统一清;快照 patch 留 scratchpad 作证。
  8. 期望 commit 清单:合流后编排开列「线名→最终 SHA→来源注记」,构建方按清单核 git log 集合相等+文件面同族——专治 stash 互踩后「tag 装错东西」。

三、角色速记

  • 主编排:唯一汇合点与裁决者;发令、收货、合流、台账。
  • 独立会话线(部署/复核/顾问):有自己的 Monitor 与心跳,靠文件信箱通讯,会话级活性按 §一.5 判。
  • 子代理:由编排派出,交回件落文件信箱;换代后无法续聊,只能按交回件收货。

Read the full file on GitHub · 48 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 48 lines · 141 tokens per session scan A 6f6a5755ddb7

Subscribe to this mod's changes

coordination-worktree is a skill published in the GitHub repository 0fuk/OpenACCP (2 stars, last pushed 2d ago), licensed MIT. It adds 141 tokens to every session and 1,871 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-14.