Skip to content

Claude Code. Any Model. The most powerful AI coding agent now speaks every language.

2.4 KB
Raw Blame
description: "claudish CLI: can a recommended model fix a failing test through Claude Code?"

# One model spec per run. `cli.experiment.yaml` sweeps it over the recommended
# list; `gen-experiments.ts` writes that file from `claudish --models-top --json`.
params:
  model: kimi-k3

harness:
  type: claude-code
  # The program under test. madbench refuses a non-Anthropic model unless the
  # binary is claudish, and `claudish --model <spec>` is the user's own path:
  # routing, the wire built from the catalog, the stream parser, tool calls.
  binary: claudish
  model: "{{model}}"
  # Interactive (the default): Bash parks at an approval menu nobody answers
  # unless the mode is bypassPermissions. claudish forwards the flag to claude.
  args: ["--permission-mode", "bypassPermissions"]

defaults:
  # workspace, not home. Level `home` replaces HOME, which hides ~/.claudish
  # (config, 1Password and Keychain references, catalog cache). The madbench
  # example local-agent-orchestration measured 20/20 Scenarios failing as
  # "agent never started" under `home`.
  sandbox: workspace
  # A reasoning model on a cold catalog can need the 30 s catalog wait plus
  # several turns. Tighten after 2-3 real runs.
  timeout: 480s
  capture: log

scenarios:
  - name: fix-slugify
    description: "Read a failing test, edit the source, run the test"
    testdata: ./testdata/cli
    prompt: |
      The test in slugify.test.ts fails. Fix slugify.ts so that `bun test`
      passes. Do not change slugify.test.ts. Run `bun test` to confirm.
    checks:
      # The work: `bun test` passes in the agent's tree.
      - type: exec
        cmd: bun test
        expected_exit: 0
        timeout: 60s
      # The boundary: the fix is in slugify.ts and the test file is untouched. A ban alone
      # passes under an agent that did nothing; the exec Check above proves the work.
      - type: file-changes
        must: { update: slugify.ts }
        must-not: { touch: slugify.test.ts }
      # The model drove tools through the proxy: it read the code. Which tool made the
      # edit is not checked: file-changes above proves the edit landed, and on
      # 2026-10-20 claude-opus-5-5 and claude-fable-5-1 fixed the test with a Bash
      # heredoc, so an Edit-or-Write Check failed two working models.
      - type: any-of
        checks:
          - { type: session:tool-used, value: Read }
          - { type: session:tool-used, value: Bash }