Repository navigation
refactor: 補助系 (codebase-investigator) を LOOP_PROTOCOL 用に適合 (phase C-5) - #22
Merged
Merged
Conversation
設計記述・責務境界の長い説明を agent ファイルから削除(PR #21 の方針: 設計は docs/dev/agent-skill-boundaries.md に集約、agent / skill は作業手順に専念)。 スコープ: - .claude/agents/codebase-investigator.md (93 → 64 行) 主な変更: - 「責務境界: ローカルコード調査専念」セクション削除(設計記述) - 「役割と責務」「制約」の冗長記述削除(description と disallowedTools で表現) - web-researcher への委任フロー → gemini-cli-headless-delegation 経由 (呼び出し元の責務として簡素化) - 入力契約をコンパクトに web-researcher は保留方針 (PR #12) のため本 PR では触らない。 検証: pnpm typecheck / lint / test (5) / build すべて通過 これで Phase C (流用 skill / agent の LOOP_PROTOCOL 適合) が完了: - C-1: Issue 管理系 (PR #17 マージ済み) - C-2: 実装系 (PR #18 マージ済み) - C-3: レビュー系 (PR #19 マージ済み) - C-4a: open-pr + post-merge-cleanup (PR #20 マージ済み) - C-4b: impl-review-loop + issue-refinement-loop (PR #21 マージ済み) - C-5: 補助系 (本 PR) 次は Phase D (統合検証)。 Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
squne121
commented
May 19, 2026
…dless-delegation 経由で委譲 PR #22 のレビュー指摘 r3266005474 を反映する。 > .claude/agents/codebase-investigator.md も gemini-cli-headless-delegation で必ず作業を委譲するようにして。 実調査 (Read / Grep / Glob による大規模スキャン) はすべて gemini-cli-headless-delegation skill 経由で Gemini に委譲する設計に変更。本 SubAgent 自身はリクエスト構築 + 委譲 + 結果整形に専念する。 主な変更: - tools から Grep / Glob を削除 (disallowedTools に移動して技術的にもブロック) - 残った tools: Bash (wrapper 起動) + Read (結果読み取り) - 振る舞いセクションを「実調査は Gemini に委譲」と明示 - 入力モードを 2 種類定義し、それぞれの delegation_request_v1 JSON 雛形を例示 - ローカル調査モード: tool_profile=local_asset_research, role=code_research - gh 調査モード: tool_profile=github_research, role=github_research, gh_commands で gh issue list を委譲実行 - 報告形式に「委譲メタ」(wrapper exit / model / request path) を追加 - 委譲不可時 (wrapper ok: false、preflight 失敗) は fail-close (自力代替調査しない) 検証: pnpm typecheck / lint / test (5) / build すべて通過 Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Owner
Author
|
レビュー指摘 r3266005474 を反映して push しました(
実調査(Read / Grep / Glob による大規模スキャン)はすべて 主な変更
行数: 64 → 123(元の 93 行から比べると +30 行だが、機能が「Gemini 委譲」に変わったため) 検証: 追加修正があればお知らせください。 |
4 tasks
This was referenced Jul 13, 2026
実装: preflight.run に anchor comment 対応の sibling exact profile (preflight.run.with_anchor) を追加する
#1498
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PR #21 で確立した方針(設計記述・責務境界の長い説明は agent / skill ファイルに書かない、
docs/dev/agent-skill-boundaries.mdに集約)に従い、補助系codebase-investigatoragent を簡素化しました。.claude/agents/codebase-investigator.md差分: +20 / -49 行
主な変更
docs/dev/agent-skill-boundaries.mdに集約済み)disallowedToolsで表現済み)web-researcherへの委任フロー →gemini-cli-headless-delegation経由(呼び出し元の責務として簡素化)web-researcherは保留方針(PR #12)のため本 PR では触りません。Phase C 完了
本 PR で Phase C(流用 skill / agent の LOOP_PROTOCOL 適合)が完了 します:
検証
pnpm typecheck✅pnpm lint✅pnpm test✅ (4 files / 5 tests)pnpm build✅🤖 Generated with Claude Code