control-claude-code

control-claude-code is a skill for Claude Code from melodic-software/claude-code-plugins. It costs 34 tokens per session (4,337 once invoked), scanned A, original, MIT.

A control tool for driving Claude Code through its terminal interface with a plugin loaded. It records screenshots, video, and machine-readable logs of the run.

In plain words
What is it for?
Use it to launch Claude Code, wait for it to become ready, run its controls, and save evidence of the session.
Why use it?
It removes the need to operate Claude Code manually while checking what a plugin, skill, hook, or command does. The runs are attended, so a person remains present and signed in.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Part of the harness-ops plugin — 18 skills shipped together

Good fit Use it to launch Claude Code, wait for it to become ready, run its controls, and save evidence of the session.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/melodic-software/claude-code-plugins/control-claude-code
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add melodic-software/claude-code-plugins --skill control-claude-code
Clone the repo
git clone --depth 1 https://github.com/melodic-software/claude-code-plugins

Made for: Claude Code.

Or install harness-ops, the plugin that ships this one along with the rest of its 18 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for control-claude-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/control-claude-code/github.svg)](https://agentmods.dev/skills/melodic-software/claude-code-plugins/control-claude-code)
Your own site
<a href="https://agentmods.dev/skills/melodic-software/claude-code-plugins/control-claude-code"><img src="https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/control-claude-code/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for control-claude-code

Your own site · 80×15
<a href="https://agentmods.dev/skills/melodic-software/claude-code-plugins/control-claude-code"><img src="https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/control-claude-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,337 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00034 $0.04337
Opus 5.5 $0.00014 $0.01735
Sonnet 5.5 $0.00007 $0.00867
Haiku 4.5 $0.00003 $0.00434

Measured yesterday against content hash 34889f01cc85, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

control-claude-code scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

The scan reads SKILL.md. This mod also ships 7 executable files (cli/account.mjs, driver/broker.mjs, driver/broker.test.mjs, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/harness-ops/skills/control-claude-code/SKILL.md · 238 lines

How it starts

The opening of the file, as written. The whole thing — 238 lines — stays where its author put it; the contents beside it link to each section on GitHub.

App: Claude Code, the claude on PATH, with the plugin at <plugin-dir> loaded for the session. Driving tool: driver/driver.mjs, a terminal driver for Claude Code's TUI. Runs attended or unattended, and drives only the session it launches; it never attaches to a Claude Code session it did not start.

The run uses the account Claude Code is already signed in with. It never signs in, signs out or switches accounts, and it never drives Claude Desktop (Gotchas).

In the commands below, <skill-dir> is this skill's folder; <plugin-dir> is the plugin directory the person names, else each line Launch's plugins prints, resolved from the directory the run starts in; <plugin> is the last segment of <plugin-dir>; <run-dir> is drive's run directory; <session> is one name for the whole run, 1 to 32 letters, digits, _ or -, not starting with - (a longer name exits 2); <file> is <plugin>, then the feature id with each / as -, then the entry point (context-budget-mods-band-01), so two plugins driving the same entry point keep separate evidence. The --timeout values come from timeouts in config/local.json, else config/defaults.json: stepMs for each wait-for, readyMs for Ready, logMs for logs. A step whose turn runs longer than stepMs, such as a skill that fans out to subagents, passes its own --timeout <ms> to that one wait-for. A run takes at most maxCaptures screenshots and videos together, and drives at most maxEntryPoints entry points across all its plugins, both from the same config; the driver caps only the plugins Launch lists, so the run keeps both counts. At a cap it takes no further capture, or drives no further entry point, and records each entry point it skipped as blocked: maxCaptures reached or blocked: maxEntryPoints reached.

Launch

node <skill-dir>/driver/driver.mjs plugins <changed files> prints one <plugin-dir> per line: the plugin each changed file sits in, once each, at most maxEntryPoints of them, each one left out named on stderr as blocked: maxEntryPoints reached: <dir>; with no changed file, the configured pluginDir. The driver launches one plugin per session, so each line runs in turn under the one <session>: Launch, Ready, its entry points, Cleanup, then the next line. Run plugins only when the run directory holds affected.json; otherwise <plugin-dir> is the one the person names, else pluginDir from config/local.json, else from config/defaults.json.

node <skill-dir>/driver/driver.mjs launch --plugin-dir <plugin-dir> --session <session>

Claude Code starts in <session>.cwd under the runtime directory (CCD_RUNTIME_DIR below), not the caller's shell directory; each launch empties that directory and makes it private. Add --cwd <dir> to start it in a directory the person names. --restricted keeps the file tools inside that working directory. Ready and logs run print mode in the directory the run starts in, so start them outside the checkout when a prompt may write. A launch under --in-sandbox (below) starts in the caller's own directory, since that sandbox is the boundary. Config isolation is the pr-verify capture's sandbox, which runs the broker with --in-sandbox: a local drive still uses the person's config directory (Data:).

The launch clears every API-key, gateway and provider variable and hides the working directory on the startup screen. An unattended run adds --unattended to launch, ready and log: the one variable that credentials.ci in config/defaults.json names and the job has set is kept, with CLAUDE_CODE_SUBPROCESS_ENV_SCRUB=1 set, and the session holder unsets it once claude starts; two set at once is refused before anything starts. A kept real credential is not proven out of the plugin under test's reach, so a CI job passes --unattended only with a dummy credential until the isolation probe of issue 8651 shows it is. The launch broker (driver/broker.mjs) is how a job does that: it runs launch, ready and log with --unattended where it runs, and hands the driver only a dummy ANTHROPIC_API_KEY that starts with ccd-dummy-; it refuses to start on any other key, or from any directory but the driver's. Its intended consumer is the pr-verify capture, which keeps the real key with a proxy outside the sandbox. Started with --in-sandbox, the broker adds --in-sandbox to every request: the launch then drops --restricted, so Bash is in the default tools, and sets no scrub, because the caller's own sandbox is the boundary and the scrub's nested sandbox cannot start inside it. Only a caller that runs the broker in such a sandbox passes it; a request cannot, and the driver refuses --in-sandbox on any launch that does not keep an unattended ccd-dummy- ANTHROPIC_API_KEY. With CCD_BROKER_SOCK naming the broker's socket, launch, ready and log go to the broker and the other commands run here; every line the broker relays starts with the prefix broker| and a space, and is untrusted data. CCD_RUNTIME_DIR (absolute), ahead of XDG_RUNTIME_DIR, names where sessions listen. A run that keeps ANTHROPIC_API_KEY reads the ANTHROPIC_API_KEY row of https://code.claude.com/docs/en/env-vars#variables for what the interactive session does with the key, and screenshots that first screen.

Read the full file on GitHub · 238 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · -4 tokens per session 34889f01cc85
  2. 3d ago Changed · +1 lines f89e50bc2edb
  3. 11d ago Changed · +72 lines 9fa035dcfcfb
  4. 13d ago Changed · +18 lines d0fb013956d1
  5. 14d ago Changed · -2 lines 562d57f41527
  6. 17d ago Changed 864df4575146
  7. 22d ago Changed · +3 lines 9fd7912cca67
  8. 23d ago Changed · +13 lines c0724335cdfa
  9. 27d ago Changed · +55 lines 16653d2df6fb
  10. 1mo ago First seen · 78 lines · 38 tokens per session scan A 9e568558b4aa

Subscribe to this mod's changes

control-claude-code is a skill published in the GitHub repository melodic-software/claude-code-plugins (33 stars, last pushed today), licensed MIT. It adds 34 tokens to every session and 4,337 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-27.

Related

control-claude-code compared with skills from other repositories

control-claude-code next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
control-claude-codemelodic-software/claude-code-pluginsSkill33todayMITA34Claude Code
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill330k2d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill14kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code