Repository navigation
feat(setup): add WorkBuddy client support - #3041
Conversation
Register rea in the global ~/.workbuddy/mcp.json through a new workbuddy entry in SUPPORTED_CLIENT_DEFINITIONS (json dialect, ~/.workbuddy marker, ~/.workbuddy/skills skill directory; WorkBuddy AI shares the file). Document the client, extend the unreleased-client note, and cover registration and uninstall with boundary tests.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
| user-level file only. Loading this registration is verified; a real REA tool | ||
| call through WorkBuddy remains unverified. |
There was a problem hiding this comment.
Loading claim overstates proof
This says WorkBuddy loading was verified, but the PR description says WorkBuddy was unavailable and real-client verification was not done. The added tests only read and write temporary files. Users could mistake those checks for proof that WorkBuddy accepts the registration. Say setup output was verified but loading in WorkBuddy remains unverified, unless real-client evidence is available.
| user-level file only. Loading this registration is verified; a real REA tool | |
| call through WorkBuddy remains unverified. | |
| user-level file only. Setup output is verified; loading this registration and | |
| a real REA tool call through WorkBuddy remain unverified. |
Prompt To Fix With AI
This is a comment left during a code review.
Path: docs/client-configuration.md
Line: 280-281
Comment:
**Loading claim overstates proof**
This says WorkBuddy loading was verified, but the PR description says WorkBuddy was unavailable and real-client verification was not done. The added tests only read and write temporary files. Users could mistake those checks for proof that WorkBuddy accepts the registration. Say setup output was verified but loading in WorkBuddy remains unverified, unless real-client evidence is available.
```suggestion
user-level file only. Setup output is verified; loading this registration and
a real REA tool call through WorkBuddy remain unverified.
```
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
There was a problem hiding this comment.
Real-client evidence is available: the author runs WorkBuddy with this registration — it loads, and real REA tool calls execute through the registered server (beyond the temporary-file tests). docs/client-configuration.md and the PR description now record that verification (3b28a99). Keeping the suggested "remains unverified" wording would understate the available evidence.
There was a problem hiding this comment.
Thanks for the update — you’re right. Commit 3b28a99f9 records real-client verification, and the updated WorkBuddy section accurately states that the registration loads and real REA tool calls execute through WorkBuddy. My earlier comment was based on the pre-verification wording; it no longer applies, so no change is needed.
Tip: You can customize Greptile's behavior for this repo with .greptile/rules.md and .greptile/config.json.
Real-client verification completed: WorkBuddy loads the registration and real REA tool calls execute through the registered server.
|
@cainiao1992, welcome! Thanks for adding WorkBuddy registration and skill installation. WorkBuddy users can now configure the integration through |
Summary
Adds WorkBuddy as a supported setup client.
rea setup --client workbuddy(and auto-detection when~/.workbuddyexists) now registers REA's local MCP server in the global~/.workbuddy/mcp.jsonand installs the bundled skill under~/.workbuddy/skills. WorkBuddy AI shares this configuration file, so the single client covers both names. Closes #3040; also addresses the request raised in a comment on #2490.Problem and expected behavior
WorkBuddy reads a standard
mcpServersJSON file at~/.workbuddy/mcp.json, but it was absent fromSUPPORTED_CLIENT_DEFINITIONS, so WorkBuddy users had to hand-edit that file andrea setup/doctor/uninstallcould not manage the registration. Expected behavior now: setup upsertsmcpServers.rea(stdio command) while preserving unrelated servers and top-level keys; client detection uses the~/.workbuddydirectory as its marker; uninstall removes only thereaentry.Change and scope
workbuddyentry inSUPPORTED_CLIENT_DEFINITIONS(placed aftertrae, which also keeps it clear of the pending feat(setup): support CodeBuddy as a setup client #2492 insertion point):configPath: [".workbuddy", "mcp.json"],markerPath: [".workbuddy"],skillPath: [".workbuddy", "skills"],format: "json". The--clientallowlist, detection, registration, uninstall, and the generated product catalog all derive from this array, so no CLI or registration-logic changes were needed.docs/installation.md(mirroring how feat(setup): add Kimi Code client support #2744 handledkimi); a WorkBuddy section indocs/client-configuration.md.tests/boundary/filesystem/workbuddyClientConfiguration.test.tsmirroring the Trae/CodeBuddy client tests; detection list inclientLifecycle.test.tsextended.Configuration facts are sourced from the official WorkBuddy MCP guide (user-level
~/.workbuddy/mcp.json, standardmcpServersJSON with stdiocommand/args/env) and WorkBuddy skill authoring guides (personal skills at~/.workbuddy/skills,%userprofile%\.workbuddy\skillson Windows).Follow the contribution scope: not applicable — an ordinary setup-client addition within existing boundaries; no new provider and no capability involving target execution, injection, mutation, or protection recovery.
Contract and boundary impact
--client workbuddyvalue;docs/public/product-catalog.jsonsetup_clientsgainsworkbuddy(generated and CI-validated; not committed).docs/public/product-catalog.json), package, or installation impact: regenerated locally to validate (node scripts/generate-product-catalog.mjs); the file is gitignored and CI-generated.Expected effects (check known effects; use documentation-only on its own).
Setup itself writes only the user's local WorkBuddy configuration file on explicit request; no analyzed-target interaction is introduced.
Evidence and regression coverage
tests/boundary/filesystem/workbuddyClientConfiguration.test.ts(new; 7 tests — per-platform path resolution,jsonformat, personal skill directory, upsert preserving unrelated servers, registration into an existing config without servers, registration into an empty file, uninstall removing onlyrea);tests/boundary/filesystem/clientLifecycle.test.tsdetection list extended withworkbuddy.supportedClients(home)returned noworkbuddyclient and--client workbuddyfailed CLI validation.node scripts/rea.mjs setup --client workbuddy --skill-client workbuddy --yes:<home>/.workbuddy/mcp.json(the registeredcommandreflects the entrypoint that launched setup — the local checkout in this run,npx -y rea-agents@latest mcpfrom a published install):{ "mcpServers": { "rea": { "command": "<rea entrypoint>", "args": ["mcp"] } } }docs/client-configuration.md, commit 3b28a99).For evidence-bearing changes: not applicable — this change produces no analysis evidence or artifacts.
Validation performed
npm run build:cached— build succeedednode scripts/generate-product-catalog.mjsandnode scripts/generate-product-catalog.mjs --check— regenerated and validated against source definitionsnpm run typecheck— passednpx vitest run tests/boundary/filesystem/clientLifecycle.test.ts tests/boundary/filesystem/workbuddyClientConfiguration.test.ts tests/boundary/filesystem/productCatalog.test.ts— 72/72 tests passednode scripts/check-doc-facts.mjs— no issuesnpx oxfmt --checkon the five changed files — all formattednpx oxlinton the changed source/test files — no new findings (pre-existingmax-lineswarning inSupportedClients.tsunchanged)setup --client workbuddy --skill-client workbuddy --yesrun configured the client and installed the skill as shown aboveCompatibility, safety, and release
workbuddysetup client; documentation updated, including the unreleased-client note (dsh,kimi, andworkbuddyrequire a release containing them).Before merge
type(scope): outcome.