Skip to content

About

Standalone evaluation runner for agent clis

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

32 Commits

Folders and files

Repository files navigation

clankerval

CI

clankerval runs checked-in evaluation suites against agent CLIs. Today the runner supports clnkr and Claude Code.

Build

make build

That produces ./clankerval.

Usage

Scaffold a new evaluations tree:

clankerval init

Run this repo's checked-in dummy self-test suite:

make evaluations

Run 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/clnkr

Run 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 claude

Phase-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.

Suite layout

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, description
  • mode: mock-provider or live-provider
  • optional agent: clnkr or claude
  • trials_per_task, failure_policy, and ordered tasks

At the task level, task.json selects:

  • instruction_file, working_directory, full_send, step_limit
  • optional seed_transcript_file
  • optional setup_command and setup_timeout_seconds
  • optional mode and agent
  • scripted_turns_file for mock-provider tasks
  • 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.md for clnkr tasks
  • input/project/CLAUDE.md for Claude tasks

The shared instruction_file remains the canonical task prompt in both cases.

Output bundles

Each trial writes a bundle under the run output directory. The important top-level artifacts are:

  • bundle.json for metadata, including resolved agent and provider identity
  • raw/agent/ for native agent artifacts
  • raw/commands.jsonl for the normalized command trace
  • normalized/transcript.jsonl
  • normalized/outcome.json
  • normalized/graders.jsonl

Manual Claude smoke

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=1

That test also requires claude on PATH and ANTHROPIC_API_KEY in the environment.

Development

make build
make test
make evaluations
make man
make _check-man

doc/clankerval.1.md is the source of truth for the manpage. doc/clankerval.1 is generated with go-md2man and committed.

License

Apache-2.0

About

Standalone evaluation runner for agent clis

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages