Harness Notes

Skill usage

Updated 2026-11-22,

On this page

Whether you can tell which skills get used: in a session, as local counts, in account reports, or as telemetry you collect yourself.

QuestionOpenCodechecked at 2.0.29
Skills used in a session

When the model loads a skill, it is a skill tool call with input { id }, emitted as session.tool.called and then session.tool.success or session.tool.failed (metadata.name, metadata.directory). When you load a skill yourself with @skill-id, it is recorded as a skill message and a durable session.skill.activated event. Plugins can follow both through ctx.tool.hook("execute.after") and ctx.event.subscribe(), and opencode session export dumps the transcript.

Local usage counts

Partly

There is no per-skill counter. opencode stats --tools shows a TOOL RELIABILITY table per tool name (calls, error rate, p50 duration), built from the local session database, and all skill loads fall under the single skill row. @skill activations are not counted there.

Account or team reports

Not supported

OpenCode 2.x has no account, team or admin report of skill usage. opencode stats is local only.

Telemetry you can collect

Partly

The V1 experimental.openTelemetry option is accepted but unsupported in 2.x. With OTEL_EXPORTER_OTLP_ENDPOINT set, OpenCode exports a Tool.execute span that carries no tool or skill name. To collect skill invocations, use a plugin on ctx.tool.hook("execute.after") (check event.tool === "skill" and event.input.id) or the server event stream (session.tool.*, session.skill.activated).

Whether a skill run succeeded

Partly

Each skill tool call ends in session.tool.success or session.tool.failed (for example Unable to load skill <id>), and plugin execute.after receives status: "completed" or "error". opencode stats --tools reports the error rate for the skill tool as a whole. That tells you whether the skill loaded, not whether the work it guided succeeded.

Notes and sources

OpenCode, 12 sources
Skills used in a session, 5
Local usage counts, 2
Account or team reports, 1
Telemetry you can collect, 5
Whether a skill run succeeded, 3