Skip to main content

SpecWeave + OpenCode: Web Calculator in 4 Minutes

SpecWeave v1.0.5193:52

SpecWeave + OpenCode

Build a web calculator with Node.js backend in 4 minutes. Non-cloud AI. No API keys. Full spec-driven lifecycle.

0:00Demonstrating SpecWeave development workflow with OpenCode, which is a non-cloud AI tool.
0:11Doing SpecWeave init, setting English, non-cloud tool, choosing OpenCode, and starting from scratch. We have our skills loaded, but they are not active by default here, so we have to reload and restart OpenCode. Now we can see that the increment skill is available.
0:41Create a web calculator with a backend. We could see that the whole skill definition is loaded into the main agent context. Then we could follow the next steps.
0:57This is a kind of questionnaire. What operations should the calculator support? Let's start with the basic. Next. What backend stack do you prefer? Node.js should be fine. Frontend style for the calculator UI. We're using MiniMax M2.5 free model.
1:22Let's take a look at the .specweave folder. Here we go. This is the first increment that is already created. We have metadata.json, spec file defining our user stories. For now, it's still the template. You could see that this is in progress. Now we could see that the spec file is ready.
1:58Now let's implement the increment. We could call command /do, or just simply say something like "implement the first increment."
2:24We could see that it goes through each task. This is the start of our implementation. Runs tests including end-to-end. Grills the implementation. Runs all tests again. And completes the increment.
2:49All acceptance criteria are completed now.
2:54Let's run the server. Simple web calculator is implemented.

What You'll Learn

  1. How to initialize SpecWeave with a non-cloud AI tool (OpenCode)
  2. The PM questionnaire flow — how SpecWeave gathers requirements interactively
  3. How sw:do autonomously implements, tests, and grills your code
  4. The full spec-driven lifecycle: spec.md, plan.md, tasks.md, working app

Key Concepts

Non-Cloud AI Development

This demo uses OpenCode with the MiniMax M2.5 free model — everything runs locally. No API keys, no cloud dependencies, no code leaving your machine. SpecWeave's skill system works identically regardless of which AI tool you use.

The Spec-Driven Lifecycle

specweave init → describe feature → PM Questionnaire → spec.md + plan.md + tasks.md

Working App ← sw:do (implement + test + grill)

Commands Demonstrated

# 1. Initialize SpecWeave
specweave init

# 2. Create the feature (via natural language)
"Create a web calculator with a backend"

# 3. Implement all tasks
sw:do

# 4. Run the result
node server.js