Skip to content

feat(hosts): add WorkBuddy coding agent host adapter - #26

Merged
phodal merged 4 commits into
QoderAI:mainfrom
NickyLam:feat/workbuddy-host-adapter
Jul 30, 2026
Merged

feat(hosts): add WorkBuddy coding agent host adapter#26
phodal merged 4 commits into
QoderAI:mainfrom
NickyLam:feat/workbuddy-host-adapter

Conversation

@NickyLam

@NickyLam NickyLam commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds WorkBuddy as an analysis-capable source-local host and updates the adapter
for both observed native layouts:

  • WorkBuddy 2.106.4: embedded cwd, camelCase usage, mcp.json.
  • WorkBuddy 5.0.2: cwd-less exact workspace directories, snake_case usage on
    assistant/reasoning records, .mcp.json at user and plugin roots.
  • Shared --platform workbuddy and --workbuddy-home routing,
    configured-asset inventory, session evidence, docs, and deterministic
    fixtures.

There is no WorkBuddy install shell or binary-state parsing in scope.

Traceability

  • Story: none visible; host support contribution following
    docs/adapters/contributing-new-coding-agent.md.
  • Spec: docs/specs/2026-07-30-workbuddy-host-adapter.md (AC1-AC5, status
    Implemented).
  • Canonical owners: scripts/session-analysis/platforms/workbuddy.mjs,
    scripts/agent-customize/providers/workbuddy.mjs, shared CLI/evidence-bundle
    routing, adapter/reference docs.

Review fixes

  • Synced the branch with current main and resolved the shared
    report/task-loop/hash conflicts.
  • Admit cwd-less transcripts only from the exact requested workspace slug;
    prefix-only candidates still require a matching cwd.
  • Preserve sparse camelCase/snake_case usage without manufacturing zero-valued
    sibling fields, including usage on reasoning records.
  • Discover user and marketplace-plugin MCP servers from both mcp.json and
    .mcp.json.
  • Advertise --workbuddy-home consistently in session-analysis and
    evidence-bundle help.

Validation

Check Result
Node 22.20.0 full suite 992 tests passed / 0 failed
Package verification passed; npm 337 entries, runtime zip 360 entries
Doc-link graph + diff check passed
Preview smoke /health = ok; /canvas-module.js = HTTP 200 JavaScript
Native WorkBuddy 5.0.2 session smoke 1 exact-slug session; facts stayed privacy-safe
Native usage summary 50/50 response records carried observed usage
Native configured assets 10 MCP servers: 1 user scope, 9 plugin scope
Local WorkBuddy evidence bundle complete; all three lanes and lead available

Risk and recovery

  • WorkBuddy's cwd slug is not injective. Cwd-less records therefore qualify
    only from an exact requested-workspace directory; prefix-only matches fail
    closed.
  • POSIX and Windows slug behavior is unit-tested. Native smoke was on macOS
    WorkBuddy 5.0.2.
  • workbuddy.db, connectors, automations, Memory bodies, writes, and migrations
    remain out of scope.
  • Recovery is a normal revert; no persisted data or migration is changed.

AI involvement

  • Level: generated and repaired with coding agents under the repository's
    traceability workflow.
  • Visible evidence: spec, tests, commit co-author markers, and the validation
    table above. No external review or CI status is inferred.

Checklist

  • Followed AGENTS.md and the host contribution guide.
  • Updated behavior, tests, docs, CLI help, and changelog together.
  • Verified cross-platform path handling and package contents.
  • Kept the change read-only with bounded local evidence access.

Add WorkBuddy (~/.workbuddy) as an analysis-capable source-local host
at the partial-adapter level, following the Copilot/Pi host template:

- Configured assets: scripts/agent-customize/providers/workbuddy.mjs
  inventories user skills, marketplace plugins under
  plugins/marketplaces/<marketplace>/plugins/ with enabled state from
  settings.json (<plugin>@<marketplace> keys), mcp.json MCP servers,
  the global AGENTS.md and SOUL/IDENTITY/USER identity context files,
  shared .agents/skills, and project .workbuddy assets.
- Session evidence: scripts/session-analysis/platforms/workbuddy.mjs
  reads workspace-matching JSONL transcripts under
  ~/.workbuddy/projects/<cwd-slug>/, honors WORKBUDDY_DIR, verifies the
  per-record cwd, and normalizes user/assistant messages, function_call
  and function_call_result records, and providerData.usage into
  provider-labelled events with per-response usage de-duplication.
- Register the workbuddy platform across session-analysis,
  evidence-bundle, asset-baseline/integrity, task-loop, report-run, and
  agent-lint surfaces with --workbuddy-home threading, and extend the
  canonical SUPPORTED_PLATFORMS support declaration.
- No install shell: WorkBuddy skills install by copying into
  ~/.workbuddy/skills, so no manifest or npm-packaged artifact is
  added, and the host stays out of the README Quickstart and site
  installation pages per the capability-level policy.
- Sync the host adapter matrix and capability references
  (platforms/workbuddy.md, routing, sessions diagnostics) plus
  concepts/glossary/ADR host lists and CHANGELOG; add a spec under
  docs/specs; add provider, inventory, baseline, and evidence-bundle
  tests with fixtures matching the real WorkBuddy 2.106.4 session
  format.

Spec: docs/specs/2026-07-30-workbuddy-host-adapter.md

Validated with npm test (920 tests) and npm run pack:verify on top of
the merged Pi and Copilot hosts, and against real local WorkBuddy data:
session discovery, insights usage totals, privacy-safe facts, and
agent-customize inventory.

Co-authored-by: QoderAI (Qwen 3.8 Max) <qoder_ai@qoder.com>
phodal and others added 3 commits July 30, 2026 21:56
Merge the current upstream topology and Cursor fixes while preserving WorkBuddy host routing through report and task-loop collection. The three content conflicts were resolved by retaining both host-home forwarding and the new topology scope, then regenerating the machine-readable CLI hashes.

Validated with the focused report, task-loop, evidence-bundle, and scripts-refactor suites (72 tests).

Co-authored-by: Codex (GPT 5.6 Sol) <codex@openai.com>
Extend docs/specs/2026-07-30-workbuddy-host-adapter.md with the locally observed 5.0.2 transcript, usage, and MCP layouts. The acceptance scenarios now require exact-directory admission for cwd-less sessions, sparse usage preservation, both MCP filenames, and explicit workbuddy-home help.

The spec update was validated with the doc-link graph suite (6 tests) and git diff --check.

Co-authored-by: Codex (GPT 5.6 Sol) <codex@openai.com>
Accept cwd-less WorkBuddy 5.x transcripts only from exact workspace slug directories, preserve sparse camelCase and snake_case usage, and align session attribution with workspace topology. Discover user and plugin MCP servers from both supported config filenames and expose the WorkBuddy home override consistently in CLI help.

The host contract, references, and regression fixtures now cover both WorkBuddy 2.106.4 and 5.x. Validated with 992 Node 22 tests, npm/runtime package verification, doc-link checks, preview smoke, and native WorkBuddy evidence-bundle runs.

Co-authored-by: Codex (GPT 5.6 Sol) <codex@openai.com>
@phodal
phodal merged commit 4b871d9 into QoderAI:main Jul 30, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants