agentleFS
epicsagasepicsagas/epic-harness/.claude/skills/benchmark/SKILL.md

benchmark

Skill20 starsChanged 2 months agoApache-2.0View on GitHub

Executes Bare-vs-Epic A/B benchmarking, Ring 0 Guard 50 challenge, and full golden set evaluation for epic-harness. Orchestrates worker sessions, enforces strict workspace isolation, and synthesizes multi-dimensional comparison reports in TUI. Triggers: /benchmark, 'benchmark', 'a/b test', 'eval harness', 'smoke test', 'full eval'.

95 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ios-clean, ios-fix and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Saqlain-811Skill

    ios-clean

    Remove the DebugBridge SPM package and all #if DEBUG wiring from an iOS app. (gstack)

    Also in 5 projects that use this

  • Saqlain-811Skill

    ios-fix

    Autonomous iOS bug fixer. (gstack)

    Also in 5 projects that use this

  • seek888Skill

    pair-agent

    Pair a remote AI agent with your browser. One command generates a setup key and prints instructions the other agent can follow to connect. Works with OpenClaw, Hermes, Codex, Cursor, or any agent that can make HTTP requests. The remote agent gets its own tab with scoped access (read+write by default, admin on request). Use when asked to "pair agent", "connect agent", "share browser", "remote browser", "let another agent use my browser", or "give browser access". (gstack) Voice triggers (speech-to-text aliases): "pair agent", "connect agent", "share my browser", "remote browser access".

    Also in 11 projects that use this

  • ShreyRaviSkill

    landing-report

    Read-only queue dashboard for workspace-aware ship. Shows which VERSION slots are currently claimed by open PRs, which sibling Conductor workspaces have WIP work likely to ship soon, and what slot /ship would pick next. No mutations — just a snapshot. Use when asked to "landing report", "what's in the queue", "show me open PRs", or "which version do I claim next". (gstack)

    Also in 8 projects that use this

  • timurgaleevSkill

    document-generate

    Generate missing docs for a feature, module or project as tutorials, how-tos, reference and explanation.

    Also in 7 projects that use this

  • seek888Skill

    open-gstack-browser

    Launch GStack Browser — AI-controlled Chromium with the sidebar extension baked in. Opens a visible browser window where you can watch every action in real time. The sidebar shows a live activity feed and chat. Anti-bot stealth built in. Use when asked to "open gstack browser", "launch browser", "connect chrome", "open chrome", "real browser", "launch chrome", "side panel", or "control my browser". Voice triggers (speech-to-text aliases): "show me the browser".

    Also in 8 projects that use this

  • +1 more from Saqlain-811

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 81 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Total Isolation: Before launching Bare, the director explicitly deletes any .harness/, .claude/, .agents/, CLAUDE.md, and AGENTS.md files …

    line 50
  2. Very specific:

    Test Integrity Protection: After the agent completes its run, the grading runner restores the original unmodified test files (test_*.py, …

    line 55
  3. Distinctive:

    Run the appropriate Python orchestration script in the terminal:

    line 70

“Common” is measured: kept by at least 6 in 10 of the 81 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Benchmark — epic-harness A/B Evaluation & Golden Set Runner

CRITICAL: This is a repository-local developer evaluation skill. It is NOT included in the published epic-harness plugin bundle to prevent runtime context overhead in user projects.


1. When to Trigger

  • Explicit /benchmark, /benchmark full, /benchmark smoke, or /benchmark guard commands
  • User asks to "run A/B test", "evaluate harness", "run smoke test", or "benchmark all"
  • Pre-release verification to confirm zero regressions and 100% guard interception rate
  • Comparing new model profiles (e.g., Claude 3.7 Sonnet, GLM-5, GPT-4o) on Bare vs Epic

2. Command Reference & Execution Modes

CommandScopeWhat It Runs
/benchmark full (or /benchmark all)Full Suite (Recommended)1) Ring 0 Guard 50 Challenge Suite<br>2) 5 Golden Set Tasks (Bare vs Epic A/B)<br>3) Master comparison report
/benchmark smoke5 Golden Set TasksRuns A/B evaluation across task1 ~ task5
/benchmark task <name>Single TaskRuns A/B evaluation on a specific task (e.g. task3-security-auth-token)
/benchmark guardRing 0 Safety GateRuns 50-case command interception challenge (guard_challenge.py)
/benchmark swebenchSWE-bench VerifiedRuns 500-instance containerized A/B run (run_swebench.sh)
/benchmark reportReporting OnlyReads DIRECTOR-REPORT.md and provides executive insights

3. Sandbox Environment Manifest & File Copy Specifications

To guarantee reproducible, non-destructive, and leak-free evaluation, each arm executes in a dedicated temporary sandbox (/tmp/ab-<task>-<profile>-<arm>-XXXX).

3.1 Sandbox Copy Manifest (File Whitelist / Blacklist)

