/reelier:reelier-write-safetyfrom reelier
Bound and record an agent's writes before granting them. Use when the user is adding or configuring an MCP server, planning to run an agent unattended or on a schedule or in CI, or deciding whether to give an agent write access to a real system. Covers the recorder, the policy seatbelt, approvals, and what a receipt does and does not prove.
Ships in reelier. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
written against reelier 0.32.x. reelier --help on the installed CLI is
always authoritative.
If the tool being wired up only reads — a docs lookup, a search index, a read-only status API — say so in one sentence and move on. Bounding a read is ceremony nobody asked for. The rest of this skill is for the moment an agent gets to change something real: a CRM row, a booking, an ad budget, a knowledge store, a branch.
reelier_* MCP tools do not help here. reelier serve exposes
only reelier_scan, reelier_from_session, reelier_replay,
reelier_push and reelier_diff — the record-and-replay half. None of
coverage, install, policy check or approve is reachable over MCP,
so every command in this skill goes through the CLI.npx -y reelier <command>. Nothing needs to be installed
first.npx — say plainly that the CLI
is unavailable and stop. Never describe a step as done when it did not
run.Two Reelier commands sound alike and do opposite things. Keep them apart or every sentence you write about coverage will be wrong:
reelier serve is a tool-server: it exposes Reelier's own
commands (scan, from-session, replay, push, diff) to your agent as MCP
tools. It observes nothing and wraps nothing.reelier mcp --wrap "<command>" is the recorder: it starts another
MCP server as a child process and sits in front of it, so every call that
server receives is recorded. This is the one that produces coverage.Adding serve to the user's project MCP config gives an agent the
record-and-replay tools without shelling out. It does not put a recorder
in front of anything, and it does not expose any of the commands below.
Reelier bounds scope and change: which tools may be called, whether a write was approved before it fired, and what the system looked like after compared with what was declared.
It does not bound content correctness, and pretending otherwise is the single worst thing you can do with it. Reelier cannot know that €40 is below the user's floor price, that this is the wrong customer record, or that the message is unwise to send. A write can be perfectly in scope, fully approved, cleanly receipted — and still be the wrong write. Say that out loud whenever you hand someone a receipt.
The recorder (reelier mcp --wrap) | The gate (approvals, state_gate) | |
|---|---|---|
| Job | See and record what the agent does | Refuse a specific write before it fires |
| On its own failure | Fails open — a malformed policy.yml degrades to deny-nothing | Fails closed — a mismatch refuses the write |
| So it is | never the reason a legitimate write breaks | never something a flag talks out of it |
The recorder fails open on purpose. An observation layer that can take down production by being misconfigured gets uninstalled, and then nothing is observed at all. Since 0.30.0 that degradation is recorded rather than silent: the trace carries a policy claim saying the file failed to load, so a reader can tell "the seatbelt was checked" apart from "the seatbelt was skipped."
The mistake to avoid: telling a user the recorder will stop a bad write. It will not. It records. The gate stops writes, and only the writes it was pointed at.
npx -y reelier coverage --host codex
Read-only. It reports which MCP entries the host exposes and which of them a wrap would and would not see. You may run this — it changes nothing.
Its last line is:
Observed inventory only; this is not proof of completeness.
Repeat that line to the user verbatim. Do not compress it into "coverage
is 8 of 10 servers" and stop there — the report describes what was observed
in one host's config, and cannot speak for a server the config never
mentioned. --host codex is the supported host today; other hosts are
rejected rather than guessed at.
npx -y reelier install
install looks at five JSON config files — <cwd>/.mcp.json and
~/.claude.json (Claude Code), <cwd>/.cursor/mcp.json and
~/.cursor/mcp.json (Cursor), and
~/.codeium/windsurf/mcp_config.json (Windsurf) — and rewrites the entries
it finds there so each launches behind the recorder. It backs up each file
before touching it, and it is idempotent.
Do not run install yourself. It edits the user's agent configuration on
their machine. Show them the command, say what it will rewrite and that a
backup is written first, and let them run it.
State these four gaps whenever you show this command. Each one is a server that keeps running unwrapped, so a receipt cannot speak for it:
install deliberately does not write
~/.codex/config.toml — it is TOML, and the installer only parses JSON. A
Codex user who ran Step 1 gets nothing from Step 2; they must front each
server by hand with npx -y reelier mcp --wrap "<original command>" in
their own config.~/.claude.json, only the top-level mcpServers map is rewritten.
Claude Code also stores servers per project, under
projects["<abs path>"].mcpServers. install does not read those, so they
stay unwrapped inside a file it just reported as installed. Ask the user to
check that file for a projects block before believing the coverage.uninstall reverts one file, not five. It restores
<cwd>/.mcp.json if that exists, otherwise ~/.claude.json, and nothing
else. Cursor and Windsurf configs stay wrapped with no revert command. The
backups are on disk next to each config as <name>.backup-<timestamp> —
reverting those is a manual copy.url) server entries are skipped. The wrap speaks stdio, so an
HTTP/SSE entry has no wrapped form.You may draft .reelier/policy.yml for the user to review — deny rules,
dry-run rules, and the narrow unless: "--allow-writes" escapes they
explicitly want. Show the draft. Explain each rule. Then let them place it.
Never write a policy file into their project silently. A policy nobody read is a policy nobody agreed to, and the user will reasonably believe they are protected by rules they have never seen.
Lint any draft before handing it over:
npx -y reelier policy check .reelier/policy.yml # exit 1 on any error
That check is strict, and it is worth running precisely because the recorder is not: at run time a malformed policy degrades to deny-nothing. The lint is where a broken rule surfaces loudly instead of quietly protecting nothing.
Steps 1, 2 and 3 are the wrap path: a live agent calling tools freely,
with the recorder in front of it and policy.yml as its seatbelt. Nothing in
that path involves a skill.md, and no approval exists there.
Step 4 is the replay path: a frozen, ordered step list in a
<name>.skill.md file that reelier run executes with no model in the loop.
approve and state_gate are controls on that file. They do not bind
anything a wrapped live agent does.
So Step 4 does not follow from Step 3 — it needs a skill file that Steps 1–3
never produce. You get one by recording a run and compiling it
(npx -y reelier from-session / compile, which is the reelier-replay
skill's subject), or by writing one by hand. If the user has no
*.skill.md, say so and stop at Step 3 rather than showing them a command
with nothing to point it at. Conflating these two paths is the most common
way to describe Reelier wrongly.
npx -y reelier approve <skill.md>
This hash-binds a human's decision onto a write step: the tool, the arguments, and the expectation. It is a human ceremony. Never run it for the user, and never run it on their behalf because it is "obviously fine."
Two properties to state plainly when you explain it:
--allow-writes and --yes do not reach it.state_gate: refuse blocks a write before dispatch, not after. The
write does not happen and then get flagged; it does not happen.If a write is refused, the correct move is to tell the human exactly what was refused and why. Re-approval is their action, deliberately.
A receipt records what a run changed and whether it stayed inside the declared scope. That is a real, checkable claim and it is worth having.
What it is not:
absent, unchecked and pending
are their own outcomes and must be reported as themselves. Reading any of
them out as a pass — or as "basically passed" — is the one thing that
destroys the value of the whole record. If a probe has not resolved yet,
it is pending, and pending is not a yes.install rewrites. So a plugin's servers are
not wrapped by installing Reelier, and a receipt from a plugin-running
host cannot be read as covering plugin-delivered writes.readOnlyHint/destructiveHint annotations win when present, and most
servers ship none. An unrecognized verb defaults to destructive and is
flagged for review — loud and safe. The leaky direction is subtler: a name
whose only read evidence is a noun (query, status, preview,
logs) is classified as a read and marked unknown. That flag makes it
visible, not blocked — nothing gates on it. So a write named like a
read can still be classified as a read. If a tool's name reads harmlessly
but its behavior does not, say so rather than trusting the label.These bind you whenever you act on this skill.
--allow-writes or --yes to make something work. Those
flags exist for a human who has decided. A refused write is information,
not an obstacle.approve: or expect: lines. They are
hash-bound to a human's decision. Editing them does not grant permission;
it invalidates the approval and the run refuses.unchecked — that is honest, and inventing an assertion that
always passes is not.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub seldonframe/reelier --plugin reelier2 skills in this plugin