Skip to content

(feat) Choose the default agent harness from the selected model provider #6045

Description

@mmabrouk

People should get a runnable model and harness combination without understanding harness compatibility first. Current agent creation can reuse the last-used harness and model, and the backend template defaults to Pi. This can produce a default that does not match the newly selected provider.

Use these defaults when a model provider is selected:

  1. OpenAI uses the OpenAI harness and requires an OpenAI provider connection with an API key.
  2. Anthropic uses Claude Code.
  3. Other providers use Pi.
  4. Keep the current Bedrock behavior unchanged until its Claude compatibility is confirmed.
  5. Remove the duplicate Pi and OpenAI harness choice for the OpenAI onboarding path so OpenAI is the only default shown there.
  6. Recalculate the default when the provider changes, but preserve a later explicit harness choice where it remains compatible.
  7. Add tests for new-agent creation, onboarding, provider changes, and stored last-used preferences.

Related: #5786 tracks validation of invalid model, harness, and authentication combinations. This issue covers default selection.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions