opencode-warcraft
v0.1.8
Published
OpenCode plugin for Project Warcraft - from vibe coding to warcraft coding
Downloads
74
Maintainers
Readme
opencode-warcraft
An OpenCode plugin for structured, plan-first AI-assisted development.
Overview
Warcraft uses a plan-first workflow for AI coding assistants:
- create a feature
- write and review a plan
- approve the plan
- sync tasks
- execute tasks through
warcraft_execute
Core model
beadsMode: "on"→ bead-backed storagebeadsMode: "off"→ filesystem-backed storage- Filesystem-backed stores live in
packages/warcraft-core/src/filesystem/ beadsModecontrols storage backend only; it does not change the execution model
Installation
From npm (recommended)
Add to your project's opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-warcraft"]
}OpenCode auto-installs npm plugins at startup via Bun.
From source (development)
git clone https://github.com/minhtri2710/opencode-warcraft.git
cd opencode-warcraft
bun install && bun run build
cd packages/opencode-warcraft
opencode plugin devWorkflow
Planned mode
warcraft_feature_create({ name, request })- clarify as needed
warcraft_plan_write- optional
warcraft_plan_read warcraft_plan_approve- tasks auto-sync after approval
warcraft_execute({ task })- Issue the returned
task()call and continue orchestration
Direct mode
For tiny work:
warcraft_feature_create({ name, request })warcraft_task_createwarcraft_execute({ task })- Issue the returned
task()call
Blocked worker resume
warcraft_status()- ask the user via
question() warcraft_execute({ task, continueFrom: "blocked", decision: "..." })- issue the returned
task()call again
Tools
Current active Warcraft tools:
warcraft_feature_createwarcraft_feature_completewarcraft_plan_writewarcraft_plan_readwarcraft_plan_approvewarcraft_tasks_syncwarcraft_task_createwarcraft_task_expandwarcraft_task_updatewarcraft_executewarcraft_context_writewarcraft_statuswarcraft_agents_mdwarcraft_doctorwarcraft_skillwarcraft_hashline_edit
Planning-mode delegation
Read-only exploration is still encouraged during planning.
- Delegate to Scout/Brann when you cannot name the file path upfront
- Delegate when investigation likely spans 2+ files
- “don’t execute” means “don’t implement”
E2E lanes
From packages/opencode-warcraft/:
bun run test:e2e:smoke— default smoke coverage with no host tool prerequisitesbun run test:e2e:host— host-backed plugin E2E; requiresgitandbrbun run test:e2e:runtime— runtime/provider smoke; requires the host prerequisites first
Further reading
docs/WARCRAFT-TOOLS.md../warcraft-core/README.md../warcraft-core/BEADS.md
