Repository navigation
Closed
Labels
area: agent-cliNew agent CLI providerdifficulty: mediumAbout a dayhackathonPart of the hackathon issue poolpriority: P1Wanted soon
Description
What
Add Goose as an agent provider, so a Switch agent can run on it: created in Switch Console, talking in rooms, asking for approvals like the existing Claude Code, Codex, OpenCode, Cursor and Antigravity agents.
Why
Open-source agent from the Linux Foundation, model-agnostic and widely used.
How
Goose supports ACP natively (goose acp, and ACP is becoming its main interface), so this should be an ACP hooks file on the generic adapter, a plugin entry and one line in each registry.
Follow:
- Adding support for a new agent CLI: the short version
- Add an agent provider: the details
- Reference implementations:
console/packages/agent-providers/src/cursor/andsrc/antigravity/(ACP hooks on the generic adapter)
Done when
- Installed / not installed and signed in / signed out are detected without starting a login, with a "sign in with …" hint
- It appears in Console's create-agent flow (model choice; advanced settings may be empty)
- An agent on it joins a room, reads context and answers a mention
- Tool use shows on the activity card; approvals can be approved and denied from the chat
- A message sent mid-turn is queued;
!interruptstops a turn; the conversation resumes after a restart - Auto-approve works; the chosen model is actually used
- Runs on a headless agent controller machine as well as in Console
- The real-CLI integration test passes (or skips with a stated reason), and its summary is in the PR
- Unit tests for the hooks
- A short video of the steps above, per the PR template
Out of scope
Hosted cloud agents; logins pushed from Console.
Metadata
Metadata
Assignees
Labels
area: agent-cliNew agent CLI providerdifficulty: mediumAbout a dayhackathonPart of the hackathon issue poolpriority: P1Wanted soon
Activity
RajdeepKushwaha5 commentedon Oct 21, 2026
Hi @petr-sandbox @amaudruz, I'd like to work on this one for the hackathon, if it's still available.
I read
new-agent-cli.md,add-an-agent-provider.md,acp/hooks.tsand the Cursor and Antigravity hooks, then read Goose's ACP server source (crates/goose/src/acp/server.rs), its mode enum and its environment-variable docs. Here is the plan.Launch
goose acp. ItsinitializeadvertisesloadSession, session list, close and delete, image and embedded-context prompts, and HTTP MCP. The generic adapter already handles all of these, so the hooks stay small.The important part: Goose approves everything by default
GOOSE_MODEdefaults toauto, which approves every tool call, so without an explicit mode a Switch agent would never ask for approval. Goose'ssession/set_modeaccepts its modes (auto,approve,smart_approve,chat), sosessionModesets one on every session:approval-requiredtoapprove(asks before every tool call);auto-accept-editsandautotosmart_approve(asks only for sensitive calls);full-accesstoauto.The approval conformance checks will confirm the requests actually arrive.
Sign-in
goose configureorGOOSE_PROVIDER/GOOSE_MODEL.initializealways lists the samegoose-providermethod ("Configure Provider"), so the handshake can't tell the two states apart. Instead,checkSignInchecks for a configured provider in the environment or Goose's config, and never starts anything interactive.loginCommandisgoose configure. NoauthMethodIdis sent.Headless machines
Goose's docs warn that keyring access can block forever when no one is there to answer. On the agent controller, sessions run with
GOOSE_DISABLE_KEYRING=1, and Goose then reads secrets from~/.config/goose/secrets.yaml(%APPDATA%\Block\goose\config\secrets.yamlon Windows) or the environment. I'll document this.GOOSE_PROVIDER,GOOSE_MODELandGOOSE_DISABLE_KEYRINGaren't in the pass-through list, so they go ininheritEnv.Registration (the files listed in
add-an-agent-provider.md)The hooks under
src/goose/,acpProviderRuntimeinproviders/registry.ts, the plugin and icon underplugins/src/agents/impl/goose/, its line inplugin-registry.ts, and the entry incore/switch_core/providers/registry.py.Testing
goose.integration.test.tswith the ten conformance scenarios against the real CLI. Skips are recorded with the version and date, and go in the known-limits table.just check,just typecheckandjust testfor the core change.Thanks!
ANAMASGARD commentedon Oct 21, 2026
Hi @amaudruz and @petr-sandbox — I see the existing Goose proposal and would also appreciate consideration if this is still available. I’d focus on a dependable local and headless setup with explicit permission behavior.
console/packages/agent-providers/src/goose/goose-acp.tsonAcpProviderHooksusing the documented stdio launch,goose acp. Register the same id in the runtime, plugin andcore/switch_core/providers/registry.py, with model-provider setup hints rather than assuming a Goose account login.sessionMode: supervised calls must actually reach Switch’s permission handler. Inproviders/registry.ts, pass only necessary provider configuration viainheritEnv; check readiness without starting configuration or inference. Establish a noninteractive credential path on the headless controller before claiming support.describeConformancesuite, especially approve/deny, actual chosen model, HTTP MCP, queued input, interrupt and restart/resume. Verify room context and tool activity in Console and on a headless machine, record exact CLI/backend versions and legitimate skip reasons, and include the short room demo. None of these tests has been run yet.Please consider me for assignment if available. I’ll coordinate the final issue choice and begin implementation only after assignment and within the allowed hackathon window.
petr-sandbox commentedon Oct 22, 2026
Thank you all for your interest and participation in our hackathon! In the interest of fairness, we will not be assigning issues to individual participants but instead let anyone try and solve any number of them.
shivamcuj commentedon Oct 26, 2026
Hi @petr-sandbox, I would like to be assigned to this issue.
Plan: I will add Goose as an agent provider using its native goose acp mode via ACP adapter hooks in console/packages/agent-providers/src/goose/, add readiness and login detection, register the plugin in Console, and write unit tests for the hooks. Please assign this to me!
mohanarora3 commentedon Oct 29, 2026
@petr-sandbox I'm working on this one for the hackathon. I read
new-agent-cli.md,add-an-agent-provider.md,acp/hooks.ts, the generic adapter and the Cursor and Antigravity hooks. I also read Goose's ACP server source (aaif-goose/goose,crates/goose/src/acp/).Proposed Approach
Goose fits the generic adapter well:
goose acpadvertisesloadSession, image and embedded-context prompts, and HTTP MCP.modeandmodelas session config options.So this is a hooks file, a plugin, one line in each registry and one entry in core's table. Three Goose behaviours do need hooks, though. They're the main part of this plan (section 3).
goose acpover stdio, with no extra flags.steering: false, so a message sent mid-turn queues.resume: true, throughsession/load. Goose keeps its sessions in its own SQLite store, so they survive a restart.approvals: trueandmodelSwitchInSession: true.userInput: false. Goose asks questions through ACP form elicitation, and the generic client doesn't advertise elicitation.authMethodId.initializealways listsgoose-provider("Configure Provider"), and all that method does is tell a person to rungoose configure.goose configureor withGOOSE_PROVIDER/GOOSE_MODEL.checkSignInrunsgoose info -vwith the session's environment:GOOSE_PROVIDERandGOOSE_MODEL(from the environment orconfig.yaml) without calling the model.goose info --check, because that sends a real model request.gooseon PATH, the check says so instead of reporting "signed out".loginCommandisgoose configure.a) Goose mode for each runtime mode
Goose's default mode is
auto, which approves every tool call. A new ACP session starts in the user's globalGOOSE_MODE. SosessionModealways sets a mode. It applies to that session only: Goose saves it on the session and never writes it back to the global config.approveapprovesmart_approveautochatis never used.b) "Always" is permanent and global in Goose
allow_always,allow_once,reject_onceandreject_always, named by those raw ids.allow_alwayswrites "always allow" for that tool into Goose's globalpermission.yaml(agents/state_machine/ops_tool_approval.rs).allow_alwaysas "allow for this session", so Switch must not offer it for Goose.allow_onceandreject_once, with readable labels ("Allow once", "Reject") instead of the raw ids.c) Goose doesn't type its tool calls
Every Goose tool call and permission request has kind
other(ToolKind::default()inserver/tool_calls/conversion.rs). Without hooks, that means:approvemode, Switch's own MCP tools ask for permission too, so the agent would ask before replying in the room.The hooks fix this:
mcpServerOfreads_meta.goose.toolCall.extensionName. Goose names an ACP-provided server's tools<server>__<tool>. With this, Switch's own servers are approved without asking, as they are for the other providers.itemTypereads_meta.goose.toolCall.toolName:developer__shell→command_executiondeveloper__writeanddeveloper__edit→file_changesummon__delegate→subagent_meta, only Goose's generated title (developer: shell · …). Thepermissionhook sets kindexecuteoreditfrom that prefix. Anything it doesn't recognise staysotherand asks.secrets.yaml, andGOOSE_DISABLE_KEYRINGforces that.inheritEnvpasses throughGOOSE_PROVIDER,GOOSE_MODELandGOOSE_DISABLE_KEYRING. Provider keys (OPENAI_API_KEY,ANTHROPIC_API_KEY…) already pass through.GOOSE_DISABLE_KEYRINGon. On a desktop it would hide keys Goose saved in the keychain.GOOSE_DISABLE_KEYRING=1 goose configure, or use environment keys.add-an-agent-provider.md)src/goose/goose-acp.ts, andacpProviderRuntime(gooseAcp)inPROVIDER_RUNTIMES.plugins/src/agents/impl/goose/(index.ts,icon.ts), modelled on Antigravity's:mcpandpromptset tonone, and abuildCommandthat throws.brew install block-goose-clion macOS;CONFIGURE=falseon macOS and Linux, so installing doesn't start the interactivegoose configure;goose, labelGoose,sign_in_command="goose configure", and toolsshell,write,edit,treeanddelegate.Questions for you
The
permissionhook in 3b and 3c rewrites the request's options and kind, then returnsundefinedso the generic adapter's auto-approval still applies. No hook does that today. Is that fine, or would you rather have a small optional hook in the generic adapter for it?A tool someone already set to "Always allow" in Goose's own
permission.yamlruns without asking, even in approval-required. Switch can't see that without moving Goose's config dir (GOOSE_PATH_ROOT), which would also hide the provider setup. I'd document it as a known limit. OK?Tests, QA and video
goose infoparsing (configured, missing, and a differentgooseon PATH);mcpServerOfanditemTypefrom_meta.goose.integration.test.tswith the 10 conformance scenarios.user-inputto be skipped, because of elicitation.goose session listand record it if it does.!interrupt;console/: build, typecheck, lint, format check and tests;just check,just typecheckandjust testfor the core change.petr-sandbox commentedon Oct 29, 2026
Sorry for the contradictory instructions earlier: issues are now assigned to everyone who expressed interest, and the resulting PRs will be reviewed after the hackathon time window. Only one PR will be selected per issue.
AbarnaaSree commentedon Oct 29, 2026
Hi @petr-sandbox and @amaudruz 👋
I’m interested in contributing to the Add Goose as an agent provider issue (#780) for the Flip the Switch Hackathon. I’ve reviewed the requirements and would like to help implement the integration using Switch’s existing ACP adapter, along with the necessary tests.
I noticed that PR #1143 has already been submitted and several contributors are involved. Would an additional contribution still be useful? I’d appreciate your guidance before getting started.
Thank you! 🙌
napraveen commentedon Oct 29, 2026
Hi @petr-sandbox and @amaudruz , I have implemented the Goose agent provider over ACP with non-interactive sign-in detection and permission mode mapping, verified with 100% passing unit and conformance integration tests and a demo video. PR is open for review at #1149: #1149
4 remaining items
feat(agent-providers): add Goose as an agent provider
Souravrajvi0 commentedon Nov 4, 2026
I've opened #1439 (draft) for this. I built it against a real
goose acpsession (Goose 1.57.0, Ubuntu 24.04), driven over raw ACP with every message recorded. A few things Goose actually does differ from what this thread assumed:_meta: nullandkind: "other". The title isshell · <command>/write · <path>/edit · <path>, notdeveloper: shell · …. A hook that matches ondeveloper:never fires, so every command shows as a generic tool approval and auto-accept-edits never accepts an edit. feat(agent-providers): add Goose as an agent provider (#780) #1439 reads the kind from the title prefix plus the tool'srawInput.allow_alwaysis machine-wide and permanent. Choosing it wrotealways_allow: [shell]to~/.config/goose/permission.yaml. The generic adapter would show it as "allow for this session", so feat(agent-providers): add Goose as an agent provider (#780) #1439 offers only the once options.auto(approves everything), confirming the need to set a mode on every session.tool_callnames the server in_meta.goose.toolCall.extensionName, and the permission reuses itstoolCallId. Verified in approval-required mode: the echo tool ran with no prompt.goose info -vprintsGOOSE_PROVIDER/GOOSE_MODELonce configured and never prints the key, so sign-in is checked without a model call.Real-CLI conformance so far: simple-turn, file-write, approval-required, approval-declined and resume pass. Interrupt and MCP work in logged runs but hit the free Gemini tier's quota inside the suite. I'm rerunning those, plus subagent, steer and user-input, with more quota, and will update the PR with the full summary and the Console video.
@petr-sandbox happy to be assigned if that helps.
sohamsssssssssssssssss commentedon Nov 4, 2026
Hi @petr-sandbox and @amaudruz 👋
I’d like to be assigned to Add Goose as an agent provider (#780) for the Flip the Switch Hackathon. I already have a working provider on goose acp (hooks on the generic adapter, mode mapping, readiness check, Console plugin, registrations), tested live in Console and Mattermost with approve, deny and !interrupt. I’m finishing the remaining acceptance items now. Could you assign it to me?
Thank you! 🙌
BUTTERFINGERS7498 commentedon Nov 4, 2026
Hi @petr-sandbox, I'd like to add Goose through
goose acpand reuse the existing adapter. I'll check that it picks up the chosen model, asks for permissions when it should, and can resume after a restart. I'll cover both Console and the headless controller, and note anything I couldn't verify with a real model account.whatever0148-cmd commentedon Nov 5, 2026
@petr-sandbox I would like to work on this. Plan:
goose acpon the generic ACP adapter with Goose-specific hooks for its sign-in and model provider handling, registered next to cursor, and the conformance suite run on the real binary. Local result on goose 1.56.0 with a free Gemini model: 9 of 10 pass, 1 skipped with the reason recorded in the README.petr-sandbox commentedon Nov 6, 2026
@whatever0148-cmd I've assigned you.
ayushkumar2601 commentedon Nov 6, 2026
Hi @petr-sandbox — I've implemented Goose as an agent provider via native ACP over stdio in #1653. It includes ACP hooks (
goose acpwith--auto-approve true), non-intrusive auth check, Console plugin & icon, Core registry entries, and full unit test coverage. Ready for review!feat(agent-providers): add Goose as an agent provider (sandbox-quantu…
feat(agent-providers): add Goose as an agent provider (sandbox-quantu…
feat(agent-providers): add Goose as an agent provider (sandbox-quantu…
feat(agent-providers): add Goose as an agent provider
Merge pull request #1439 from Souravrajvi0/feat/goose-provider