ralph-experiment

ralph-experiment is a skill for Claude Code from RobinNorberg/oh-my-copilot. It costs 22 tokens per session (4,547 once invoked), scanned A, original, MIT.

A structured experiment loop for improving a measurable result through hypotheses, tests, learning, and repeated attempts. It also records progress and uses Git checkpoints so failed changes can be reverted.

In plain words
What is it for?
It helps test competing ideas for performance, accuracy, or reliability while tracking predictions, outcomes, and safe restore points.
Why use it?
It gives optimization work a repeatable process when the best solution is not obvious.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code.

Part of the oh-my-copilot plugin — 100 skills, 21 commands, 20 agents, 11 hooks, 1 MCP server shipped together

Good fit It helps test competing ideas for performance, accuracy, or reliability while tracking predictions, outcomes, and safe restore points.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/robinnorberg/oh-my-copilot/ralph-experiment
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 RobinNorberg/oh-my-copilot --skill ralph-experiment
Clone the repo
git clone --depth 1 https://github.com/RobinNorberg/oh-my-copilot

Made for: Claude Code.

Or install oh-my-copilot, the plugin that ships this one along with the rest of its 100 skills, 21 commands, 20 agents, 11 hooks, 1 MCP server.

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 ralph-experiment

README.md
[![agentmods](https://agentmods.dev/badge/skills/robinnorberg/oh-my-copilot/ralph-experiment/github.svg)](https://agentmods.dev/skills/robinnorberg/oh-my-copilot/ralph-experiment)
Your own site
<a href="https://agentmods.dev/skills/robinnorberg/oh-my-copilot/ralph-experiment"><img src="https://agentmods.dev/badge/skills/robinnorberg/oh-my-copilot/ralph-experiment/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 ralph-experiment

Your own site · 80×15
<a href="https://agentmods.dev/skills/robinnorberg/oh-my-copilot/ralph-experiment"><img src="https://agentmods.dev/badge/skills/robinnorberg/oh-my-copilot/ralph-experiment.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,547 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 167
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Tool Misuse · line 303
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
How audits are shown
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.00022 $0.04547
Opus 5.5 $0.00009 $0.01819
Sonnet 5.5 $0.00004 $0.00909
Haiku 4.5 $0.00002 $0.00455

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

Security

Grade A, and why

ralph-experiment 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 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.

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.

skills/ralph-experiment/SKILL.md · 396 lines

How it starts

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

[EXPERIMENT LOOP]

<Use_When>

  • User wants to iteratively optimize something (performance, accuracy, reliability)
  • User says "experiment", "optimize", "improve performance", "try hypotheses", "karpathy loop"
  • The task has a measurable success criterion (latency < X, throughput > Y, error rate < Z)
  • Multiple approaches are possible and the best one isn't obvious
  • User wants to explore a solution space methodically </Use_When>

<Do_Not_Use_When>

  • Task has a clear implementation path -- use ralph instead
  • User wants to implement a known feature -- use ultrawork or ralph
  • There's no measurable metric to optimize -- use ralph with acceptance criteria
  • User wants a one-shot fix -- delegate directly to an executor agent </Do_Not_Use_When>

<Why_This_Exists> Optimization tasks fail when treated as implementation tasks. "Make X faster" doesn't have a single correct solution -- it requires forming hypotheses, testing them, learning from failures, and iterating. Ralph-experiment provides:

  1. Structured hypothesis tracking with predictions and outcomes
  2. Git checkpoint/revert so failed experiments don't pollute the codebase
  3. A queryable experiment notebook that captures learnings across iterations
  4. Flexible termination: success criteria, budget limits, or manual interrupt
  5. Agent/team delegation to increase hypothesis success rate
  6. A simplicity criterion: prefer fewer lines of code at equal performance </Why_This_Exists>

<Execution_Policy>

  • One hypothesis at a time -- sequential experiments, not parallel
  • Delegate implementation to executor agents or teams for each hypothesis
  • Run long measurement commands (builds, benchmarks, test suites) in the background (run_in_background: true); when you need the result, wait in the foreground (read its output file, gh pr checks <N> --watch for CI) and never idle on a background notification
  • Always pass the model explicitly when delegating to agents (model="sonnet")
  • Pseudo-code below uses Claude Code names; see "On GitHub Copilot CLI" below for the Copilot equivalents
  • Commit before measuring, roll back on discard -- no uncommitted experiments. Roll back safely (see Rollback_Safety)
  • Never stop unless: success criteria met, budget exhausted, or human interrupts

On GitHub Copilot CLI

  • Run long measurement commands with shell mode: "async" instead of run_in_background
  • Agent(subagent_type=...) is task(agent_type=..., mode="background"|"sync"); TeamCreate/TeamDelete become several parallel task calls (or the team skill)
  • The task tool's model takes a full model id such as claude-sonnet-5.5, not the sonnet alias
  • PowerShell 5.1 has no &&: run each command separately. Do not redirect native commands with *> or | Out-File (they write UTF-16 or a BOM and wrap stderr in NativeCommandError records); use cmd /c "... > log 2>&1" </Execution_Policy>

Read the full file on GitHub · 396 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. 14d ago Changed d18fad4b1779
  2. 28d ago Changed · +42 lines b41a0df424cf
  3. 29d ago Changed b33875e49b37
  4. 2mo ago First seen · 354 lines · 22 tokens per session scan A 81f0f8dfa69e

Subscribe to this mod's changes

ralph-experiment is a skill published in the GitHub repository RobinNorberg/oh-my-copilot (5 stars, last pushed today), licensed MIT. It adds 22 tokens to every session and 4,547 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-09-04.

Related

ralph-experiment compared with skills from other repositories

ralph-experiment next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ralph-experimentRobinNorberg/oh-my-copilotSkill5todayMITA22Claude Code
resolve-pr-feedbackDawn-Technology/aicelerateSkill12yesterdaynoneA50Claude Code
review-prDawn-Technology/aicelerateSkill12yesterdaynoneA42Claude Code
implement-ticketDawn-Technology/aicelerateSkill12yesterdaynoneA116Claude Code
review-and-resolve-prDawn-Technology/aicelerateSkill12yesterdaynoneA103Claude Code
write-commit-messageDawn-Technology/aicelerateSkill12yesterdaynoneA112Claude Code
fix-ciDawn-Technology/aicelerateSkill12yesterdaynoneC150Claude Code