opencode-mission-control
opencode-mission-control copied to clipboard
feat: Lightweight PTY tier for simple tasks (no worktree needed)
Source
Audit report — Section 8: UX Recommendations (P3) + Section 2: Competitive Landscape
Description
Currently every MC job gets a full git worktree + tmux session, even for trivial tasks like running a build, linting, or executing a single command. Ecosystem plugins like opencode-pty and opencode-background demonstrate that simple tasks can run in a lightweight PTY process without worktree isolation.
Proposed Solution
Add a "lightweight" job tier that:
- Spawns a PTY process (via
Bun.spawnor the OpenCodeclient.ptyAPI) instead of creating a worktree - Uses a ring buffer for output storage (memory-efficient vs. unbounded terminal scraping)
- Supports the same monitoring and notification infrastructure as full jobs
- Can be launched via
mc_launch(name: "build-check", prompt: "...", tier: "light")
Use Cases
- Running build/test commands:
bun test,npm run build - Quick one-off commands:
git log,grep -r, etc. - Lint or format checks
- Any task that reads but doesn't modify the codebase
Ecosystem Precedent
opencode-pty: Full PTY management withnotifyOnExitand ring buffer outputopencode-background: SimpleBun.spawnfor background tasks (no isolation, no persistence)
Relationship to Other Issues
- Complementary to #27 (Multiplexer interface) — PTY would be a third backend alongside tmux and Zellij
- Independent of plan system — lightweight jobs wouldn't participate in merge trains