Skip to main content

Benchmark AI coding agents against your own codebase. Mine real tasks from repo history, run agents, interpret results.

Project description

codeprobe

Benchmark AI coding agents against your own codebase.

Mine real tasks from your repo history, run agents against them, and find out which setup actually works best for YOUR code — not someone else's benchmark suite.

Why codeprobe?

Existing benchmarks (SWE-bench, HumanEval) use fixed task sets that AI models may have memorized from training data. codeprobe mines tasks from your private repo history, producing benchmarks that are impossible to contaminate.

Prerequisites

codeprobe orchestrates external AI coding agents — you need at least one installed:

Agent Install Required env var
Claude Code claude.ai/download ANTHROPIC_API_KEY
GitHub Copilot npm install -g @github/copilot-cli (>= 1.0.4) GitHub auth via gh auth login
Codex Included via pip install codeprobe[codex] OPENAI_API_KEY

You also need:

  • Python 3.11+
  • Git (for task mining and worktree isolation)
  • GitHub CLI (gh) — optional, for mining tasks from GitHub PRs with linked issues

The assess and mine --enrich commands need an LLM for scoring/enrichment. codeprobe auto-detects the best available backend:

Priority Backend Install Env var
1 Anthropic SDK pip install codeprobe[anthropic] ANTHROPIC_API_KEY
2 OpenAI SDK pip install codeprobe[codex] OPENAI_API_KEY
3 Claude CLI claude.ai/download ANTHROPIC_API_KEY

Override with CODEPROBE_LLM_BACKEND=anthropic|openai|claude-cli. Without any backend, assess falls back to heuristic scoring.

Quick Start

pip install codeprobe

cd /path/to/your/repo

codeprobe assess .      # Score benchmarking potential (optional)
codeprobe init          # What do you want to learn?
codeprobe mine .        # Extract tasks from repo history
codeprobe run .         # Run agents against tasks
codeprobe interpret .   # Get recommendations

Commands

Command Purpose
codeprobe assess Score a codebase's benchmarking potential
codeprobe init Interactive wizard — choose what to compare
codeprobe mine Mine eval tasks from merged PRs/MRs
codeprobe run Execute tasks against AI agents
codeprobe interpret Analyze results, rank configurations

Key flags

codeprobe run . --parallel 5     # Run 5 tasks concurrently (worktree-isolated)
codeprobe run . --repeats 5      # Run each task 5 times for statistical confidence
codeprobe run . --dry-run        # Estimate resource usage without running
codeprobe mine . --enrich        # Use LLM to improve weak task instructions
codeprobe interpret . --format csv   # Export per-task results for pivot tables
codeprobe interpret . --format html  # Self-contained HTML report for leadership

Supported Agents

  • Claude Code (--agent claude) — headless via claude -p
  • GitHub Copilot (--agent copilot) — via Copilot CLI
  • Codex (--agent codex) — via OpenAI API
  • Custom agents via the AgentAdapter protocol

Supported Git Hosts

GitHub, GitLab, Bitbucket, Azure DevOps, Gitea/Forgejo, and local repos.

Configuration

Create a .evalrc.yaml in your repo root:

name: my-experiment
agents: [claude, copilot]
models: [claude-sonnet-4-6, claude-opus-4-6]
tasks_dir: .codeprobe/tasks

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codeprobe-0.1.0a3.tar.gz (179.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codeprobe-0.1.0a3-py3-none-any.whl (134.5 kB view details)

Uploaded Python 3

File details

Details for the file codeprobe-0.1.0a3.tar.gz.

File metadata

  • Download URL: codeprobe-0.1.0a3.tar.gz
  • Upload date:
  • Size: 179.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for codeprobe-0.1.0a3.tar.gz
Algorithm Hash digest
SHA256 f039110d5bff1eedec27d6a67eda68a88ca68f5ed47ca68d9b01d0b3d332e7a1
MD5 c0b039866fa3b05997f59579ed53e86f
BLAKE2b-256 57861408e5a54db24cac72261a32d9442063b8bb41887efeb6aceda8c8b1617f

See more details on using hashes here.

File details

Details for the file codeprobe-0.1.0a3-py3-none-any.whl.

File metadata

  • Download URL: codeprobe-0.1.0a3-py3-none-any.whl
  • Upload date:
  • Size: 134.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for codeprobe-0.1.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 53103734ffe9f9154897685d9f3f157149c503d1173a64fa79bdaf74bf9be7d1
MD5 cd6411bbab59892a9154ef4c2cddf4a7
BLAKE2b-256 52c311a1c16982fcfc43367958d047e39f8afcd2ccf3f2fcaabde819bcce5131

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page