ocmonitor
v0.1.0
Published
OpenCode session monitor CLI and TUI
Readme
ocmon
External Bun/TypeScript CLI for tracking OpenCode session state via a reporter plugin and local liveness heuristics.
Usage
bun install -g ocmon
ocmon
ocmon list
ocmon list --format jsonOpenCode Plugin
Create ~/.config/opencode/plugin/ocmon.ts:
import monitor from "ocmon/plugin/opencode-monitor.ts"
export default monitorThe plugin reports session lifecycle events by calling ocmon report .... If the binary is not on PATH, set OCMON_BIN to the executable path before starting OpenCode.
Current Focus
- Persist session lifecycle events from the OpenCode plugin
- Show current session states as table or JSON
- Use heartbeat timeout and PID heuristics to classify stale vs terminated sessions
