Back to Browse

OpenSpec, Git WorkTrees and OpenCode #specdrivendevelopment #openspec #aicoding #git #opencode

2.0K views
Apr 1, 2026
11:20

Using Git WorkTrees for Parallel Feature Development with OpenSpec Spec-Driven Development on OpenCode Suggested Workflow: 1. Propose changes on the main branch to ensure that OpenSpec is able to analyze across active changes and source-of-truth specifications. 2. Use SubAgents and Worktrees to apply changes so that you can actively work on the next proposal / use multiple SubAgents, each having its own Worktree, to build features in parallel. Ensure Verify is run within that Worktree and SubAgent session before merging can begin. 3. Merge back to the main branch and only then run Archive / Bulk Archive so that the source-of-truth spec merge does not encounter conflicts. 4. Commit as many times as necessary at each logical block after the change proposal is created, or after each proposal artifact is created, etc. Commit for each logical code change in the worktree branch, and then commit after Archive, etc. The more commits there are, the better the possibility of recovering from any issues. Links: 1. Detailed write-up: https://intent-driven.dev/blog/2026/04/01/openspec-git-worktrees-opencode/ 2. Bulk Apply OpenSpec Changes in Parallel with Git WorkTrees and SubAgents: https://github.com/intent-driven-dev/openspec-schemas/blob/main/.opencode/skills/openspec-bulk-apply-change/SKILL.md 3. Super Powers: https://github.com/obra/superpowers Chapters: 00:00 Introduction to Parallelizing Workflows with OpenSpec and Git WorkTrees 00:43 Proposing and Committing a New Change on the Main Branch 01:56 Applying and Verifying Changes in Parallel WorkTrees 02:51 Merging Features Back to the Main Branch and Archiving 03:32 Demo of a CLI Task Manager Application and Current Active Changes 05:58 Controlling the Merging and Reviewing Process 06:46 Planning and Executing Changes in Parallel Sub-Agents 08:03 Importance of Proposing Changes on the Main Branch 08:19 Monitoring Sub-Agent Workflows and Specific Features 09:11 Explaining the Use of Superpowers and Skill Configuration 10:14 Recap of the Recommended Git Workflow 11:21 Closing and Summary of the Multi-Developer and Team Considerations #specdrivendevelopment #openspec #aicoding #git #opencode

Download

0 formats

No download links available.

OpenSpec, Git WorkTrees and OpenCode #specdrivendevelopment #openspec #aicoding #git #opencode | NatokHD