Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ agent me # show the current credential's identity
agent run start --config <id> # start a run from a saved config
agent run start --config-file f.json # ...or from an inline config
agent run start --template welcome-to-ellipsis # ...or from a maintained template
agent run start --config <id> --config-override "limits:\n run: 5" # override config fields for this run
agent run start --config <id> --watch # start and immediately stream it
agent run list --limit 20 # list recent runs (filter by --source, --days, …)
agent run get <run-id> # inspect one run (prints a dashboard link)
Expand Down
15 changes: 6 additions & 9 deletions src/commands/run.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,8 @@ export function registerRun(program: Command): void {
'start from a maintained run template (e.g. welcome-to-ellipsis)',
)
.option(
'-b, --budget <usd>',
"per-run budget override in USD (sets the config's limits.run for this run)",
parseFloat,
'-o, --config-override <yaml>',
'partial agent config (YAML) merged onto the chosen config for this run, e.g. "limits:\\n run: 5"',
)
.option(
'-m, --metadata <key=value>',
Expand All @@ -62,7 +61,7 @@ export function registerRun(program: Command): void {
config?: string
configFile?: string
template?: string
budget?: number
configOverride?: string
metadata: Record<string, string>
source: string
watch?: boolean
Expand All @@ -85,11 +84,9 @@ export function registerRun(program: Command): void {
if (opts.config) req.config_id = opts.config
if (opts.configFile) req.config = readJsonFile(opts.configFile)
if (opts.template) req.template_id = opts.template
// A budget is expressed as a config override of limits.run (the server
// merges it onto the chosen config and re-validates).
if (opts.budget !== undefined) {
req.config_override_yaml = `limits:\n run: ${opts.budget}`
}
// Merged onto the chosen config and re-validated server-side; set
// limits.run here to override this run's budget.
if (opts.configOverride) req.config_override_yaml = opts.configOverride

const api = new ApiClient()
const run = await api.startAgentRun(req)
Expand Down
Loading