Repository navigation
feat(agents): support WorkBuddy subagent distribution - #826
Conversation
Register workbuddy as a supported tool for team agent sync: - agent-format: add 'workbuddy' to ToolName/ALL_SUPPORTED_TOOLS, AgentSpec.tool_extras, and renderForTool; render/reverse in the Claude-style Markdown+frontmatter format with extras namespaced to tool_extras.workbuddy (mirroring the codebuddy pattern) - types: default toolPaths.workbuddy gains agents: '.workbuddy/agents' - agents: reverseByTool dispatches workbuddy to reverseFromWorkbuddy - README (en/zh-CN/ja/ko/th): flip WorkBuddy agents cell to supported - tests: workbuddy-agents.test.ts covers registration, render/reverse round-trip, and pull/push/remove via AgentsHandler
|
…side consumption lands WorkBuddy does not yet consume .workbuddy/agents, so advertising the capability as supported would make 'teamai pull' produce files the product cannot discover. Flip the agents cell back to unsupported in all five README locales; the CLI-side registration stays in place as a latent capability and the cell flips back once consumption is verified. Addresses review feedback on #826.
|
Both P1 items addressed in bda478e:
|
|
|
Follow-up on the 05:40:57Z re-review: the real-CLI E2E verification record was added to the PR description at 05:40:24Z (Test Plan → "Real-CLI E2E verification record") — 33s before that review posted, so the finding was based on a stale description snapshot. The record covers one representative end-to-end run of the built CLI: |
|
No findings.
|
|
WorkBuddy already reads WorkBuddy runs its bundled CodeBuddy CLI with Next steps:
|
* feat(agents): support WorkBuddy subagent distribution Register workbuddy as a supported tool for team agent sync: - agent-format: add 'workbuddy' to ToolName/ALL_SUPPORTED_TOOLS, AgentSpec.tool_extras, and renderForTool; render/reverse in the Claude-style Markdown+frontmatter format with extras namespaced to tool_extras.workbuddy (mirroring the codebuddy pattern) - types: default toolPaths.workbuddy gains agents: '.workbuddy/agents' - agents: reverseByTool dispatches workbuddy to reverseFromWorkbuddy - README (en/zh-CN/ja/ko/th): flip WorkBuddy agents cell to supported - tests: workbuddy-agents.test.ts covers registration, render/reverse round-trip, and pull/push/remove via AgentsHandler * docs(readme): keep WorkBuddy agents marked unsupported until product-side consumption lands WorkBuddy does not yet consume .workbuddy/agents, so advertising the capability as supported would make 'teamai pull' produce files the product cannot discover. Flip the agents cell back to unsupported in all five README locales; the CLI-side registration stays in place as a latent capability and the cell flips back once consumption is verified. Addresses review feedback on Tencent#826. * chore: retrigger review (no changes)
Summary
Register WorkBuddy as a supported target for team subagent distribution: team-repo
agents/<name>.yamlspecs now render to.workbuddy/agents/*.md(Claude-style Markdown + YAML frontmatter) onpull, and local edits reverse back to the canonical spec onpush. WorkBuddy already receives skills / rules / docs / hooks / MCP — this closes the last gap in its Team Execution row of the capability matrix.Type of Change
Test Plan
npx tsc --noEmitpassesnpx vitest runpasses (see note on Windows baseline below)Real-CLI E2E verification record (2026-09-25,
npm run build@ f72b4c1, Windows 11, Node 22.22.2)Built
dist/index.jsand drove the real CLI against a local bare-git fixture remote (seed repo withtoolPaths.workbuddy.agents: .workbuddy/agents+agents/reviewer.yamlcarryingtool_extras.workbuddy.mode: strict):ALL CHECKS PASSED. Full harness transcript available on request.
Unit / type
src/__tests__/workbuddy-agents.test.ts(3 tests): tool registration + defaultagents: '.workbuddy/agents'path, render/reverse round-trip with extras namespaced totool_extras.workbuddy, and pull → local edit → push → remove throughAgentsHandler.agents,builtin-agents,copilot-agents,doctor-agents-delivery,pull-agents-cleanup,pull-agents-role-filter,workbuddy-agents).main(environment issues — symlink privilege, POSIX permission bits, PID/cwd assumptions). A stash-based A/B run confirms this change introduces zero new failures; on Linux/macOS CI the full suite should be green.Related Issues
N/A
Notes for Reviewers
.workbuddy/agentsdirectory convention; product-side consumption of that directory in WorkBuddy has not landed yet — per review feedback, the capability-matrix cell for WorkBuddy/agents stays—(unsupported) in all five README locales until product-side consumption exists and is verified. The CLI-side registration ships as a latent capability.codebuddypattern: dedicatedrenderForWorkbuddy/reverseFromWorkbuddy, so private fields round-trip undertool_extras.workbuddyinstead of leaking into theclaudenamespace.LEGACY_MD_TOOLSintentionally untouched — the new tool only ships the YAML-spec path.