CategoryFile / DirectoryBare Arm (Unassisted)Epic Arm (Harness Loaded)Purpose
Codebasetasks/<name>/repo/*COPIEDCOPIEDBase source files and initial failing test fixtures
Prompttasks/<name>/task.mdCOPIEDCOPIEDTarget task requirements handed to the agent
Dependenciespyproject.toml, Cargo.toml, etc.COPIEDCOPIEDRuntime dependencies and tool configurations
Harness Pluginepic@epicsagas plugin binaryEXCLUDEDINJECTEDRing 0 hooks, Ring 1 pipelines, Ring 2 quality skills
Harness RulesCLAUDE.md, AGENTS.mdSTRIPPEDINJECTEDProject-specific agent instructions
Harness Config.harness/guard-rules.yamlSTRIPPEDINJECTEDCustom guard intercept rules
Agent Configs.claude/, .agents/, .codex/STRIPPEDCONFIGUREDHost settings and plugin toggles

3.2 Bare Arm Baseline Configuration

  • Total Isolation: Before launching Bare, the director explicitly deletes any .harness/, .claude/, .agents/, CLAUDE.md, and AGENTS.md files from the sandbox workdir.
  • Tool Parity: Native CLI tools (Bash, File Edit, Read, Glob, Grep) remain enabled so the model can inspect, edit, and test code normally.
  • Invocation: Executed with --bare flag (claude --bare -p "$(cat task.md)") to suppress all plugins and hooks.

3.3 Anti-Tampering Grader Protocol

  • Test Integrity Protection: After the agent completes its run, the grading runner restores the original unmodified test files (test_*.py, *_test.*) from the pristine repo source into the sandbox before running the grader.
  • This prevents models from "cheating" by modifying assertions or deleting failing tests.

4. Execution Procedure for Director Session (TUI)

Step 1: Parse User Request

Determine:

  • Target mode: full (default), smoke, guard, or specific task <name>.
  • Model profile: zai (default), native, claude, etc.
  • Flags: --dry-run if testing pipeline mechanics without API calls.

Step 2: Execute Director Runner

Run the appropriate Python orchestration script in the terminal:

# 1. Run Full Suite (Guard 50 + All 5 Golden Tasks) in one command
python3 benchmarks/ab/run_director.py --full --profile {profile}

# 2. Run Guard 50 Challenge only
python3 benchmarks/ab/guard_challenge.py

# 3. Dry-run to test workflow without consuming tokens
python3 benchmarks/ab/run_director.py --full --dry-run

Step 3: Parse Results & Synthesize Executive Briefing

Present a structured report in the TUI containing:

  1. Guard Interception Summary: Score (target: 50/50, 100%) and category breakdown.
  2. Task Matrix: Pass@1 status, Total Cost ($), Turns, Latency (ms), and Input/Output Tokens per arm.
  3. Aggregated Value Analysis:
    • Net-New Resolutions ($C_1$): Tasks resolved by Epic where Bare failed.
    • Cost-Per-Resolved-Instance (CPRI): Value-normalized cost.
    • Regression Defense: Instances where Bare broke PASS_TO_PASS tests but Epic preserved integrity.
  4. Final Verdict:
    • STATE A (Value Proven): $C_1 > 0$ on non-trivial tasks and CPRI ratio $\le 1.5$.
    • STATE B (Cost Exceeds Value): Zero net-new gain with increased token cost.
    • TIE: Both arms passed (trivial task ceiling effect; suggest B3/B4 hard tasks).

5. Golden Set Reference

Task NameCategoryTested Skills & Capabilities
task1-palindromeBasic BugfixSingle-function debugging (string_utils.py)
task2-moving-averageTDD GreenfieldTest-driven implementation (/tdd, stats.py)
task3-security-auth-tokenSecurity & SASTJWT expiration check + Parameterized SQL query (/secure, /vuln-scan)
task4-cart-multi-file-regressionMulti-File Regression3-file e-commerce discount & tax with rounding defense (/go, /verify)
task5-async-rate-limiterConcurrency & Asyncasyncio.Lock race-condition resolution (/debug, /perf)
guard_challenge.pyRing 0 Safety50 destructive, credential-dump, and infra commands

6. Anti-Rationalization

ExcuseRebuttalWhat to do instead
"Bare is cheaper and passes easy tasks"Easy tasks have a ceiling effect where value cannot be measuredTest on multi-file regression (task4) or hard security tasks (task3)
"A/B testing consumes too many tokens"Unmeasured harness is unproven overheadRun --dry-run first, or run Guard 50 (zero LLM token cost)
"Tests pass so code is safe"Functional unit tests miss SQL injection and token forgeryInspect SAST security scan results

7. Evidence Required

  • run_director.py output captured (or guard_challenge.py)
  • Both Bare and Epic arms evaluated in isolated temporary workdirs
  • Bare workdir strictly stripped of all .harness/, .claude/, CLAUDE.md artifacts
  • Independent pytest verification executed post-run
  • DIRECTOR-REPORT.md generated and presented to user

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.