CommandCodeAI / CommandCodeAI/command-code
Feature request: expose hook/plugin system for third-party monitoring tools
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 4k
- Forks
- 350
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files, tests, or entry points. Start by locating where Command Code produces session, activity, permission, and usage data, then review how a hook, plugin, or readable event stream could expose it. Done means a documented integration path lets a third-party monitor consume the required events.
Written by the indexing model from the issue text.
Assessment
- Domain
- cli, developer-experience, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100