Octocode Benchmark logo

Octocode Benchmark

Community
bgauryy
octocode-benchmark

Use when planning, running, grading, or reporting the by-hand Octocode research benchmark — pairwise matchups (Octocode anchor vs one baseline: gh+RTK, gh+Headroom, or plain gh) over markdown questions, with a fresh isolated runner agent per (question, arm, pass), one blind judge per question grading two answers X/Y in randomized order, and an orchestrator that summarizes accuracy/quality/workflow/characters. Results measured in total characters through the model (model-in delivered + model-out commands/args + final answer).

Overview

Publisherbgauryy
Repositoryoctocode
Skill nameoctocode-benchmark
Stars
950
Forks
78
Bundled files
21
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 21 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by bgauryy on GitHub. Read the source before you install it.

Installation

Install the Octocode Benchmark AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/bgauryy/octocode/tree/main/packages/octocode-benchmark/skills/octocode-benchmark
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/bgauryy/octocode.git /tmp/octocode
mkdir -p .claude/skills
cp -r /tmp/octocode/packages/octocode-benchmark/skills/octocode-benchmark .claude/skills/octocode-benchmark
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Octocode Benchmark in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Octocode Benchmark on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Octocode Benchmark is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Octocode benchmark

Plain-markdown, run-by-hand CLI research comparison. Octocode is the anchor; each baseline is a separate pairwise matchup (octocode vs rtk | headroom | gh). Per question, per pass: two isolated runners answer, one blind judge grades them X / Y (randomized per question). Run ≥3 passes; the rollup shows every matchup together. No harness, no JSON.

Paths below are relative to the package root packages/octocode-benchmark/. Shared tooling lives in compare/bin/; questions in compare/github-questions/; reports in results/.

Flow (4 phases)

  1. Preflight — verify + pin every arm; a failure invalidates the run.
  2. Answer — 2 isolated runners (anchor + baseline) per question/pass, leanest-legal path, each appends a ## Q<n> section to answers/<arm>-p<pass>.md.
  3. Judge — after both sections exist, one blind judge reasons to a verdict, then scores.
  4. Summarize — validate logs, aggregate paired stats, update the rollup.

How it is MEASURED (characters, never self-reported)

The metric is total_chars = model-in + model-out in Unicode code points, from an instrumented log — the tool transcript only (excludes system prompt, tool schemas, model reasoning; the fixed per-arm primer is excluded by rule; any later help/schema/failed call is counted).

  • model-out = the command string + args the model wrote, plus the final answer.
  • model-in = the tool output pulled back into context (for Headroom, the compressed output).

Mechanism: every research command runs through its arm's thin wrapper, which shells the real CLI unchanged, prints output verbatim, and appends one JSONL row per call:

ArmWrapperRunsLog env
octocode (local build)compare/bin/octocnpx octocode tools …OCTO_LOG
octocode (published pin)compare/bin/octoc1822npx -y octocode@18.2.2 tools …OCTO_LOG
gh+RTKcompare/bin/rtkmrtk gh …RTK_LOG
gh+Headroomcompare/bin/ghcgh … → Headroom compressGHC_LOG (+ HR_PY)
plain ghcompare/bin/ghmgh … (read-only)—

The final answer is logged as pure model-out via compare/bin/record_answer.py. Per-question total = compare/bin/sumlog.py --strict <log>; the whole campaign is checked byte-faithfully by compare/bin/validate_campaign.py. Never trust a hand-counted number — recompute from the JSONL. Only elapsed_ms (octocode/rtk/gh) is captured for time; it is not a fair latency metric (npx bootstrap per call, no Headroom timing) — do not headline it.

How it is SCORED (blind judge, correctness-first)

One blind judge per question grades the two answers as X / Y (order randomized per question, tool identity redacted). It reasons to ground truth first, then scores each answer: correctness 0–10, research depth 1–5, workflow 1–5 (rubric in references/JUDGING.md).

Decision per pairing: if one arm is net strictly more correct (paired sign test) it wins — a confidently-wrong answer never wins on footprint. If correctness is statistically tied, characters decide by the geometric-mean of per-question ratios (baseline ÷ octocode) + median + leaner win-rate + bootstrap CI — never a pooled sum alone. Aggregate paired, per question, over ≥3 passes. Method + worked example: references/aggregation-and-stats.md.

Quickstart (copy-paste, one matchup, one pass)

bash
cd packages/octocode-benchmark
export HR_PY="$HOME/.local/share/uv/tools/headroom-ai/bin/python"   # Headroom arm only

# Phase 0 — preflight (non-zero exit = fix before running)
bash skills/octocode-benchmark/scripts/check-prereqs.sh 18.2.2

# set up a campaign dir
CAMP="campaigns/run-$(date -u +%H%M%S)-$(date -u +%Y-%m-%d)"; mkdir -p "$CAMP/answers" "$CAMP/judge"

