Skip to content

[build-tools] Add an optional model input to eas/run_agent - #4936

Merged
sswrk merged 4 commits into
mainfrom
szymonswierk/run-agent-model
Nov 27, 2026
Merged

sswrk merged 4 commits into
mainfrom
szymonswierk/run-agent-model

Conversation

@sswrk

@sswrk sswrk commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Why

eas/run_agent always runs the agent CLI with its default model and reasoning effort. There is no way to pick a different model or effort level from the workflow.

How

Added two optional string inputs to eas/run_agent: model and effort.

  • The step does not check the values against a list of known models or effort levels, it passes them as is, and the agent CLI validates them.
  • Claude Code gets --model and --effort flags
  • Codex gets model and model_reasoning_effort in the root settings of config.toml
  • When an input is not set, nothing is added, and the CLI uses its default.

Test Plan

Added unit tests

@codecov

codecov Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.90%. Comparing base (bf5ba2b) to head (38a4f22).
⚠️ Report is 12 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4936      +/-   ##
==========================================
+ Coverage   77.75%   77.90%   +0.15%     
==========================================
  Files        1145     1146       +1     
  Lines       58525    58655     +130     
  Branches    13003    13033      +30     
==========================================
+ Hits        45501    45687     +186     
+ Misses      12903    12848      -55     
+ Partials      121      120       -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sswrk
sswrk force-pushed the szymonswierk/run-agent-model branch from 24d7b97 to 05b7473 Compare November 24, 2026 15:47
@sswrk
sswrk marked this pull request as ready for review November 24, 2026 16:00

@hSATAC hSATAC left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good. Thanks for adding this.

@AHGIJMKLKKZNPJKQR AHGIJMKLKKZNPJKQR left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no blocking comments

@github-actions

Copy link
Copy Markdown

✅ Thank you for adding a changeset!

@sswrk
sswrk merged commit c4be5e9 into main Nov 27, 2026
10 checks passed
@sswrk
sswrk deleted the szymonswierk/run-agent-model branch November 27, 2026 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants