feat: add CodeBuddy agent support#115
Open
studyzy wants to merge 2 commits into
Open
Conversation
Adds CodeBuddy as a launchable coding agent alongside Claude Code, Codex, and OpenCode. CodeBuddy routes its Anthropic Messages API traffic through a local Edgee gateway via the CODEBUDDY_BASE_URL env var, mirroring the headroom project's codebuddy provider. Hosted mode is not yet supported (no documented header injection mechanism); only --local-gateway flow is wired up. Changes: - New launch subcommand: edgee launch codebuddy (local-gateway only) - Registered codebuddy provider in config Profile, auth login mappings, settings PROVIDERS, and alias Agent enum - Reuses Claude statusline auto-install on first launch (consistent with codex/opencode) - Updated README, CLAUDE.md, architecture.md, and crate READMEs
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.
Description
Adds CodeBuddy as a launchable coding agent alongside Claude Code, Codex, and OpenCode.
edgee launch codebuddystarts a local Edgee gateway and routes CodeBuddy's traffic through it via theCODEBUDDY_BASE_URLenv var.Motivation
CodeBuddy is an Anthropic Messages API-compatible coding agent. The local-gateway flow lets Edgee apply its tool-output compression to CodeBuddy sessions, matching what's already available for Claude Code / Codex / OpenCode. The implementation mirrors the headroom project's codebuddy provider.
Changes
edgee launch codebuddy(local-gateway only). SetsCODEBUDDY_BASE_URLto the local gateway address so CodeBuddy's/v1/messagesrequests flow through Edgee's compression pipeline.config.rs: addedcodebuddyfield toProfile.auth/login.rs: addedcodebuddytoagent_label,coding_assistant_name,provider_config_mut,provider_config.settings.rs: addedcodebuddytoPROVIDERS(routing not enabled, same as opencode).alias.rs: addedCodebuddyvariant toAgentenum +CODEBUDDY_ALIASspec;edgee aliasnow installs acodebuddyshim too.ensure_first_run_installed()on first launch (consistent with codex/opencode).CLAUDE.md,doc/architecture.md, and thecompression-layer/gateway-corecrate READMEs.Hosted mode is intentionally not supported yet — there's no documented way to inject Edgee's
x-edgee-api-key/x-edgee-session-idheaders into CodeBuddy's outbound requests. Only the--local-gatewayflow is wired up.Testing
cargo fmt --all -- --checkpassescargo clippy --workspace -- -D warningspasses (no issues)cargo test --allpasses (578 passed, 0 failed)codebuddyinauth/login.rsandalias.rscargo checkpassesChecklist
cargo fmt)