Replace hardcoded hai run default with live agent picker#168
Merged
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ 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.
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
adeprezh
approved these changes
Jul 1, 2026
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.

Note
Low Risk
CLI and documentation behavior only; scripts that relied on the implicit default must pass
--agent.Overview
hai runno longer defaults to a fixed agent. The--agent/-aflag is optional in an interactive TTY: the CLI lists agents from the live catalog and prompts for a number. In non-interactive runs (--jsonor no TTY), omitting--agentfails with a message to pass--agentor usehai 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-35btoh/web-surfer-pro. CLI tests pass-aexplicitly 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.