Skip to content

feat(providers): add Auggie agent provider (#785) - #1345

Open
Deepak-Kambala wants to merge 2 commits into
sandbox-quantum:mainfrom
Deepak-Kambala:feat/auggie-provider-785
Open

Deepak-Kambala wants to merge 2 commits into
sandbox-quantum:mainfrom
Deepak-Kambala:feat/auggie-provider-785

Conversation

@Deepak-Kambala

@Deepak-Kambala Deepak-Kambala commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Closes #785

What this changes

Adds support for Augment Code's Auggie CLI (@augmentcode/auggie, tested on 0.36.0/0.37.0) as an agent provider (#785). Auggie runs natively over the Agent Client Protocol (ACP) via auggie --acp.

  • Workspace Indexing & Data Governance: Rather than passing --allow-indexing at launch, the adapter intercepts Auggie's workspace-indexing-permission ACP request. In every runtime mode (including full-access), it requests explicit session-scoped user consent (allow_once or reject_once). Permanent "Always" and "Never" options are omitted to prevent unwanted mutation of user CLI configs, and requests outside an active turn are cleanly cancelled (which Auggie treats as skip for the session).
  • Leak-Free Authentication Probing: Uses auggie account status --json for non-interactive sign-in detection without invoking interactive login flows or dumping raw bearer credentials to stdout pipes. Gracefully parses exit codes and stderr for auggie login guidance, while preserving direct AUGMENT_SESSION_AUTH environment support for containerized and headless environments.
  • HTTP MCP Capability Fallback: Auggie accepts HTTP MCP servers with authorization headers in session/new, but omits advertising mcpCapabilities during initialize. The generic ACP adapter hook (mcpCapabilities: { http: true }) enables Switch's loopback MCP server to attach reliably while respecting any explicit vendor refusals.
  • Prompt Capabilities: Declares promptCapabilities: { image: true }.
  • Registries & Telemetry:
    • Registered in Core provider registry (core/switch_core/providers/registry.py) and schema tests.
    • Registered in Console plugin registry (console/packages/plugins/src/agents/impl/auggie/) with official Augment SVG icon.
    • Wired into official_templates/switch-buddy/template.yaml and desktop renderer telemetry schemas and drift tests.

How it was tested

  • Unit Tests:
    • pnpm exec vitest run src/auggie/auggie-acp.test.ts (15/15 passed): launch arguments (auggie --acp), tool auto-approval in full-access, user approval in approval-required, session-scoped indexing prompts in full-access & approval-required, account status --json parsing, and environment auth checking.
    • pnpm exec vitest run src/acp/acp-adapter.test.ts (28/28 passed): verified HTTP MCP capability negotiation and precedence.
  • Core Tests:
    • uv run pytest core/tests/switch_core/providers/test_provider_registry.py core/tests/switch_core/gateway/test_known_agents.py core/tests/switch_core/management/test_advanced_config.py core/tests/switch_core/test_official_templates.py (100/100 passed).
  • Typecheck & Linter:
    • pnpm --filter @switch-console/agent-providers typecheck (clean).
    • pnpm --filter @switch-console/desktop typecheck (clean).
    • pnpm -r run lint (0 errors, 0 warnings across all 8 workspace projects).
    • ruff check core & ruff format --check core (clean, 1360 files checked).

Adding or changing an agent CLI

CLI and version:
@augmentcode/auggie 0.37.0

Real-CLI test summary:

✓ src/auggie/auggie.integration.test.ts (10 tests | 10 skipped)
  ✓ auggie conformance (10)
    ↓ simple-turn [auggie unavailable: the Auggie binary is not on PATH]
    ↓ file-write-full-access [auggie unavailable: the Auggie binary is not on PATH]
    ↓ approval-required [auggie unavailable: the Auggie binary is not on PATH]
    ↓ approval-declined [auggie unavailable: the Auggie binary is not on PATH]
    ↓ interrupt [auggie unavailable: the Auggie binary is not on PATH]
    ↓ steer-mid-turn [auggie unavailable: the Auggie binary is not on PATH]
    ↓ resume [auggie unavailable: the Auggie binary is not on PATH]
    ↓ user-input [auggie unavailable: the Auggie binary is not on PATH]
    ↓ subagent [auggie unavailable: the Auggie binary is not on PATH]
    ↓ mcp-registered [auggie unavailable: the Auggie binary is not on PATH]

Test Files  1 passed (1)
     Tests  10 skipped (10)

Video:

  • 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

Demo video: https://github.com/Deepak-Kambala/switch/releases/download/v-demo/auggie-demo.mp4

@Deepak-Kambala

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Auggie as an agent provider

1 participant