clankerval runs checked-in evaluation suites against agent CLIs. Today the runner supports clnkr and Claude Code.
make buildThat produces ./clankerval.
Scaffold a new evaluations tree:
clankerval initRun this repo's checked-in dummy self-test suite:
make evaluationsRun a consuming project's suite against clnkr:
export CLNKR_EVALUATION_MODE=live-provider
export CLNKR_EVALUATION_API_KEY=your-api-key
export CLNKR_EVALUATION_BASE_URL=https://api.openai.com/v1
export CLNKR_EVALUATION_MODEL=gpt-5.4-nano
clankerval run --suite default --binary /path/to/clnkrRun a consuming project's suite against Claude Code:
export CLNKR_EVALUATION_MODE=live-provider
export CLNKR_EVALUATION_API_KEY=placeholder
export CLNKR_EVALUATION_BASE_URL=https://api.anthropic.com
export CLNKR_EVALUATION_MODEL=claude-code-default
export ANTHROPIC_API_KEY=your-anthropic-key
clankerval run --suite default --agent claudePhase-1 Claude support keeps the shared live-provider config gate. CLNKR_EVALUATION_API_KEY, CLNKR_EVALUATION_BASE_URL, and CLNKR_EVALUATION_MODEL still need values. The Claude adapter also requires claude on PATH and forwards ANTHROPIC_API_KEY into the harnessed run.
clankerval init creates the default shape:
evaluations/
suites/
default/
suite.json
tasks/
001-example/
task.json
input/
instruction.txt
At the suite level, suite.json selects:
id,descriptionmode:mock-providerorlive-provider- optional
agent:clnkrorclaude trials_per_task,failure_policy, and orderedtasks
At the task level, task.json selects:
instruction_file,working_directory,full_send,step_limit- optional
seed_transcript_file - optional
setup_commandandsetup_timeout_seconds - optional
modeandagent scripted_turns_fileformock-providertasks- grader configuration
setup_command runs in the trial workspace after the baseline ref is created and before the agent starts. It is exec'd directly, so use a shell explicitly when shell parsing is needed:
{
"id": "001-investigate",
"instruction_file": "input/instruction.txt",
"scripted_turns_file": "input/model-turns.json",
"working_directory": "input/project",
"full_send": true,
"step_limit": 10,
"setup_command": [
"bash",
"-c",
"git apply ../bug.patch && printf '%s\n' 'incident=checkout-failure' > incident.txt"
],
"setup_timeout_seconds": 30,
"graders": {
"outcome_diff": {
"enabled": true,
"required": true
}
}
}If setup exits nonzero or times out, the trial fails before agent launch. The bundle includes setup-command-output.txt and a setup_command grader result with stdout, stderr, exit code, and timeout state.
Agent precedence is task.agent > suite.agent > CLI --agent, with clnkr as the default when no level sets it.
Project-local prompt files are agent-specific:
input/project/AGENTS.mdforclnkrtasksinput/project/CLAUDE.mdfor Claude tasks
The shared instruction_file remains the canonical task prompt in both cases.
Each trial writes a bundle under the run output directory. The important top-level artifacts are:
bundle.jsonfor metadata, including resolved agent and provider identityraw/agent/for native agent artifactsraw/commands.jsonlfor the normalized command tracenormalized/transcript.jsonlnormalized/outcome.jsonnormalized/graders.jsonl
This repo includes a narrow checked-in live Claude smoke suite. The fixture always loads in CI. The real live run is manual and gated:
CLANKERVAL_CLAUDE_LIVE_SMOKE=1 \
go test ./internal/evaluations -run TestClaudeLiveSmokeSuite -count=1That test also requires claude on PATH and ANTHROPIC_API_KEY in the environment.
make build
make test
make evaluations
make man
make _check-mandoc/clankerval.1.md is the source of truth for the manpage. doc/clankerval.1 is generated with go-md2man and committed.
Apache-2.0