Repository navigation
feat(skills): add a tool-neutral delegation skill with T3 Code operations - #268
Conversation
…ions Carry over herdr-delegation's workflow into a delegation skill whose body names transport operations (Start, Prompt, Wait, Read, Close, Clean up) instead of tool commands, so a transport is swapped by adding or replacing a file under references/. references/t3.md maps the operations to the t3 thread CLI and states the guard contract and that Antigravity is never a recipient. Refs #264 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Prefer T3 Code threads for lanes and keep Herdr as the fallback until its removal, moving the Herdr-only commands and rules into their own section. Refs #264 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Review summaryRead-only review of the new Findings, posted inline:
Test coverage: the T3 commands are inline code rather than bash blocks, so 🤖 Generated with Claude Code |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 079cda9314
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…en provider Select T3 only when `t3 thread list` succeeds as a sandboxed call, which the installed hooks allow only together with the T3 guard; pass the chosen recipient's provider to Start; read the thread before waiting again after exit 2 so Wait messages do not pile up; and state that the 0.1.10 CLI cannot set the effort. Refs #264 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@codex review |
Review summaryThis PR only changes skill documentation, so I found no security issues or code bugs. I left two P2 comments inline.
I checked the new links ( |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c70df2bcd8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Read the thread before waiting again when the harness stops a background wait, and never resend the brief; add a Start form for a plan review that creates no worktree or branch; and hand implementation lanes to T3 only once the installed cleanup_worktrees.py covers ~/.t3/worktrees, falling back to the next transport until then. Refs #264 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@codex review |
Review summaryThis PR only changes docs and skill text, and I found no P0 or P1 problems. The links and anchors I checked resolve:
I didn't run the code, and I haven't checked the T3 CLI behaviour ( 🤖 Generated with Claude Code |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 73db7b4936
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Every t3 thread send adds a turn to the lane, so Wait now polls `t3 thread show --json` one call at a time, with a background sleep in between, and decides from thread.status, activeRunId, latestRunId, and pendingRequestCount as T3 Code 0.1.10 defines them. Name the model slugs from T3's model manifest, and detect cleanup coverage from the LANE_WORKTREES constant so a comment cannot satisfy the check. Refs #264 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@codex review |
Review summaryThis PR is documentation only: the new Finding (inline, P2): the T3 Wait procedure can return on stale state after a Prompt. It only checks Notes (no action requested):
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b330a65d4f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Word Herdr as the deprecated transport used only when T3 Code is unavailable, for example before the T3 guard and cleanup are installed, and mark herdr-delegation deprecated in its description and first line so it no longer triggers by default. Its body is unchanged. Refs #264 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@codex review |
|
Review summary: this PR changes only Skill docs, so there is no runtime code to break. I found one issue and posted it inline.
Not re-raised because the PR description already records them as accepted limits: the Wait procedure can read a stale turn state after Prompt, and I didn't run the tests. I only read the diff. 🤖 Generated with Claude Code |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8559e12b80
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…navailable Herdr is a deprecated tool used only on the user's explicit request, not a fallback transport. When T3 Code is unavailable, the parent starts no lane and reports the reason. Refs #264 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@codex review |
Review summaryThis PR only changes Markdown skill files, so there is no executable code or test change to review. I checked the new No P0, P1 or P2 findings. What matches the code:
P3
The wording "before the T3 guard and cleanup are installed (#265, #266)" is conditional. In this tree both are already present, so the PR is accurate today. The text will go stale once those issues are closed, so consider rewording it then. I only read the files. I didn't run any tests or the T3 CLI, and I couldn't verify the status values ( 🤖 Generated with Claude Code |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2da4d8d3a2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
🤖 I have created a release *beep* *boop* --- ## [0.4.0](v0.3.1...v0.4.0) (2026-11-21) ### Features * **hooks:** add the Antigravity hook adapter ([#263](#263)) ([22b5980](22b5980)) * **hooks:** guard t3 thread so lanes start only on Claude or Codex ([#265](#265)) ([aa0de7a](aa0de7a)) * **hooks:** sweep merged T3 Code lane worktrees like Herdr ones ([#266](#266)) ([8c730aa](8c730aa)) * **skills:** add a tool-neutral delegation skill with T3 Code operations ([#268](#268)) ([dc2c3cc](dc2c3cc)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: furedea-release[bot] <353651101+furedea-release[bot]@users.noreply.github.com>
… failures (#272) ## 概要 #268 のレビュー P2 と,T3 での最初の実 Start で見つかった失敗を,docs に反映した(文書のみ). 1. `branches.md` の「Choose the workspace in this order」で,T3 を使う手順(旧 3)が,利用者による transport の明示(旧 4 の中でのみ言及)より前にあった.T3 が使えるときに利用者が Herdr を明示しても T3 に回ってしまうため,明示の指定を T3 の手順より前に出した. 2. `t3 thread start` が `threadId` と `runId` を返したあと `status: failed`,`worktreePath: null` になった.CLI は原因を表示せず,原因は `~/.t3/userdata/logs/server.trace.ndjson` の `branch_already_exists`(ブランチが別の worktree で checkout 済み)にだけあった.Start 前の確認と,失敗時の原因の探し方を `t3.md` に書いた. Refs #264 ## 変更前後 | 順 | 変更前 | 変更後 | | -- | ----------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | | 1 | 既に task worktree にいる | 同じ | | 2 | 利用者が現在の checkout を明示 | 同じ | | 3 | T3 が使えれば T3 | 利用者が Herdr を明示すれば,T3 が使えても Herdr | | 4 | T3 が使えなければ lane を始めない.Herdr は利用者の明示のみ | それ以外で T3 が使えれば T3(既定) | | 5 | 対象ブランチが別の worktree にある | T3 が使えなければ lane を始めず理由を報告.transport を勝手に切り替えず,使えないことを理由に Herdr も使わない | | 6 | - | 対象ブランチが別の worktree にある(旧 5) | ## 変更 - `agents/skills/development-cycle/references/branches.md`:上の表のとおり.step 番号を参照する箇所は他になく,リンクのアンカー(`#herdr-on-explicit-request`,`#prerequisites`)は変えていない. - `agents/skills/delegation/references/t3.md`:Start の前に,`<branch>` がローカルにも他の worktree にもないことを `git branch --list <branch>` と `git worktree list` で確認する(あれば T3 が `branch_already_exists` で run を失敗させる).Wait の `failed` などの判断に,CLI は原因を表示しないので,報告の前に `~/.t3/userdata/logs/server.trace.ndjson` をスレッド id か run id で探す,と追記した. - `docs/DESIGN.md`・`docs/DESIGN_ja.md`・ADR-0028:新しい順序と矛盾する文はないため変更しない. ## 確認 - `agent-harness install` と `verify`:エラーなし - `uv run pytest`:6495 passed,2 skipped,1 failed.失敗は `tests/hooks/test_model_rules_process.py::test_only_the_op_process_receives_the_token_and_only_allowlisted_variables`(sandbox の環境変数 `LC_CTYPE` が余分に見える)で,docs のみの変更とは無関係 - `git diff --check`,lefthook(shfmt,ls-lint,shellcheck,commitlint):問題なし ## Limits Wait 手順の他の未決事項(`send` 直後の古い読み取り,background タスク,`--messages 1`)は範囲外で,この trial の後に親が決める. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: furedea <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]>
概要
herdr-delegationの手順を引き継ぎ,道具に依存しないdelegationSkill を作った.本体は操作名(Start・Prompt・Wait・Read・Close・Clean up)だけを使い,t3 threadの具体的な操作はreferences/t3.mdに置く.T3 Code を既定の transport とし,Herdr は fallback ではなく,利用者が明示したときだけ使う非推奨の道具にした.T3 が使えないとき(たとえば #265・#266 が入る前)は lane を始めず,理由を利用者に報告する.transport を勝手に切り替えない.herdr-delegationは description と先頭の 1 行で,利用者が明示したときだけ使うと示した(本文は変えていない).Refs #264(計画:#264 (comment) の
delegskilllane)flowchart LR D["development-cycle<br/>branches.md"] -- "T3 があれば" --> S["delegation/SKILL.md<br/>(操作名だけ)"] D -- "T3 がなければ" --> X["lane を始めず報告"] U["利用者が Herdr を明示"] -.-> H["herdr-delegation(非推奨)"] S --> T["references/t3.md<br/>t3 thread の操作・guard の契約"] S -. "Herdr 削除時に移す先" .-> R["references/herdr.md"]変更前後
herdr-delegation(herdrの操作が本文に)delegation(本文は道具に依存しない).herdr-delegationはそのままreferences/<transport>.md.reference のない道具はdevelopment-cycleが示す Skillbranches.md## Herdr on Explicit Request節に分けた(herdrのコマンドの文面は変えていない)変更
agents/skills/delegation/SKILL.md(新規):受け手の選び方(Codex のコマンドの規則を含む),brief,レビューの割り当て,実装の割り当て,待機と照合,後片付けをherdr-delegationから引き継いだ.道具の固有の記述は操作の表(Start・Prompt・Wait・Read・Close・Clean up)に置き換えた.道具の選び方は「利用者の指定,なければdevelopment-cycleの Branches and worktrees」,reference は「references/の道具名のファイル,なければdevelopment-cycleが示す Skill」と書いたので,Herdr の操作を後でreferences/herdr.mdに移してもSKILL.mdは変えなくてよい.agents/skills/delegation/references/t3.md(新規):前提(t3 thread list,1 回の Bash にt3 thread1 つ,sandbox のEPERM),受け手(claudeAgent・codex.Antigravity は受け手にしない,[Question]: Is usingagy acpfrom a non-editor ACP client permitted under the Additional Terms? google-antigravity/antigravity-cli#1493),guard の契約(feat(hooks): guard t3 thread so lanes start only on Claude or Codex #265 の挙動を契約として記述),操作(Start・Wait・Prompt・Read・Close・Clean up と--waitの終了コード 0・1・2).agents/skills/development-cycle/SKILL.md:委譲先をdelegationにし,Herdr は利用者が明示したときだけ使う非推奨の道具としてherdr-delegationを残した.agents/skills/development-cycle/references/branches.md:上の表のとおり.T3 の操作で選んだ形と理由
--waitなしの--jsonを前景で実行:feat(hooks): guard t3 thread so lanes start only on Claude or Codex #265 の guard はstart --jsonの stdout のthreadIdを PostToolUse で記録する.Claude は終了コードが 0 でない Bash に PostToolUse を出さないので,start --wait --jsonが 1・2 で終わると記録されず,以後のsendが確認になる(feat(hooks): guard t3 thread so lanes start only on Claude or Codex #265 の申し送り).t3 thread show --jsonの polling:sendは lane に turn を足すので待機に使わない.show --jsonを 1 回ずつ独立した呼び出しで実行し,thread.status・activeRunId・latestRunId・pendingRequestCountで判断する.間はt3を含まない background のsleep 300.フィールドと値は T3 0.1.10 のpackages/contracts/src/orchestratorMcp.ts(OrchestratorMcpThreadDetail)とorchestrationV2.ts(OrchestrationV2RunStatus),apps/server/src/cli/thread.ts(threadShowCommand)で確認した.t3を loop や Monitor に入れると 1 つのt3 threadコマンドでなくなり sandbox の中で失敗するので使わない.pendingRequestCount> 0):人が T3 の画面で答え,親は答えない.親はどの lane が待っているかを伝え,polling を続ける.claude-sonnet-5-5(claudeAgent),gpt-6.1-sol(codex).T3 0.1.10 のapps/server/src/provider/model-manifest.jsonで 2026-11-21 に確認.CLI に model を一覧するコマンドはない.cleanup_worktrees.pyが~/.t3/worktreesを Herdr と同じ条件で消す,と契約として書いた(実装はt3cleanuplane).テスト
uv run --frozen pytest -q:6328 passed,2 skipped(レビュー修正後にtests/test_workflow_skill_layout.py tests/skillsを再実行:67 passed)uv run --frozen pytest -q -m integration tests/test_workflow_skill_layout.py:4 passed(Claude と Codex の両方でdelegationの name と description が描画される)agent-harness generate-skills --provider claude|codex:両方にdelegation/SKILL.mdとdelegation/references/t3.mdが出るagent-harness install→agent-harness verify:成功..claude/skills/delegationが入るdprint check(変更した 4 ファイル),pre-commit(ls-lint ほか),commitlint:成功レビューへの対応
t3 thread listが通る」にした(c70df2bc).claudeAgent固定(P2):--provider <provider>にし,選んだ受け手に合わせると書いた.branches.mdの規則を「設定できるときは medium」にし,t3.mdに 0.1.10 の制限を書いた.cleanup_worktrees.pyが~/.t3/worktreesを扱うときだけにし,それまでは実装の lane を始めず報告する(4 回目の指示で Herdr への切り替えをやめた).--worktreeと--branchを付けない形を足した.sendが turn を積む(P2,3 回目):待機をt3 thread show --jsonの polling に作り直した(b330a65d).grep -F .t3/worktreesがコメントにも一致する(P3,3 回目):^LANE_WORKTREES =の定数の行に一致する検査にした.t3.mdと食い違う,provider instance を選ばない(P2,5 回目,2 件):P1 だけを直す回なので変えず,理由を返して resolve し,Limits に記録した.activeRunId・latestRunIdの動きを確かめてから別の PR で直す.計画との差
agents/skills/のディレクトリを自動で拾うので,agents/skill_rendering.jsonや Nix の変更は要らなかった.範囲・前提・限界
t3 thread listが sandbox の中で通るとき(guard と同時に入るexcludedCommandsのt3 thread *が要る)だけなので,先に入っても T3 は選ばれず,lane を始めずに報告する.実装の lane は,インストール済みのcleanup_worktrees.pyが~/.t3/worktreesを扱うまで(feat(hooks): sweep merged T3 Code lane worktrees like Herdr ones #266)T3 に渡さないので,cleanup の順序にも依存しない.references/t3.mdのt3 threadのコマンドは fenced の bash block ではなく inline code にした.tests/skills/test_skill_commands.pyは skill の bash block を hook で判定し,guard が入るまでt3 threadは未登録になるため.期待値ファイルはこの lane の範囲外.herdr-delegationを指しているもの(報告のみ,未変更):docs/DESIGN.md,docs/DESIGN_ja.md(t3adrlane).docs/adr/0023_*・0024_*は過去の決定の記録なので変えない.--worktree origin/<base>のような remote-tracking ref を T3 が受けるか(help は「branch, tag, or commit」).thread が run のない状態でstatusがidleになるか直前の run の状態になるかは実機で見ていない(activeRunIdがnullを終了の条件にした).インストール済みの 0.1.10 の CLI に effort を指定する--optionはない.references/t3.mdの Guard Contract を守る hook は feat(hooks): guard t3 thread so lanes start only on Claude or Codex #265 で入り,この PR には含まれない.T3 を選ぶ条件(sandbox の中でt3 thread listが通る)は feat(hooks): guard t3 thread so lanes start only on Claude or Codex #265 のexcludedCommandsがないと満たされないので,それまで T3 は選ばれず,lane を始めずに報告する.Antigravity を受け手にしない規則の強制も feat(hooks): guard t3 thread so lanes start only on Claude or Codex #265 の guard による.showが前の turn の状態を返す場合と,background の作業の後に起きる run を,今の待機は区別しない(実機確認に回した,上記).branches.mdの手順 3 は計画レビューにも cleanup の条件をかけるので,feat(hooks): sweep merged T3 Code lane worktrees like Herdr ones #266 が入るまで計画レビューも始めずに報告する(t3.mdは計画レビューに cleanup の条件をかけない).条件の検査は feat(hooks): sweep merged T3 Code lane worktrees like Herdr ones #266 の定数LANE_WORKTREES(その diff で定義を確認済み)に依存するので,feat(hooks): sweep merged T3 Code lane worktrees like Herdr ones #266 はこの名前を保つ必要がある.--providerはclaudeAgent・codexの既定の instance だけを使う(feat(hooks): guard t3 thread so lanes start only on Claude or Codex #265 の guard の方針).それらが無効な環境では Start が失敗し,利用者に報告する.sleep 300)は固定で,lane の終了から最大 5 分遅れて気づく.branches.mdの手順は T3 が使えるかを先に見るので,利用者が Herdr を明示しても,その手順だけを読むと T3 が選ばれる(P2,最終回).delegation/SKILL.mdは明示された transport を使うと書いているので,そちらに従う.手順の並びは後の PR で直す.--messages 1では,最新のメッセージが assistant の返信でないとき返信が出力に入らない(P3,最終回).待機の手順と同じく,T3 の実機での確認に回す.herdr-delegationの削除(非推奨にしただけで動作は残す).sendは自分が起動した thread だけ,を Skill に書き,強制は guard(feat(hooks): guard t3 thread so lanes start only on Claude or Codex #265)が行う.🤖 Generated with Claude Code