Skip to content

Replace hardcoded hai run default with live agent picker#168

Merged
abonneth merged 3 commits into
mainfrom
fable/cli-agent-picker
Jul 1, 2026
Merged

Replace hardcoded hai run default with live agent picker#168
abonneth merged 3 commits into
mainfrom
fable/cli-agent-picker

Conversation

@abonneth

@abonneth abonneth commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Note

Low Risk
CLI and documentation behavior only; scripts that relied on the implicit default must pass --agent.

Overview
hai run no longer defaults to a fixed agent. The --agent / -a flag is optional in an interactive TTY: the CLI lists agents from the live catalog and prompts for a number. In non-interactive runs (--json or no TTY), omitting --agent fails with a message to pass --agent or use hai agents list.

Request size validation (assert_request_under_limit) now runs before agent selection or any catalog API call, so oversized tasks still fail without listing agents.

Docs and the hai-agents MCP skill examples switch the showcased agent from h/web-surfer-holo3-1-35b to h/web-surfer-pro. CLI tests pass -a explicitly and add coverage for the missing-agent error and validate-before-picker ordering.

Reviewed by Cursor Bugbot for commit 1ee7c3b. Bugbot is set up for automated code reviews on this repo. Configure here.

Co-authored-by: Cursor <cursoragent@cursor.com>
@abonneth abonneth requested a review from adeprezh as a code owner June 30, 2026 20:27

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit ee8da47. Configure here.

Comment thread src/hai_agents_cli/app.py Outdated
abonneth and others added 2 commits June 30, 2026 22:29
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@abonneth abonneth merged commit 115c99c into main Jul 1, 2026
6 checks passed
@abonneth abonneth deleted the fable/cli-agent-picker branch July 1, 2026 07:37
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.

2 participants