Skip to content

Harness: add support for setting the HarnessAgent's mode including mid-session switching #19944

Description

@felixarntz

While HarnessAgent supports permissionMode, that property is only about how the harness handles approvals for built-in tools by default. However harnesses also typically support multiple modes which aren't about tool approvals, but rather specific instructions and availability of tools, e.g. regular mode vs plan mode.

HarnessAgent doesn't support an abstraction for that yet, and the individual harness adapters don't provide manual control over it either. We should add a top-level mode concept, given how prevalent it is across harness adapters.

Originally reported as part of #19755.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions