feat: add CodeBuddy agent support#482
Open
studyzy wants to merge 1 commit into
Open
Conversation
Signed-off-by: DevinZeng <studyzy@gmail.com>
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.
Summary
Add full support for CodeBuddy as a supported coding agent, bringing the total from 11 to 12 auto-detected agents.
CodeBuddy follows the same configuration pattern as Claude Code, using
~/.codebuddy/instead of~/.claude/and~/.codebuddy/.mcp.jsonfor MCP server registration.Changes
Core (
src/cli/)bool codebuddyfield tocbm_detected_agents_t; declarecbm_upsert_codebuddy_hooks,cbm_remove_codebuddy_hooks,cbm_upsert_codebuddy_session_hooks,cbm_remove_codebuddy_session_hookscbm_codebuddy_config_dir()(honors$CODEBUDDY_CONFIG_DIR, falls back to~/.codebuddy), detection incbm_detect_agents(),install_codebuddy_config(),uninstall_codebuddy(), PreToolUse + SessionStart hooks, hook gate script + session reminder script installersDiscovery (
src/discover/).codebuddyto skip directory list (IDE category)CLI help (
src/main.c)Setup scripts
configure_codebuddy()— interactive MCP config for~/.codebuddy/.mcp.jsonConfigure-CodeBuddy— PowerShell equivalent, honors$env:CODEBUDDY_CONFIG_DIRTests
cli_detect_agents_finds_codebuddy,cli_detect_agents_finds_codebuddy_via_envcli_upsert_codebuddy_hook_fresh,cli_remove_codebuddy_hooks,cli_codebuddy_session_hook_parityskip_codebuddyDocumentation
Test Plan
make -f Makefile.cbm test— 5610 passed (was 5607, +3 new tests)make -f Makefile.cbm lint-format— cleanmake -f Makefile.cbm lint-no-suppress— cleanbash -n scripts/setup.sh— syntax OKscripts/build.sh) — OK