codeprobe-calibrate
This skill runs a validation gate for a curator version by comparing it against a holdout dataset and a reference curator.
Identity proven by GitHub's verified organisation badge (sourcegraph)
- Agents
- Claude Code
- License
- Apache-2.0 (permissive)
- Pin
- 349658apinned Oct 9, 2026
- Context cost
- about 870 tokenswhen the skill loads
- GitHub stars
- 2on sourcegraph/codeprobe
- Scripts
- None found
What it does
“Run the codeprobe calibration gate and emit a curator profile when the R11 validity thresholds are met. Compares two curators over a holdout and enforces minimum tasks, minimum repos, and Pearson correlation before accepting. Triggers on calibrate curator, calibration gate, validity gate, curator profile, r11 gate, pearson correlation. Use this when a new curator version needs to be qualified before it is used in mining or scoring pipelines.”
Generated summary from the skill's own text
This skill runs a validation gate for a curator version by comparing it against a holdout dataset and a reference curator. It enforces minimum thresholds for task count, repository diversity, and Pearson correlation before emitting a calibration profile. The skill is designed for qualifying new curator versions before they enter mining or scoring pipelines.
When to use it
- Validating a new curator version before deploying to production
- Qualifying curator versions with R11 standard thresholds
- Checking curator performance against reference on holdout data
- Ensuring curator diversity and correlation requirements met
When not to
- When provider dependencies are unavailable
- Exploring curator behavior outside formal validation
- When thresholds need frequent adjustment during validation
Install
These commands install from the publisher's repository and need no account.
skills CLI
npx skills add sourcegraph/codeprobe --skill codeprobe-calibrateInstalls from the repository's default branch, which may have changed since the commit we checked.
GitHub CLI 2.90 or later
gh skill install sourcegraph/codeprobe codeprobe-calibrate@349658a0c14622dccccc9be038cabca63a1e4a0bInstalls the commit we checked (349658a).
Copy by hand
Download the folder at 349658a and put it in .claude/skills/codeprobe-calibrate for Claude Code and in .agents/skills/codeprobe-calibrate for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode.
Claude Code plugin
/plugin install sourcegraph@claude-plugins-officialThe publisher's plugin in Claude's official marketplace. It may hold more than this skill, and we have not pinned it.
Copy for your agent
A prompt for any coding agent. It installs this skill from GitHub at the pinned commit, copies the files as they are, and runs nothing unless you ask.
Prompt
Install the agent skill "codeprobe-calibrate" by Sourcegraph. Source, pinned to commit 349658a0c14622dccccc9be038cabca63a1e4a0b: https://github.com/sourcegraph/codeprobe/tree/349658a0c14622dccccc9be038cabca63a1e4a0b/src/codeprobe/skills_data/codeprobe-calibrate 1. Download that folder at exactly this commit. Do not use the default branch. 2. Copy every file unchanged, keeping the folder structure, into .claude/skills/codeprobe-calibrate/ for Claude Code and .agents/skills/codeprobe-calibrate/ for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode. Create the folders if they do not exist. 3. Do not edit the files, and do not run any script in the folder unless I ask you to. 4. When you are done, list the files you copied and where you put them. Listing and checks: https://www.agentnative.dev/skills/sourcegraph/codeprobe-calibrate
SKILL.md at the pin
---
name: codeprobe-calibrate
description: Run the codeprobe calibration gate and emit a curator profile when the R11 validity thresholds are met. Compares two curators over a holdout and enforces minimum tasks, minimum repos, and Pearson correlation before accepting. Triggers on calibrate curator, calibration gate, validity gate, curator profile, r11 gate, pearson correlation. Use this when a new curator version needs to be qualified before it is used in mining or scoring pipelines.
user-invocable: false
---
# codeprobe calibrate (autonomous agent contract)
Gate a curator version against a holdout set. A profile is emitted only when
three validity conditions are met: holdout size, repo diversity, and Pearson
correlation against the reference curator. Any failure exits non-zero without
writing a profile.
## Environment (pre-loaded)
- !`codeprobe doctor --json`
If doctor reports provider-related failures (e.g. `LLM_UNAVAILABLE`), calibrate
will almost certainly fail as well. Resolve doctor first.
## Bare invocation
Minimum viable call. `--curator-version` is required:
```bash
codeprobe calibrate <holdout_path> --json --curator-version <id>
```
Emit the profile to a specific path:
```bash
codeprobe calibrate <holdout_path> --json --curator-version <id> --out <profile.json>
```
Adjust acceptance thresholds for an exploratory run (defaults are the R11
thresholds of 0.6 correlation / 100 tasks / 3 repos — do NOT relax in CI):
```bash
codeprobe calibrate <holdout_path> --json --curator-version <id> --threshold 0.6 --min-tasks 100 --min-repos 3
```
## JSON fields to parse
Top-level keys are exactly:
```json
{
"record_type": "envelope",
"ok": true,
"command": "calibrate",
"version": "<codeprobe version>",
"schema_version": "1",
"exit_code": 0,
"data": {
"command_schema_version": "1",
"profile": {
"correlation_coefficient": 0.72,
"calibration_confidence": 0.72,
"holdout_size": 120,
"holdout_repos": [ "..." ],
"produced_at": "<ISO 8601 UTC>",
"curator_version": "..."
},
"out_path": "<abs-path or null>"
},
"error": null,
"warnings": [],
"next_steps": []
}
```
Parse `ok`. A `true` envelope means the gate PASSED and `data.profile` is the
emitted calibration profile (`calibration_confidence` is the canonical alias
of `correlation_coefficient` for downstream surfaces). A rejected gate never
emits a profile: the command exits 2 with `ok: false` and `error.code` of
`CALIBRATION_REJECTED` (`error` is a single object, never an array).
## Error handling
Only the codes below may surface. At runtime the envelope's `error` object
carries the authoritative message and remediation for whichever code fired.
| Code | Kind | Retryable? | Action |
|---|---|---|---|
| CALIBRATION_REJECTED | diagnostic | no | Increase holdout size / repo diversity, or accept the curator is not qualified. Do not auto-retry with a lowered threshold — that defeats the gate. |
| METADATA_INVALID | diagnostic | no | Holdout rows are malformed; fix data and re-run. |
| METADATA_MISSING | diagnostic | no | Required metadata columns are missing from the holdout. |
| LLM_UNAVAILABLE | diagnostic | yes (bounded) | Provider outage; one retry permitted. |
| INTERRUPTED | diagnostic | **TERMINAL — do not retry** | Signal halted the run; stop. |
## Retry policy
- Maximum retry depth per error chain: **2**. After two consecutive errors
sharing the same code, stop and surface the envelope to the caller.
- Terminal errors (INTERRUPTED) are **never** retried.
- CALIBRATION_REJECTED is a validity signal, not a transient error. Treat it
as terminal-for-this-holdout even though the error code itself is diagnostic
— retrying the same inputs will produce the same rejection.
- Never mutate `--threshold`, `--min-tasks`, or `--min-repos` on retry.
Those values encode the R11 validity contract; changing them is a human
decision that must live in configuration, not in retry logic.
From sourcegraph/codeprobe at 349658a, shown as plain text under its license: Apache-2.0 (permissive). The license text is in LICENSE.
View SKILL.md on GitHub at 349658aFiles
- SKILL.md4.0 KB · ad519ec425e9
1 file, 4.0 KB in total. Each file has a sha256 in the pin's manifest; the first 12 characters are shown.
Skill folder on GitHub at 349658aMore from Sourcegraph
searching-sourcegraph
This skill enables agents to search and navigate codebases using Sourcegraph, with guided workflows for finding implementations, understanding systems…
Claude Code, Codex, Cursor +4 · about 2.2K tokens · pinned 6 days ago
codeprobe-check-infra
This skill diagnoses whether mined task directories can run safely by checking for capability drift and verifying credential time-to-live against expected…
Claude Code · about 970 tokens · pinned 6 days ago
codeprobe-interpret
This skill analyzes results from codeprobe benchmark runs by comparing configurations, computing statistical rankings, and generating actionable…
Claude Code · about 920 tokens · pinned 6 days ago
codeprobe-mine
Extracts reusable eval tasks from a repository's merge history using the codeprobe CLI.
Claude Code · about 1.6K tokens · pinned 6 days ago
codeprobe-run
Execute eval task suites against an AI coding agent using codeprobe, spawning isolated sessions and scoring each task with automated tests.
Claude Code · about 1.5K tokens · pinned 6 days ago
sourcegraph-nav
Navigates code using Sourcegraph to locate where symbols are defined and find all places they are used.
Contains scripts
Claude Code, Codex, Cursor +3 · about 580 tokens · pinned 6 days ago
Related in AI and agents
agent-builder
Agent Builder orchestrates the creation, modification, testing, and publishing of n8n Agents.
by n8nOfficial publisher
Claude Code, Codex, Cursor +3 · about 2.3K tokens · pinned 6 days ago
intent-recognition
Classifies automation requests by determining which primitive owns the top-level control flow (workflow, agent, needs clarification, or out-of-scope) and…
by n8nOfficial publisher
Claude Code, Codex, Cursor +4 · about 6.9K tokens · pinned 6 days ago
planned-task-runtime
This skill manages follow-up interactions with a background task execution system, handling task completion synthesis, failure replanning, workflow building…
by n8nOfficial publisher
Claude Code, Codex, Cursor +3 · about 2.2K tokens · pinned 6 days ago
skill-creator
This skill guides agents through creating new skills that extend Gemini CLI with specialized knowledge, workflows, and tool integrations.
by GoogleOfficial publisher
Contains scripts
Gemini CLI · about 5K tokens · pinned 6 days ago
-21risk-automation
This skill automates 21risk operations by connecting to the 21risk toolkit through Composio's Rube MCP server.
by ComposioOfficial publisher
Claude Code, Codex, Cursor +3 · about 690 tokens · pinned 6 days ago
-2chat-automation
This skill automates 2chat tasks by integrating with Composio's 2chat toolkit through Rube MCP.
by ComposioOfficial publisher
Agents not labelled yet · about 680 tokens · pinned 6 days ago
Open roles at Sourcegraph
2 open roles on the jobs board
- ML & Agentic Systems Engineer [IC4]
Remote (Europe or North America) (Remote)
- Tech Lead - Code Plane [IC5]
Remote (Remote)