Skip to content

Simplify subagent delegation to hook-chain driven workflow #890

@liplus-lin-lay

Description

@liplus-lin-lay

Parent: #889

Purpose

サブエージェントへの伝達を最小化し、hook チェーン駆動で自律的にオペレーションファイルを読み込ませる。

Premise

現状(Li+github.md Subagent Delegation):

  • 伝達 = core + operations パス + issue 番号 + repo + intent
  • サブが2ファイル読み込み後に作業開始

現状(Li+agent.md Subagent_Delegation, L83-88):

  • 同じ旧仕様の伝達ルール
  • サブは core + operations を読んでから作業開始

現状(Li+claude.md post-tool-use.sh, L213):

  • on_issue パターンが gh issue assign にもマッチ
  • アサインで Li+github.md Issue_Flow を読み込む

変更後:

  • 伝達 = Li+core.md パス + issue URL +「自分をアサインして PR まで」のみ
  • サブが self-assign → hook 発火 → operations.md を読み込む(github.md ではない)
  • post-tool-use.sh で assignees API コールを on_issue ではなく on_branch 相当(operations 読み込み)に振り分け
  • Li+agent.md の Subagent_Delegation を hook チェーン駆動に更新

Constraints

  • Li+core.md は必ず渡す
  • hook 非対応環境ではフォールバックとして operations パスも渡す
  • 親がアサインする場合と、サブが self-assign する場合で hook の挙動が変わらないこと(どちらも operations 読み込み)
  • intent は不要(issue body に書いてある)

Target Files

Metadata

Metadata

Labels

ready本文が実装開始できる形まで収束している状態。ただし更新は継続可能specLi+の挙動に影響する仕様・ポリシー・定義

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions