Skip to content

Conversation

@jdillon
Copy link
Owner

@jdillon jdillon commented Jan 5, 2026

Summary

Foundation for adopting OpenCode's plugin architecture pattern:

  • Compiled binary bundles CommanDO + Bun runtime
  • Per-project dependencies in .commando/node_modules/
  • User-global + project plugin merging
  • Git refs for SDK distribution (no npm publishing)

Changes

  • lib/bun-proc.ts - Bun command execution with BUN_BE_BUN=1
  • lib/project-deps.ts - Per-project node_modules management
  • lib/core.ts - Use ensureProjectDeps() instead of symlink hack
  • sandbox/opencode-plugin-system.md - Full implementation plan

Status

WIP - Phase 1 partially complete, phases 2-6 pending.

See sandbox/opencode-plugin-system.md for the full 6-phase plan.

Add foundation for per-project dependency management:
- lib/bun-proc.ts: Bun command execution with BUN_BE_BUN=1
- lib/project-deps.ts: Per-project node_modules management
- lib/core.ts: Use ensureProjectDeps() instead of symlink hack

Architecture docs:
- sandbox/opencode-plugin-system.md: Main implementation plan
- sandbox/opencode-runtime-research.md: OpenCode pattern analysis

WIP: Tests failing, implementation phases 2-6 pending.
See sandbox/opencode-plugin-system.md for full plan.
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