Repository navigation
feat(agent-providers): add Goose as an agent provider (#780) - #1439
Merged
petr-sandbox merged 8 commits intoNov 11, 2026
Merged
Conversation
|
All contributors have signed the CLA. ✅ |
Souravrajvi0
force-pushed
the
feat/goose-provider
branch
from
November 4, 2026 04:13
ff768c3 to
c67c2b9
Compare
10 tasks
Contributor
Author
|
I have read the CLA Document and I hereby sign the CLA |
Souravrajvi0
marked this pull request as ready for review
November 4, 2026 17:22
Souravrajvi0
requested review from
abeldantas,
agent-runner353,
amaudruz,
christian-mcdermott,
lbangalosbt,
massimo-sandboxaq,
niall-sandboxaq,
petr-sandbox,
raullopez-sandbox and
simonflk-sb
as code owners
November 4, 2026 17:22
Run Goose through `goose acp` on the generic ACP adapter, with hooks for what Goose 1.57.0 does differently, each checked against a real session: - Goose starts every session in `auto`, which approves every tool call, so each session is put in the Goose mode for its runtime mode. - Its permission requests carry no `_meta` and always the kind `other`; the kind is read from the title (`shell · …`, `write · …`) and the tool's arguments, so commands and file changes ask as such and auto-accept-edits accepts edits. - It offers `allow_always`, which Goose writes to its machine-wide `permission.yaml`; only the once options are offered. - Tool calls name their extension in `_meta`, which gives the session's MCP servers and the item type; Goose's own extensions are not MCP. - Sign-in reads the provider and model `goose info -v` resolves, without a model call, and tells a pressly/goose binary apart. Closes sandbox-quantum#780
Register goose in switch-buddy telemetry types, document the user-input skip for ACP form elicitation, and add a known-limits row for Goose 1.57.0.
Extend management and switch-buddy template tests for the Goose registry entry and advanced-config schema.
Runs interrupt, mcp-registered, subagent, and steer-mid-turn with 65s spacing, then the full goose integration file.
Note spaced-scenario runs on Amazon Linux 2023 and the user-input skip.
The remaining-scenarios script now runs each conformance case in isolation with 65s gaps instead of a final back-to-back vitest file run, which exhausts Gemini free-tier quotas. Ruff-format the goose provider list assertion.
No other provider ships one. The PR description records how the scenarios were run one at a time to stay within free-tier limits.
petr-sandbox
force-pushed
the
feat/goose-provider
branch
from
November 11, 2026 16:50
f553066 to
3db856a
Compare
This was referenced Nov 20, 2026
This was referenced Nov 20, 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.
What this changes
Adds Goose as an agent provider. Goose runs as
goose acpon the generic ACP adapter, so this is a hooks file, a plugin, a line in each registry and an entry in core's provider table.Three files outside the ones
add-an-agent-provider.mdlists also neededgoose, because each keeps its own hardcoded provider list that the registrations don't reach: the switch-buddy telemetry provider type (buddy-telemetry.ts), the renderer telemetry event type (renderer-events.ts), and the switch-buddy template's default providers (switch-buddy/template.yaml). The typecheck and core tests caught them. They could be derived from the registry in a follow-up, so the next provider doesn't need them.Closes #780
What Goose does differently, and how it was found
Every hook below comes from a real
goose acpsession (Goose 1.57.0, Ubuntu 24.04 under WSL2). I drove it over raw ACP and recorded each JSON-RPC message before writing the hooks. Some of what Goose sends differs from what the issue thread assumed.auto("Automatically approve tool calls"), whatever the runtime mode.sessionMode: approval-required and auto-accept-edits →approve, auto →smart_approve, full-access →auto.session/set_modeis answered withcurrent_mode_update.session/request_permissionhas_meta: nullandkind: "other". The title isshell · <command>,write · <path>oredit · <path>, notdeveloper: shell · ….permissionsetskindtoexecuteoreditfrom the title prefix, and only when the tool'srawInputfits (commandfor shell,pathfor write and edit). Without this, every command shows as a generic tool approval and auto-accept-edits never accepts an edit.allow_always,allow_once,reject_once,reject_always. Choosingallow_alwayswrotealways_allow: [shell]to~/.config/goose/permission.yaml, a machine-wide rule that outlives the session.allow_onceandreject_onceare offered, labelled "Allow once" and "Reject". The generic adapter would otherwise showallow_alwaysas "allow for this session".tool_callupdate carries_meta.goose.toolCall = { extensionName, toolName }, e.g.developer/shell,developer/write,developer/edit. An MCP server's tools carry the server's name. The permission request reuses the sametoolCallId.mcpServerOfreturns the extension unless it is one of Goose's bundled extensions (the listgoose info -vprints), so the generic adapter's per-call server map makes the session's own MCP tools run without asking.itemTypemaps shell, write, edit andsummon/delegate.initializealways offers the onegoose-providermethod ("Configure Provider"), configured or not, and already advertises image and embedded-context prompts and HTTP MCP.authMethodIdand nopromptCapabilitiesoverride.goose info -vprintsGOOSE_PROVIDER: …andGOOSE_MODEL: …under "goose Configuration" once configured (from the environment orconfig.yaml), and neither line when not. It never prints the provider's key (checked).checkSignInrunsgoose info -vand reads those two lines, with no model call. Output withoutgoose Version:is reported as a differentgooseon PATH (pressly/goose, the migration tool, uses the same name).inheritEnvpassesGOOSE_PROVIDER,GOOSE_MODELandGOOSE_DISABLE_KEYRING. Provider keys such asGOOGLE_API_KEYandOPENAI_API_KEYare already passed through.The icon is Goose's mark from
block/goose(documentation/static/img/goose.svg, Apache-2.0), reduced to its viewBox and single path.How it was tested
Unit tests (
src/goose/goose-adapter.test.ts, 6 passing). They are built on the payloads Goose actually sent:session/set_modesent on start;_meta: nullopens acommand_execution_approvalwith only Allow once / Reject / Cancel, and answersallow_once;goose info -vparsing: configured, unconfigured, provider without model, and a pressly/goose binary.Checks run
pnpm -r run typecheckandpnpm run format:checkinconsole/(clean).pnpm vitest run --project node --project main-dbinapps/switch-console-desktop: 5416 passed, 6 skipped (browser project not run).just check,just typecheckat repo root (clean).test_provider_registry.pypasses.Adding or changing an agent CLI
CLI and version: Goose 1.57.0 (
goose acp).Real-CLI test summary
Recorded on Amazon Linux 2023.12 (self-hosted worker),
google/gemini-3-flash-preview,GOOSE_DISABLE_KEYRING=1, secrets in~/.config/goose/secrets.yaml. Scenarios run one at a time with 65s between them (pnpm exec vitest run src/goose/goose.integration.test.ts -t "<scenario>"). Earlier WSL2 runs used the same adapter against Gemini free tier.9/10 conformance scenarios pass;
user-inputis a documented skip (seegoose.integration.test.tsandconsole/packages/agent-providers/README.md).A single uninterrupted full-file run on the same host still hit Gemini free-tier daily limits (
turn.completed→erroron later scenarios). Spaced single-scenario runs are the reliable way to finish the suite on free tier.Headless agent-controller (Linux): Amazon Linux 2023.12; local Switch (
just up, switch-core withagent_management);switch-agent-controller enroll+run --env-file(Goose env);doctorreports goose authenticated; managed goose agent created, host started, added to bridged Mattermost Town Square room. No browser recording on this VM (DISPLAYunset).Video (Console): https://github.com/Souravrajvi0/switch/releases/download/goose-demo-video/GOOSE_AGENT_small.mp4 (3 min 21 s, 7.1 MB)
Recorded on Windows 11 + WSL2 (Ubuntu 24.04), Switch Console from this branch with the local server built from the checkout, Goose 1.57.0 on Gemini:
0:10: Goose signed in in Agent providers (
Found v1.57.0)0:45: creating an agent with Goose and setting its model
1:20: messaging the agent in its chat (a Switch room)
2:30: the shell command asks first,
shell · echo demo > demo.txt, with only Allow once / Reject / Cancel (no machine-wide "always allow")3:05: approved, the command runs,
switch: post messageruns without asking (the session's own MCP server), and the agent replies "Done — created demo.txt"the CLI marked as signed in, in Switch Console
creating an agent with it and picking a model
the agent replying in a room
a shell command asking for permission first