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.
/plugin marketplace add Borda/AI-Rig/plugin install researchWrote 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.
[](https://agentmods.dev/skills/borda/ai-rig/run)<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.
<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>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.
| Model | Per session | Once 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 |
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 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:
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.
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.
- 14d ago Changed · +72 lines 71e43b58e189
- 17d ago Changed 0fcc696d2214
- 18d ago Changed · +127 lines f74c7886ef97
- 28d ago Changed · +2 lines 25970db687e3
- 1mo ago Changed · +2 lines 9124aa324411
- 1mo ago Changed · +107 lines 929ea369b471
- 1mo ago Changed · -32 lines 6fff283acb1c
- 1mo ago Changed · +11 lines 7b6d5ccaa2de
- 2mo ago Changed 7402b330f8db
- 2mo ago First seen · 778 lines · 75 tokens per session scan C 613eb836f579
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.
run compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| runBorda/AI-Rig | Skill | 31 | yesterday | Apache-2.0 | C | 75 | Claude Code |
| push-to-forked-prhoangsonww/Claude-Code-Agent-Monitor | Skill | 1.2k | yesterday | MIT | A | 57 | Codex |
| version-releasehoangsonww/Claude-Code-Agent-Monitor | Skill | 1.2k | yesterday | MIT | A | 50 | Codex |
| history-portabilityhoangsonww/Claude-Code-Agent-Monitor | Skill | 1.2k | yesterday | MIT | A | 63 | Claude Code, Codex |
| release-guardhoangsonww/Claude-Code-Agent-Monitor | Skill | 1.2k | yesterday | MIT | A | 31 | Codex |
| git-commithuangwb8/skills | Skill | 51 | 2d ago | MIT | A | 88 | Claude Code, Codex |
| git-pr-reviewhuangwb8/skills | Skill | 51 | 2d ago | MIT | A | 76 | Claude Code, Codex |