ralph-experiment

ralph-experiment is a skill for Claude Code from RobinNorberg/oh-my-copilot. It costs 22 tokens per session (3,182 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.

Part of the oh-my-copilot plugin — 51 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 51 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 3,182 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.03182
Opus 5 $0.00011 $0.01591
Sonnet 5 $0.00004 $0.00636
Haiku 4.5 $0.00002 $0.00318

Measured 5d ago against content hash 81f0f8dfa69e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 5d 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 · 354 lines

How it starts

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

[EXPERIMENT LOOP — ITERATION {{ITERATION}}/{{MAX}}]

<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
  • Use run_in_background: true for measurement commands (builds, benchmarks, test suites)
  • Always pass the model parameter explicitly when delegating to agents
  • Git commit before measuring, git reset on discard -- no uncommitted experiments
  • Never stop unless: success criteria met, budget exhausted, or human interrupts </Execution_Policy>

Step 1: SETUP (first iteration only)

Parse the user's request to extract:

  • Goal: What are we optimizing? (e.g., "Reduce p95 latency for BatchAck messages")
  • Success criteria: Measurable targets (e.g., p95_latency_ms < 120)
  • Measurement command: How to measure (e.g., npm run benchmark -- --type=BatchAck)
  • Budget: Termination limit. Parse from args:
    • --budget N → N experiments max
    • --budget Nh or --budget Nm → time limit
    • --budget "scripts done" → scope-based (scripts complete successfully)
    • Default: 20 experiments

Then: a. Create experiment branch: git checkout -b experiment/{tag} from current HEAD b. Initialize experiment-notebook.json in .omg/ (see schema below) c. Run the measurement command to establish baseline metrics d. Record baseline in the notebook

Read the full file on GitHub · 354 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. 5d 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 3d ago), licensed MIT. It adds 22 tokens to every session and 3,182 once invoked, about $0.0001 per session on Opus 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

Other skills, from other repositories

release-check

Use when cutting an Orchard release (tagging a new version of the FastAPI inventory service) — walks the pre-tag checklist so migrations, verify, changelog, and the tag stay in sync.

PromptPartner/agentsmith · 43 tokens

conventional-commit

Guides committing staged (indexed) git files using the Conventional Commits specification and commit message best practices. Use when user mentions commit, git commit, conventional commit, commit message, staged files, indexed files, fixup, or fixup commit. Helps craft well-structured, meaningful commit messages…

rlespinasse/agent-skills · 74 tokens

repo-standardizer

Polish any GitHub repository's surface — labels (emoji rating tiers, P0–P3 priority, impact severity), issue forms, PR template, CI workflows, CODEOWNERS, rulesets, docs. Repo meta & config only — no code logic touched. Use when creating a new repo or polishing an existing one.

programmingWTF/repo-standardizer · 70 tokens

release

Cuts a project release. Discovers the project's release procedure (Makefile target, RELEASING.md, CI workflow, etc.) and offers to capture it durably if missing. Always invokes /review-release as preflight, proposes a version bump from CHANGELOG, then presents an exact command plan for operator confirmation before…

chrisallenlane/claude-swe-workflows · 81 tokens

review-release

Pre-release readiness review. Scans for debug artifacts, version mismatches, changelog gaps, git hygiene issues, breaking changes, and license compliance. Runs tests and build verification. Presents consolidated findings for human review before release.

chrisallenlane/claude-swe-workflows · 48 tokens

pre-compact

Pre-compaction housekeeping. Walks a checklist (persistent memory updates, git hygiene, trash cleanup) plus an open-judgment audit, produces an SBAR with a go/no-go recommendation, and emits a copy-pasteable resume prompt for the post-compaction agent if work remains. Run this immediately before /compact.

chrisallenlane/claude-swe-workflows · 69 tokens