1.2 KiB
1.2 KiB
Mosaic Runtime Adapter — OpenCode
Load and apply in this order:
~/.mosaic/STANDARDS.md- repo-local
AGENTS.md(andSOUL.mdwhen present)
This file is an OpenCode adapter layer. It does not replace project guidance.
Orchestrator Capability Contract
- OpenCode sessions may not expose a native subagent/background task primitive in all deployments.
- When native subagent delegation is unavailable, use Mosaic's deterministic orchestrator rail:
~/.mosaic/bin/mosaic-orchestrator-matrix-cycle
- Keep repo task tracking in
docs/tasks.mdas the canonical human-readable state. - Keep machine transport/controller state in
.mosaic/orchestrator/.
Fallback Delegation Mode (No Native Subagents)
- Bootstrap repo if needed:
~/.mosaic/bin/mosaic-bootstrap-repo /path/to/repo
- Configure
.mosaic/orchestrator/config.json:- set
"enabled": true - set
"worker.command_template"to your OpenCode worker command
- set
- Queue work items in
.mosaic/orchestrator/tasks.json(or via Matrix command ingestion). - Run deterministic ticks:
~/.mosaic/bin/mosaic-orchestrator-matrix-cycle
This preserves rails enforcement (quality_gates) even without runtime-native subagent features.