Skip to content

fix(evals): the Claude runner sends --effort - #1289

Merged
Jacksondr5 merged 1 commit into
j5/mainfrom
j5code/evals-claude-effort
Nov 28, 2026
Merged

Jacksondr5 merged 1 commit into
j5/mainfrom
j5code/evals-claude-effort

Conversation

@Jacksondr5

Copy link
Copy Markdown
Owner

Problem

The evals/j5-cli Claude runner never passed --effort to Claude Code. run.ts hands effort to both runners, but claude.ts didn't put it in the Claude model selection, so makeClaudeQueryOptions fell back to the adapter's default, medium. Every Claude sample has run at medium, even though the runner's default is --effort high. Codex was unaffected.

What changed

  • runClaude sends the effort as the model selection's effort option (options: [{ id: "effort", value }]), the same shape J5's Claude adapter receives from a thread. That's where compileClaudeModelSelection reads it.
  • The README line for --effort now says how each harness takes it. It also notes that Claude's ultrathink prompt prefix isn't added: only J5's adapter prepends it, and no eval uses ultrathink.
  • This was split out of closed PR test(evals): mid-turn J5 steer case (does not reproduce #1188's refusal) #1207, which carried it together with steer machinery that wasn't needed.

Verified:

  • check:changed passed on the pre-rebase commit 193576d19d. The rebase onto c1deeb4a27 (fix(evals): j5-cli runner on v0.1.11 #1228's squash) applied cleanly, and the only later edit is the README wording.
  • A host-only check of makeClaudeQueryOptions: with no option the SDK gets effort: "medium", and with the option it gets the value passed.
  • Reviewed by Opus 5.5 and Sol 6.1. There were no findings beyond the README nit, which is fixed here.

Effect on earlier results: Claude j5-cli numbers from before this PR were measured at medium effort. That includes the #957 and #1194 runs and the smoke runs in #1228.

Checklist

  • One concern: the description has no "also"
  • Tests cover the changed behavior: eval tooling; the host check above covers the option path
  • UI changes: none
  • Live testing: not applicable (eval tooling)
  • Upstream-owned files: none (evals/j5-cli is J5's)
  • Upstream product: no change
  • Surfaces: eval tooling only; Claude harness
  • Docs: no definitions change

Claude Opus 5.5 in Claude Code (J5 Code).

🤖 Generated with Claude Code

The Claude runner left --effort out of its model selection, so every
Claude sample ran at the adapter's default effort. It now passes it as
the selection's effort option, as J5 sends it, and the README says how
each harness takes it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vercel

vercel Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
j5-code Ready Ready Preview Nov 28, 2026 10:03pm UTC

Request Review

@Jacksondr5
Jacksondr5 enabled auto-merge (squash) November 28, 2026 22:02
@coderabbitai

coderabbitai Bot commented Nov 28, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 10 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between c1deeb4 and 25b0776.

Files selected for processing: 2

  • evals/j5-cli/README.md
  • evals/j5-cli/claude.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XS 0-9 effective changed lines (test files excluded in mixed PRs). labels Nov 28, 2026
@Jacksondr5
Jacksondr5 merged commit 5d8c14e into j5/main Nov 28, 2026
39 checks passed
@Jacksondr5
Jacksondr5 deleted the j5code/evals-claude-effort branch November 28, 2026 22:28

This branch was successfully deployed

1 active deployment
Preview — 25b07765 Deployed Nov 28, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 effective changed lines (test files excluded in mixed PRs). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant