CommandCodeAI / CommandCodeAI/command-code
Feature request: expose hook/plugin system for third-party monitoring tools
まだ誰も着手していません。
- 主要言語
- 言語のデータがありません
- スター
- 4k
- フォーク
- 350
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
The ask
Add a hook or plugin system so third-party apps like AgentPeek can monitor Command Code sessions. AgentPeek currently supports 25 coding agents (Claude Code, Codex, Cursor, OpenCode, etc.) but cannot integrate with Command Code because there is no hook or plugin API to tap into.
What other agents provide
- Claude Code — hook events surfaced through
~/.claude/settings.json. Hooks fire for tool calls, permission prompts, sub-agents, etc. - OpenCode — a plugin system at
~/.config/opencode/plugins/, where AgentPeek drops a JS file to receive session events. - Others — at minimum, structured session/transcript/usage data stored on disk in a readable format (JSON, JSONL, SQLite) that tools can tail.
What Command Code would need to expose
At minimum:
- Session lifecycle events — session start/end, project path, model, state (thinking, executing, waiting, idle)
- Activity events — tool calls, files touched, diffs, commands run
- Permission prompts — the command/file/diff being proposed, so tools can surface them in their UI
- Usage data — token counts, cost, rate-limit windows (readable from disk or an events stream)
The ideal path is a hook system similar to Claude Code, or a plugin directory like OpenCode. Even just documenting where session data lives on disk would be a good first step.
Use case
Tools like AgentPeek let you monitor all your coding agents from the Mac notch/menu bar — answer permission prompts without finding the terminal, track usage across agents, view session transcripts, etc. Command Code users would benefit from the same visibility.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Issue ではファイル、テスト、エントリポイントが指定されていません。まず、Command Code がセッション、アクティビティ、権限、使用状況のデータを生成する場所を特定し、次に hook、plugin、または読み取り可能なイベントストリームによってそれらを公開できる方法を確認してください。文書化された統合経路によって、サードパーティ製モニターが必要なイベントを利用できるようになれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 領域
- cli, developer-experience, tooling
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100