Skip to content

feat(setup): add WorkBuddy client support - #3041

Merged
morluto merged 2 commits into
morluto:mainfrom
cainiao1992:feat/workbuddy-setup-clients
Oct 14, 2026
Merged

morluto merged 2 commits into
morluto:mainfrom
cainiao1992:feat/workbuddy-setup-clients

Conversation

@cainiao1992

@cainiao1992 cainiao1992 commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds WorkBuddy as a supported setup client. rea setup --client workbuddy (and auto-detection when ~/.workbuddy exists) now registers REA's local MCP server in the global ~/.workbuddy/mcp.json and 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 mcpServers JSON file at ~/.workbuddy/mcp.json, but it was absent from SUPPORTED_CLIENT_DEFINITIONS, so WorkBuddy users had to hand-edit that file and rea setup/doctor/uninstall could not manage the registration. Expected behavior now: setup upserts mcpServers.rea (stdio command) while preserving unrelated servers and top-level keys; client detection uses the ~/.workbuddy directory as its marker; uninstall removes only the rea entry.

Change and scope

  • New workbuddy entry in SUPPORTED_CLIENT_DEFINITIONS (placed after trae, 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 --client allowlist, detection, registration, uninstall, and the generated product catalog all derive from this array, so no CLI or registration-logic changes were needed.
  • Docs: supported-agents table row and unreleased-client note in docs/installation.md (mirroring how feat(setup): add Kimi Code client support #2744 handled kimi); a WorkBuddy section in docs/client-configuration.md.
  • Tests: new tests/boundary/filesystem/workbuddyClientConfiguration.test.ts mirroring the Trae/CodeBuddy client tests; detection list in clientLifecycle.test.ts extended.

Configuration facts are sourced from the official WorkBuddy MCP guide (user-level ~/.workbuddy/mcp.json, standard mcpServers JSON with stdio command/args/env) and WorkBuddy skill authoring guides (personal skills at ~/.workbuddy/skills, %userprofile%\.workbuddy\skills on 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

  • Semantic owner and earliest changed stage: setup / client registration (application layer).
  • Contribution scope fit and linked maintainer decision: not applicable (ordinary setup-client addition; feature request [Feature] Support WorkBuddy (and WorkBuddy AI) as a setup client #3040 linked).
  • CLI and MCP/tool-catalog contract: new accepted --client workbuddy value; docs/public/product-catalog.json setup_clients gains workbuddy (generated and CI-validated; not committed).
  • Provider, bridge, target-format, or platform compatibility: none.
  • Evidence, artifact, provenance, or reconstruction contract: none.
  • Target selection, authority, upstream behavior, and cleanup details (if applicable): not applicable.
  • Generated metadata (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).

  • Read existing files or captured data.
  • Launch or attach to a process.
  • Inject instrumentation or run scripts/code.
  • Change process memory, registers, files, or configuration.
  • Contact network services.
  • Recover protected code or work around protections.
  • Documentation or usability only; no target interaction.
  • Not sure yet; investigation or maintainer guidance needed.

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 added or updated: tests/boundary/filesystem/workbuddyClientConfiguration.test.ts (new; 7 tests — per-platform path resolution, json format, personal skill directory, upsert preserving unrelated servers, registration into an existing config without servers, registration into an empty file, uninstall removing only rea); tests/boundary/filesystem/clientLifecycle.test.ts detection list extended with workbuddy.
  • Base reproduction or other evidence: before the change, supportedClients(home) returned no workbuddy client and --client workbuddy failed CLI validation.
  • User-visible CLI/MCP output: end-to-end run against an isolated HOME with node scripts/rea.mjs setup --client workbuddy --skill-client workbuddy --yes:
    plannedActions[2]:
      configure_client:workbuddy — target: <home>/.workbuddy/mcp.json
      install_skill:workbuddy    — target: <home>/.workbuddy/skills/reverse-engineer-anything
    appliedActions[2]: configured_workbuddy, installed_skill
    clients:
      workbuddy:
        status: configured
    
    resulting <home>/.workbuddy/mcp.json (the registered command reflects the entrypoint that launched setup — the local checkout in this run, npx -y rea-agents@latest mcp from a published install):
    {
      "mcpServers": {
        "rea": { "command": "<rea entrypoint>", "args": ["mcp"] }
      }
    }
  • Remaining proof gaps: none known. Verified by the author in the real WorkBuddy client: the registration loads and real REA tool calls execute through the registered server (recorded in 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 succeeded
  • node scripts/generate-product-catalog.mjs and node scripts/generate-product-catalog.mjs --check — regenerated and validated against source definitions
  • npm run typecheck — passed
  • npx vitest run tests/boundary/filesystem/clientLifecycle.test.ts tests/boundary/filesystem/workbuddyClientConfiguration.test.ts tests/boundary/filesystem/productCatalog.test.ts — 72/72 tests passed
  • node scripts/check-doc-facts.mjs — no issues
  • npx oxfmt --check on the five changed files — all formatted
  • npx oxlint on the changed source/test files — no new findings (pre-existing max-lines warning in SupportedClients.ts unchanged)
  • Isolated-HOME setup --client workbuddy --skill-client workbuddy --yes run configured the client and installed the skill as shown above
  • Real-client verification by the author: WorkBuddy loaded the registration and real REA tool calls ran successfully (3b28a99)

Compatibility, safety, and release

  • Breaking changes or migration steps: none.
  • Real Hopper/Ghidra, browser, or OS coverage: not applicable.
  • Package or release metadata impact: none beyond the generated (gitignored) product catalog gaining the workbuddy setup client; documentation updated, including the unreleased-client note (dsh, kimi, and workbuddy require a release containing them).
  • Security, privacy, process, or containment review: no target-facing behavior; setup writes only the local WorkBuddy configuration file when requested.

Before merge

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff. (Not applicable: ordinary setup-client addition; no new provider or target-interacting capability.)
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Related issue is linked, or the reason for not linking one is stated above. ([Feature] Support WorkBuddy (and WorkBuddy AI) as a setup client #3040; also requested in a comment on [Feature] Support CodeBuddy as a setup client #2490)
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • User-visible CLI/MCP changes include representative output.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.

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.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-14T00:00:58.937307Z 4e94217 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium impact] The PR appears safe to merge, with the earlier non-blocking documentation concern still open.

Findings

  1. P2 Loading claim overstates proof ▶
Fix with agent prompt
### Issue 1
docs/client-configuration.md:280-281
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.
```

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!

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Summary

Adds WorkBuddy to the shared client list, with setup paths, filesystem tests, and installation docs.

  • REA setup can configure WorkBuddy's MCP server and skill.

Reviews (2) · Last reviewed commit: "docs(setup): record verified WorkBuddy t..." · Reviewed by Greptile

Comment thread docs/client-configuration.md Outdated
Comment on lines +280 to +281
user-level file only. Loading this registration is verified; a real REA tool
call through WorkBuddy remains unverified.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 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.

Suggested change
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!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
@morluto
morluto merged commit e049ef7 into morluto:main Oct 14, 2026
1 check passed
@cainiao1992
cainiao1992 deleted the feat/workbuddy-setup-clients branch October 14, 2026 06:51
@morluto morluto added enhancement New feature or request area: cli CLI adapter and one-shot commands labels Oct 14, 2026
@morluto morluto mentioned this pull request Oct 14, 2026
3 tasks done
@morluto

morluto commented Oct 15, 2026

Copy link
Copy Markdown
Owner

@cainiao1992, welcome! Thanks for adding WorkBuddy registration and skill installation. WorkBuddy users can now configure the integration through rea setup --client workbuddy.

@morluto morluto mentioned this pull request Oct 26, 2026
3 tasks done
@morluto morluto added the area: setup Setup, packaging, upgrade, install, Doctor, and client registration label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: cli CLI adapter and one-shot commands area: setup Setup, packaging, upgrade, install, Doctor, and client registration enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Support WorkBuddy (and WorkBuddy AI) as a setup client

2 participants