feat(install): add CodeBuddy Code CLI platform support#584
Open
chuckiefan wants to merge 7 commits into
Open
Conversation
|
Clean addition! CodeBuddy support follows the existing platform install pattern. The skills and hooks installation matches the structure used for other platforms. |
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
Adds
codebuddyas a new platform tocode-review-graph install --platform <name>, supporting the CodeBuddy Code CLI (Tencent's Claude Code–style terminal tool). The IDE product form is intentionally out of scope — it has no file-system config entry point.Running
code-review-graph install --platform codebuddynow produces:<repo>/.mcp.json— MCP server entry (shared with claude; format is identical)<repo>/CODEBUDDY.md— startup instructions (reuses_CLAUDE_MD_SECTION)<repo>/.codebuddy/skills/<slug>/SKILL.md— 4 skills (explore / review / debug / refactor)<repo>/.codebuddy/settings.json—PostToolUse+SessionStarthooks (same schema as Claude)Implementation notes
codebuddyadded toPLATFORMSand_PLATFORM_INSTRUCTION_FILES; no special-case branching in install loop._merge_hooks_into_settingsextraction. Pulled backup + dedup-merge + write logic out ofinstall_hooks(Claude) soinstall_codebuddy_hookscan reuse it. External APIinstall_hooks(repo_root, platform="claude") -> Noneunchanged; 53 hooks regression tests pass.install_platform_configs. Sinceclaudeandcodebuddyshare<repo>/.mcp.json,--platform allpreviously wrote the file twice. Now the first platform wins the physical write; all sharing platforms are credited inconfigured.~/.codebuddy/settings.json(enabledMcpjsonServers) is not auto-written — it affects every project.Design & plan
docs/superpowers/specs/2026-06-25-codebuddy-platform-support-design.mddocs/superpowers/plans/2026-06-25-codebuddy-platform-support.mdTest plan
uv run pytest tests/— 1293 passed, 1 skipped, 2 xpassed (no regressions)uv run ruff check code_review_graph/— cleanuv run mypy code_review_graph/— clean (60 source files)install --platform codebuddyproduces all 4 expected artifactsinstall --platform allwrites.mcp.jsonexactly once while crediting bothClaude CodeandCodeBuddy Code0c9a5ff..head09270d4)