run

run is a skill for Claude Code from Borda/AI-Rig. It costs 75 tokens per session (22,955 once invoked), scanned C, original, Apache-2.0.

An automated campaign runner that repeatedly changes a codebase to improve a chosen measurement. It records experiments, makes small commits, and can undo changes when results get worse.

In plain words
What is it for?
Use it for long-running metric-improvement campaigns defined in a program.md file, with optional specialist agents, experiment journals, hypotheses, and remote runs.
Why use it?
It manages the repetitive work of trying improvements and checking results, while limiting regressions and showing when progress has stalled.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; mentions subagents; names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the research plugin — 8 skills, 2 agents shipped together

Good fit Use it for long-running metric-improvement campaigns defined in a program.md file, with optional specialist agents, experiment journals, hypotheses, and remote runs.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Borda/AI-Rig
Claude Code
/plugin install research

Made for: Claude Code.

Or install research, the plugin that ships this one along with the rest of its 8 skills, 2 agents.

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 run

README.md
[![agentmods](https://agentmods.dev/badge/skills/borda/ai-rig/run/github.svg)](https://agentmods.dev/skills/borda/ai-rig/run)
Your own site
<a href="https://agentmods.dev/skills/borda/ai-rig/run"><img src="https://agentmods.dev/badge/skills/borda/ai-rig/run/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 run

Your own site · 80×15
<a href="https://agentmods.dev/skills/borda/ai-rig/run"><img src="https://agentmods.dev/badge/skills/borda/ai-rig/run.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 22,955 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00075 $0.22955
Opus 5.5 $0.00030 $0.09182
Sonnet 5.5 $0.00015 $0.04591
Haiku 4.5 $0.00007 $0.02295

Measured 14d ago against content hash 71e43b58e189, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

run scanned grade C with 1 finding 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 14d ago.

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.

Instruction-override phrasinghighPrompt injection

Text telling the model to disregard its earlier instructions or safety rules is the shape of a prompt injection, whoever wrote it.

over general campaign rules. Program constraints set strategy hints only — do NOT override safety rules
plugins/cc_research/skills/run/SKILL.md · 1,067 lines

How it starts

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

Sustained metric-improvement loop — reads program.md, iterates specialist ideation agents, commits atomically, auto-rolls back on regression. For long-running automated improvement campaigns.

NOT for: methodology validation before run (use /research:judge); hypothesis generation (use research:scientist agent); one-off feature work (use /develop:feature); no program.md yet / starting from a bare goal (use /research:sweep).

Accept a metric-improvement campaign on a program.md, including a dry-run/walkthrough of that campaign (trace only; execute nothing). A bare goal → redirect to /research:sweep to build and judge the program first. Any other request → print ! UNSUPPORTED — /research:run cannot do this request, name the redirect, stop. Never perform the out-of-scope task after the redirect — no "direct answer" section, no partial findings.

Campaign mode only:

MAX_ITERATIONS:             50 (hard cap); DEFAULT 20 when max_iterations unset in program.md; program.md may raise up to 50; values above 50 clamped to 50 with a warning
MAX_CODEX_RUNS:             10 (cost ceiling for --codex Phase 2c — disable Codex once exceeded)
STUCK_THRESHOLD:            5 consecutive discards → escalation
GUARD_REWORK_MAX:           2 attempts before revert
VERIFY_TIMEOUT_SEC:         120 (local), 300 (--colab)
COLAB_KNOWN_HW:             H100, L4, T4, A100
SUMMARY_INTERVAL:           10 iterations
DIMINISHING_RETURNS_WINDOW: 5 iterations < 0.5% each → warn user and suggest stopping
STATE_DIR:                  .experiments/state/<run-id>/  (timestamped dir per run — foundry artifact-lifecycle rule, requires foundry plugin)
METRIC_REPEATS_DEFAULT:     1 (metric runs per measurement; ## Config metric_repeats 1–10 overrides; 1 = single sample, keep any measured gain)
MIN_DELTA_PCT:              0.1 (% of |best_metric|; ## Config min_delta_pct overrides — smallest gain kept when metric_repeats > 1, and the tiny-gain-on-large-change discard threshold)

Repeated measurement (metric_repeats > 1 — opt-in, each iteration's metric cost × metric_repeats): R4 and Phase 5 run metric_cmd that many times, each run its own Bash/MCP call under its own VERIFY_TIMEOUT_MS, each staged as one line of STATE_DIR/metric-runs.jsonl; bin/run_metric_stats.py status is the cursor and decide is Phase 7's verdict — keep only a gain beyond max(min_delta_pct, 2σΔ), the noise model /research:fortify ranks ablations with. Recorded metric = mean of the runs; scalar metric fields keep their meaning for every reader.

Agent strategy mapping (agent_strategy in config → ideation agent to spawn):

agent_strategy Specialist agent When to use
auto heuristic Default — infer from metric_cmd keywords
perf foundry:perf-optimizer latency, throughput, memory, GPU utilization
code foundry:sw-engineer coverage, complexity, lines, coupling
ml research:scientist proposes, foundry:sw-engineer implements (Phase 2) accuracy, loss, F1, AUC, BLEU
arch foundry:solution-architect proposes, foundry:sw-engineer implements (Phase 2) coupling, cohesion, modularity metrics

Auto-inference keyword heuristics (when agent_strategy: auto or omitted; checked against ## Goal text AND metric command):

Precedence order (first match wins; ML keywords beat test-framework keywords). ML-specific compound terms (not bare tokens) required — prevents over-triggering on eval/train/val as common words:

Read the full file on GitHub · 1,067 lines

Files

What ships with it

9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 14d ago Changed · +72 lines 71e43b58e189
  2. 17d ago Changed 0fcc696d2214
  3. 18d ago Changed · +127 lines f74c7886ef97
  4. 28d ago Changed · +2 lines 25970db687e3
  5. 1mo ago Changed · +2 lines 9124aa324411
  6. 1mo ago Changed · +107 lines 929ea369b471
  7. 1mo ago Changed · -32 lines 6fff283acb1c
  8. 1mo ago Changed · +11 lines 7b6d5ccaa2de
  9. 2mo ago Changed 7402b330f8db
  10. 2mo ago First seen · 778 lines · 75 tokens per session scan C 613eb836f579

Subscribe to this mod's changes

run is a skill published in the GitHub repository Borda/AI-Rig (31 stars, last pushed yesterday), licensed Apache-2.0. It adds 75 tokens to every session and 22,955 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it C with 1 finding (instruction-override phrasing). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

run compared with skills from other repositories

run next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
runBorda/AI-RigSkill31yesterdayApache-2.0C75Claude Code
push-to-forked-prhoangsonww/Claude-Code-Agent-MonitorSkill1.2kyesterdayMITA57Codex
version-releasehoangsonww/Claude-Code-Agent-MonitorSkill1.2kyesterdayMITA50Codex
history-portabilityhoangsonww/Claude-Code-Agent-MonitorSkill1.2kyesterdayMITA63Claude Code, Codex
release-guardhoangsonww/Claude-Code-Agent-MonitorSkill1.2kyesterdayMITA31Codex
git-commithuangwb8/skillsSkill512d agoMITA88Claude Code, Codex
git-pr-reviewhuangwb8/skillsSkill512d agoMITA76Claude Code, Codex