CommonRig docsOpen the app

Docs / Get started / The plugin and capture

The plugin and capture

Optional. It sends your prompts as you type them, masked on your machine first, so nothing depends on the agent remembering.

Install and sign in

Claude Code: add the public marketplace
/plugin marketplace add commonrig/commonrig-plugin
Claude Code: install the plugin
claude plugin install commonrig@commonrig
  • It asks for nothing: its tools connect to your own address for agents, the one Connect your agent gives, so one sign-in reaches every workspace you tick. An install from before 0.22.0 keeps the workspace address it was given, ending in /w/<name>/mcp, and that still works. Use the plugin in place of the two Claude Code lines under Connect your agent, not as well. Node 20 or later is needed.
  • Each release is signed. Before any of its own code runs, the plugin checks its files against the release and its signature, and a copy that fails sends nothing and says why. Nothing updates by itself.
  • The tools then show as needing authentication. In a terminal run claude, type /mcp, pick plugin:commonrig:commonrig and choose Authenticate: your browser opens and you approve. Start a new session if the tools do not appear.
  • The Claude desktop app cannot sign the plugin in from its own Authenticate button: it says the connector points at a different server address, as the plugin's address is filled in from its own settings. Sign in from /mcp in Claude Code in a terminal, as above, instead.
In Claude Code: fetch the newest release, then update and restart Claude Code
/plugin marketplace update commonrig
In Claude Code: update to the newest release
/plugin update commonrig
In Claude Code: sign this machine in to one workspace with a short code
/commonrig:connect https://<host>/w/<name>/mcp
  • Capture has a sign-in of its own, separate from your agent's: it can send and cannot read your work. It signs in to one workspace, so give that workspace's own address, from the connect dialog's Claude Code plugin tab; a machine already signed in, or an older install set to a workspace address, needs none. It shows under Agents as a device, revoked in one click.
  • It prints a code: type it on any browser where you are signed in, over SSH too. See connect a machine.

Sign-ins on one machine

Each job a machine does for you has a sign-in of its own, holding one narrow scope and nothing else. One code signs in all the ones you tick at once (connect a machine). Each shows under Agents, Connections, revoked in one click.

Sign-inCommandWhat it can do
Capture/commonrig:connectSend your prompts and replies. It reads nothing
The guard/commonrig-guard:connectRead the workspace's rules
Programs raising work/commonrig:raise connectRaise a bug, finding or task. It reads nothing
A runner/commonrig:runner connectWork only what you delegate to it

Your agent's own sign-in is apart from all of these. See programs raise work and a runner.

What it sends, and what it never does

SentNever sent
Your prompts, the messages you type while the agent works, and the final reply, masked, each up to 32,000 charactersFile contents, tool output, full paths
Session id, model, folder name, a hash of the git remoteYour agent's own sign-in tokens
Token counts and working minutes per session, counted on your machineAny other line of the session log

For agents prompt_log prompt_check prompt_clean quota_report artifact_check capture_route: prompt_log hands over prompts and replies, prompt_check counts a turn's unplaced messages, prompt_clean clears rows that hold only harness notices, quota_report posts quota numbers, artifact_check is the retire job's check and, with sweep_hosts, the helper's own on disk sweep, and capture_route reads where your prompts file (your folder rules, each workspace's words, and the workspaces your capture reach ticks), matched on your machine. All take the capture scope. Applies only as the capture helper, or when start says to log prompts yourself.

Commands

CommandWhat it does
/commonrig:pauseHolds capture on this machine. --repo for one repo. /commonrig:resume lifts it
/commonrig:never-send add <word>A word that never leaves the machine: the prompt is held back, or the word masked
/commonrig:names add <name>A private name, such as a client or codename, that stops a request being filed from your words
/commonrig:put <file>Sends one file to an upload link, for a report picture
/commonrig:statusShows state and counts
/commonrig:raiseSigns this machine in for raising work, or raises one now
/commonrig:runnerSigns this machine in as your runner, or polls for delegated work
/commonrig:quotaSends this machine's quota numbers to your quota page now
/commonrig:disconnectSigns capture out here

Capture for Codex

Codex has one hooks file for every folder, so the helper has a Codex mode that only acts in the repos you name. Point it at the plugin's data folder and one sign-in, one never-send list and one pause cover both agents.

~/.codex/hooks.json: the command for SessionStart, UserPromptSubmit and Stop
node <plugin folder>/helper/helper.mjs hook --codex --only <repo folder> --data <plugin data folder>

Checked against the code at e28af69c. Site built from f04f4af1.