@agent-profiler/opencode-telemetry-plugin
v1.0.0
Published
OpenCode plugin that emits telemetry hooks to agent-profiler.
Maintainers
Readme
OpenCode telemetry plugin
@agent-profiler/opencode-telemetry-plugin captures OpenCode plugin events and
forwards normalized payloads into Agent Profiler with:
agent-profiler hook opencode <event-name>
Captured lifecycle events
session.createdsession.idlemessage.updated.usermessage.updated.assistanttool.execute.beforetool.execute.aftertool.execute.failurefile.editedcommand.executed
Example opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@agent-profiler/opencode-telemetry-plugin"]
}The plugin is intentionally minimal: it emits stable telemetry events and version metadata so adapter mappings can be version-pinned over time.
Versioning and release
This package is not tied to agent-profiler CLI releases. The plugin changes
infrequently, so it uses its own semver and is published manually when needed.
# from the repository root
npm pack --workspace=@agent-profiler/opencode-telemetry-plugin --dry-run
npm publish --workspace=@agent-profiler/opencode-telemetry-plugin --access publicBump version in package.json (patch/minor/major) before publishing. Requires
npm access to the @agent-profiler scope.