# Phase 1 — answer (spawn ONE isolated agent per arm; never mix arms in an agent).
# Each research call sets its per-question log, e.g. octocode Q4:
OCTO_LOG="$CAMP/octocode-p1-Q4.jsonl" ./compare/bin/octoc1822 ghGetFileContent \
  --queries '{"owner":"axios","repo":"axios","path":"lib/adapters/http.js","matchString":"follow-redirects"}'
# baseline (gh+RTK) Q4:
RTK_LOG="$CAMP/rtk-p1-Q4.jsonl" ./compare/bin/rtkm search code --repo axios/axios follow-redirects --limit 20
# log the final answer, then append a "## Q4" section (Answer + Research steps) to answers/<arm>-p1.md
python3 compare/bin/record_answer.py --log "$CAMP/octocode-p1-Q4.jsonl" --question Q4 --file answer.txt

# Phase 2 — judge: build the blind packet, then one reasoning-first verdict per question
python3 compare/bin/build_blind_packet.py --help          # X/Y randomized, tool identity redacted

# Phase 3 — validate + aggregate + report
python3 compare/bin/sumlog.py --strict "$CAMP/octocode-p1-Q4.jsonl"
python3 compare/bin/validate_campaign.py "$CAMP" --question-count 30
python3 compare/bin/per_question_summary.py --out results/PER_QUESTION_SUMMARY.md --json results/per_question_summary.json

Runner/judge briefing packets, spawn scaling (batch Q1-15/Q16-30 within one arm), and output layout: references/run-with-agents.md → run-preflight.md + run-phases.md.

Hard gates (skip one and the run is worthless)

  • Isolation — a fresh agent per (question, arm, pass) + a separate judge; no shared transcript, no answer key. Batch questions within an arm, never mix arms.
  • Fairness — leanest-legal path on every arm; no whole-tree/whole-file dump where a targeted read/search answers (inflates chars, invalidates the ratio). sumlog.py emits advisory FAIRNESS: lines for recursive=1 dumps / oversized reads — review them.
  • Blind + reasoned — grade X/Y in randomized order; the judge reasons before scoring, correctness-first; a confidently-wrong answer never wins.
  • Measured, not self-reported — total_chars = model-in + model-out from the instrumented log; recompute, never hand-count.
  • Honest stats — geometric-mean char ratio (never a pooled sum) + bootstrap CI; ≥3 passes; the public set is orientation, not a shipping gate.

Routes — load only what the step needs

WhenLoad
understand the designreferences/BENCHMARK.md
run a matchupreferences/INSTRUCTIONS.md then references/run-with-agents.md
brief a runnerreferences/RUNNER.md + references/RUNNER_TOOL_CONTEXT.md (+ the arm's primer-*.md)
judge a questionreferences/JUDGING.md + references/example-verdict.md
score + aggregatereferences/SCORING.md then references/aggregation-and-stats.md
write the reportreferences/REPORT_TEMPLATE.md
author a matchup READMEreferences/matchup-readme.md

Scripts + tooling

  • scripts/check-prereqs.sh — Phase 0 gate (all arms + questions + primers).
  • scripts/measure.sh — fallback char wrapper for an arm without a dedicated bin/ wrapper.
  • compare/bin/: octoc · octoc1822 · rtkm · ghc · ghm (arm wrappers) · instrument_command.py / hr_compress.py (char capture) · record_answer.py · sumlog.py (per-question total, --strict) · build_blind_packet.py (X/Y packet) · validate_campaign.py (byte-faithful campaign check) · per_question_summary.py (per-question + overall chars & correctness across all 4 arms) · test_instrumentation.py.

Stop when

The matchup's questions are answered, judged, and aggregated across ≥3 passes with CIs — or a preflight/fairness violation blocks the run; fix before continuing.

Add a question

Copy an existing Q<n>.md, bump the number, edit title / id / ## Question only. GitHub → compare/github-questions/; corpus-local → that matchup's questions/; add its README row.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Octocode Benchmark AI skill do?

Use when planning, running, grading, or reporting the by-hand Octocode research benchmark — pairwise matchups (Octocode anchor vs one baseline: gh+RTK, gh+Headroom, or plain gh) over markdown questions, with a fresh isolated runner agent per (question, arm, pass), one blind judge per question grading two answers X/Y in randomized order, and an orchestrator that summarizes accuracy/quality/workflow/characters. Results measured in total characters through the model (model-in delivered + model-out commands/args + final answer).

Why use Octocode Benchmark on TypingMind?

Because you install it once and use it with any model. Octocode Benchmark is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Octocode Benchmark in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/bgauryy/octocode/tree/main/packages/octocode-benchmark/skills/octocode-benchmark. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Octocode Benchmark?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Octocode Benchmark?

As many as you like. As long as a model supports skills, you can use Octocode Benchmark with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Octocode Benchmark AI skill free?

Yes. It is published on GitHub by bgauryy under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