Usage Tracking
Rig can show when a discovered skill was used, which supported agent used it, and its recent activity. Tracking stays on your Mac and is off until you set up an integration for an agent.
How tracking works
- An agent integration observes a supported skill invocation.
- It appends the skill name, agent source, and timestamp to
~/.rig/usage.jsonl. - Rig matches that name to discovered skills and shows the event in the skill’s Activity tab.
Prompt text and skill contents are not written to the usage log.
Install an integration
Set up only the agents you use. You can also open Rig → Settings → Agents, copy the matching setup prompt, and paste it into that agent.
Claude Code
Run these commands inside Claude Code:
/plugin marketplace add builder-mafia/rig
/plugin install rig-claude-code@rig
/reload-pluginsConfirm the Rig plugin appears in /plugin list. Claude Code skill calls can
then appear in Rig Activity.
Codex — explicit tracking beta
Run these commands in a terminal:
codex plugin marketplace add builder-mafia/rig
codex plugin add rig-codex@rigStart a new Codex session, run /hooks, then review and trust Rig’s
UserPromptSubmit hook. Do not bypass the hook trust prompt.
Codex currently records only explicit mentions such as $skill-creator. It
cannot reliably detect implicit skill activation. When installed skills share
the same name, Codex does not expose the selected file path to this hook, so Rig
can attribute the event only by name.
OpenCode
Add rig-opencode to the existing plugin array in
~/.config/opencode/opencode.json or opencode.jsonc:
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["rig-opencode"]
}Preserve your other settings and plugins, then restart OpenCode. OpenCode installs npm plugins automatically at startup.
Verify tracking
- Restart or reload the agent after installation.
- Invoke a known skill. For Codex, mention it explicitly with
$skill-name. - Open Rig, choose that skill, and open Activity.
- If no event appears, inspect the last lines of
~/.rig/usage.jsonland confirm that the recordedskillNamematches the discovered skill name.
Each line is one JSON event:
{"source":"opencode","skillName":"typescript-fix-null-safety","usedAt":"2026-05-30T01:12:00.000Z"}Rig ignores empty lines and malformed events.
What Rig stores
| Field | Purpose |
|---|---|
source | Identifies the agent integration. |
skillName | Matches an event to discovered skills. |
usedAt | Records when the invocation happened as an RFC 3339 timestamp. |
Codex explicit events can also include trackingMode, sessionId, and cwd
for local attribution and diagnostics. They do not include prompt text or skill
contents.
OpenCode options
The OpenCode integration works without environment variables. Use these only when you need to customize recording.
| Name | Default | Description |
|---|---|---|
RIG_USAGE_LOG_PATH | ~/.rig/usage.jsonl | JSONL file to append events to. |
RIG_USAGE_SOURCE | opencode | Source written into each event. |
RIG_USAGE_DISABLED | unset | Set to 1 or true to stop recording. |
RIG_USAGE_LOG_PATH=./.rig/usage/rig-usage.jsonl opencode
RIG_USAGE_SOURCE=opencode-local opencode
RIG_USAGE_DISABLED=1 opencode