feat(cli): relay PreToolUse and UserPromptSubmit on OpenCode and Kilo, and warn about hooks it skips
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
Start with the OpenCode bridge at cli/src/contexts/tools/domain/profiles/opencode/opencode-hooks-bridge.ts and the corresponding Kilo bridge; compare their event handling with the native tool.execute.before and chat.message events described in the issue. Check how the build reports unsupported hooks and update plugins/aidd-context/skills/08-hook-generate/references/tool-paths.md. Verify the acceptance criteria with probes, including whether PreToolUse can deny a tool call.
索引モデルが issue の本文から書いたものです。
説明
Problem
The OpenCode and Kilo hooks bridge relays only SessionStart, PostToolUse and Stop (cli/src/contexts/tools/domain/profiles/{opencode,kilo}/*-hooks-bridge.ts). PreToolUse and UserPromptSubmit hooks are skipped without a warning. Both tools expose a native equivalent that fires.
Measured on 2026-11-11 with a probe plugin in a disposable folder, non-interactive:
- OpenCode 1.19.3,
opencode run:tool.execute.beforefires forwriteandbash;chat.messagefires for the prompt. - Kilo 7.7.5,
kilo run: same two hooks fire.
So a framework hook declared on PreToolUse or UserPromptSubmit silently does nothing on these two tools. This is a bridge limit, not a tool limit.
Scope
- Relay
PreToolUsethroughtool.execute.beforeandUserPromptSubmitthroughchat.message, for OpenCode and Kilo. - Report an event the bridge does not relay (a warning at build time), instead of skipping it silently.
- Update
plugins/aidd-context/skills/08-hook-generate/references/tool-paths.md, which says OpenCode is not supported.
Acceptance criteria
- A
PreToolUsescript runs before a tool call on OpenCode and Kilo. - A
UserPromptSubmitscript runs on each user prompt on OpenCode and Kilo. - Whether a
PreToolUsescript can deny a tool call (throw, or changeargs) is verified by a probe and documented. It is not verified today. - A build warns about every hook event it does not relay.
Prior art in this repo
cli/src/contexts/tools/domain/profiles/opencode/opencode-hooks-bridge.ts(three relayed events).- #1191 (Stop continuation lost under
opencode run), #978 (verified tool compatibility), #676 (OpenCode through its plugin API).
Out of scope
The Stop continuation under opencode run (#1191). Adding other events (SubagentStop, SessionEnd).
- 主要言語
- TypeScript
- スター
- 481
- フォーク
- 45
- 平均マージ
- 1日 13時間
- マージ済み PR(30日)
- 91
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ai-driven-dev/framework のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
ai-driven-dev/framework#1311 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
ai-driven-dev/framework#1244 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ai-driven-dev/framework#1197 ·
メンテナーはふだん 1 日以内に返信
-
refactor(aidd-context): apply the new skill template to learn対応中かも @blafourcade が 3 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ai-driven-dev/framework#1186 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
ai-driven-dev/framework#1163 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
ai-driven-dev/framework の issue をすべて見る
似ている issue
-
bug impact:low Team: SecuritySolution Team:Defend Workflows v9.6.0
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
elastic/kibana#306401 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
agentes-chat/agentes-chat#927 ·
メンテナーはふだん 1 日以内に返信
-
comp/desktop P2 type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
NousResearch/hermes-agent#157702 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
e2e-failure ready-to-code
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
redhat-developer/rhdh-plugin-export-overlays#4794 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信