Probes what a coding agent can actually access on the host: secret files, env vars, Docker socket, SSH agent, sudo, and network. Use to audit sandbox effectiveness or blast radius from prompt injection.
Ships in harness-skills. 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.
Read when SKILL.md points to them; scripts run unread.
A coding agent's shell commands have whatever access that shell has, and a sandbox is only as good
as what actually gets through it. This skill runs one probe through the agent's own shell tool and
reports, headline first, what the agent can reach right now: secret files, secret-like environment
variables, the files other programs later trust and run (a trust handoff), the Docker socket,
the SSH agent, sudo, and, only when asked, the network. It reads no secret, prints no secret value,
and sends nothing anywhere unless you add --network.
/sandbox, Codex sandbox
modes, Gemini CLI --sandbox, or Cursor's sandbox..env files, or tokens are exposed to the
agent.guardrail-tester.runaway-guard.agents-md-checker.references/fixes.md names the setting.Tell the user this, in short, before the first run. It is the whole contract:
.sandbox-check- plus random letters and .tmp is created and
deleted at once. That includes the login-items folder (Library/LaunchAgents on macOS; the
autostart and systemd user folders on Linux). The folder's own modified time changes, and a file
watcher (a dev server, a sync app) may notice for a moment. A test file that cannot be deleted is
named in the report.sudo -n true, the form that fails instead of asking for a password. The system log
may record the attempt; --skip-sudo leaves sudo alone.--network.On a work machine, endpoint security and audit rules may log or flag the probe: the sudo attempt,
the test file in the login-items folder, and the write-opens of shell startup files and the SSH
authorized_keys file. On Linux, each append check also sends a file-close event to any program
watching that file.
scripts/targets.json lists every path the probe checks, so it names credential files by design.
Each of those lines carries the marker skillscan:allow, which tells this repository's security
scanner that the path is a probe target, not a file the skill reads.
<skill-dir> means the folder that holds this SKILL.md (Claude Code shows it as the skill's base
directory). Run every command from the user's project folder.
Explain the probe in two or three sentences drawn from "What the probe touches", including the sudo attempt and the login-items test file that security tools may flag. Done when the user says to go ahead. Wait for that answer before step 2.
Run the probe once, through your normal shell tool:
python3 "<skill-dir>/scripts/probe.py" --project .
--project is the folder the agent works in. When python3.11 or newer is installed (such as
python3.12 or python3.13), use it in place of python3: the stock macOS python3 is 3.9,
which skips the Codex settings comparison. The run takes about a second and exits 0 even when
checks are blocked: blocked checks are the result, not an error. Run it exactly as sandboxed as
every other command in this session, and report what the sandbox blocked as blocked. Keep it out
of any sandbox bypass (such as a dangerouslyDisableSandbox retry): an unsandboxed rerun
measures a different shell and turns a good result into a false alarm. Done when the output
starts with a bold headline sentence, or you have told the user the exact error. Exit code 2
means a bad argument or a missing project folder; Python also exits 2 when the script path is
wrong.
Offer the network check as its own choice. Say that it looks up github.com and pypi.org,
opens and closes a TCP connection to each on port 443 and to the cloud metadata address
169.254.169.254 on port 80, sends no data, and waits at most 3 seconds per host. Run it only
after a clear yes:
python3 "<skill-dir>/scripts/probe.py" --project . --network
Done when the user declined, or the new report's Network rows read open or blocked.
Choose the fixes. Open references/fixes.md at the section for the harness named on the
report's "agent" line, and pick the two or three fixes that close the most Critical and High
rows. When that section has no fix for a row (the SSH agent, for example), use the section "For
any harness". Use references/trust-handoff.md to explain why a row matters. Done when each
chosen fix names the exact setting, flag, or command to change.
Report in the shape below. A fix that edits a settings file is a proposal: show the exact change, and apply it only after a clear yes.
N of M checks open, split by risk. Only checks that ran are counted: missing,
skipped, hidden, and unknown checks and Info rows are left out.open: reachable from this shell. A read-only file in a writable folder also counts as open,
because it can be replaced; its detail says so.blocked: exists, but the open, write, or connect was refused. A folder that refuses lookups
gets one blocked row.hidden: inside a folder that refuses lookups, so the probe cannot tell whether it exists.missing: not present, so not tested. A socket file with nothing listening reads missing too.skipped: a cloud placeholder, --skip-sudo, or network not requested.unknown: an unexpected error; --json has the detail.CLAUDECODE, CODEX_SANDBOX and other CODEX_ variables,
GEMINI_CLI, CURSOR_SANDBOX), container signs, and sandbox markers. "Agent: none found" means
the probe ran in a plain terminal, so the results show what any program started there can reach.~/.zshrc is writable" means the command ran outside the
sandbox, or the sandbox allows more than its settings suggest../.vscode writable" is a trust handoff the sandbox allows by design;
references/trust-handoff.md has the documented escapes that used it.--settings or managed settings may be on.--json lists every target, missing ones included, each with id, category, group,
risk, target, status, and detail, plus settings, gaps, and leftovers.references/fixes.md.Quote paths exactly as the report prints them: it shows the home folder as ~, a folder moved by a
variable as $VARIABLE, and names and lengths in place of secret values. Names from the file
system and values from settings arrive as one plain line, with secret-shaped text masked and
backticks and pipes replaced, and the Markdown report shows them inside inline code, so they stay
inert text.
scripts/probe.py: the probe. Python 3.9+, standard library only. Flags: --project,
--network, --skip-sudo, --json, --out <path>, --fail-on critical|high|medium (exit 1
when a check at that level is open).scripts/targets.json: every path, socket, variable pattern, harness marker, and settings file
the probe checks, with the scanner marker on each credential line.scripts/safe.py: the text cleaner that several skills in this repository share. It masks
secret-shaped text and keeps each name from the file system or settings on one line, inside
inline code in the Markdown report.references/trust-handoff.md: why each target matters, with the Pillar Security and Cloud
Security Alliance findings and their CVE ids.references/fixes.md: fixes for Claude Code, Codex, Gemini CLI, Cursor, and OpenCode, plus fixes
for any harness.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/harness-skills:sandbox-checkfrom harness-skills
npx claudepluginhub ryanalberts/best-of-agent-harnesses --plugin harness-skills10 skills in this plugin
/agents-md-checkerChecks which instruction files (AGENTS.md, CLAUDE.md, GEMINI.md, Cursor rules, Copilot instructions) each coding agent loads from a repo, what gets cut or skipped, and whether the commands those files document still work. Use when the user asks whether Claude Code, Codex, Gemini CLI, Cursor, OpenCode, Copilot, or Aider reads their AGENTS.md or CLAUDE.md; why an agent ignores or truncates part of a context file; whether the build, test, or lint commands and paths in AGENTS.md are stale; or wants to audit context files across agents. Reads local files and makes no network calls; runs documented test, lint, and build commands only with --run after the user agrees./claim-checkClaim checker that audits a coding agent's statements that tests pass or a build is clean against its own session transcripts: whether a matching run happened before the claim, whether it passed, and whether code changed after it. Use when the user asks whether the agent really ran the tests, how often it said tests passed without proof, or whether "all tests pass" was true; wants to catch false or stale success claims; asks whether the agent deleted, skipped, or xfailed failing tests or loosened assertions in the current diff; or wants a Stop hook that sends the agent back to rerun tests before finishing. Runs locally: reads Claude Code, Codex, Gemini CLI, and OpenCode transcripts and the git diff; sends nothing.2 plugins ship this exact skill · first indexed Oct 9, 2026
Other plugins' skills for the same job