Send config_override_yaml instead of budget_usd on run start#12
Merged
Conversation
The backend replaced the per-run budget_usd field with config_override_yaml (a partial config merged onto the chosen config and re-validated). Keep the ergonomic '-b, --budget <usd>' flag, but translate it to a config override that sets limits.run, so the CLI works with the new API and the budget UX is unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The Ellipsis backend replaced the per-run
budget_usdfield withconfig_override_yaml(a partial agent config merged onto the chosen config and re-validated server-side) in ellipsis-dev/ellipsis#5375. The/v1run API no longer readsbudget_usd, so the CLI must switch over.What changed
StartAgentRunRequest:budget_usd?: number→config_override_yaml?: string.agent run: the-b, --budget <usd>flag is kept (same ergonomics), but it now emitsconfig_override_yamlset tolimits:\n run: <usd>instead ofbudget_usd. The server merges that onto the config and re-validates, so the budget still resolves fromlimits.runand is clamped to the $50 platform max as before.GET /v1/budgetusage report (budget_usdonBudgetSummary) is untouched.Notes
/v1request model ignores unknown fields, so old CLIs sendingbudget_usdhad no budget applied. After this,--budgetworks again.--budget(→limits.run) is exposed; a general--config-override <yaml>for arbitrary fields can be added later if wanted.Testing
npm run typecheck,npm run test(89 tests), andnpm run buildall pass.🤖 Generated with Claude Code