Spec-Driven Development Workflow for Claude Code: Decomposition, Context Clearing, and Cost Control

A new open-source plugin called Spec Driven Development Workflow (SDDW) aims to improve Claude Code's performance on complex tasks through structured decomposition and context management. The approach, shared on Hacker News by developer sermakarevich, is designed for mid-to-large projects where Claude's built-in plan + code mode falls short.
Key Concepts
- Two-dimensional decomposition: First, generate specs in multiple steps (requirements, code analysis, design). Then split the implementation into subtasks and execute them one by one.
- Context clearing between every step: After spec generation and after each subtask implementation, the context is wiped. This keeps costs low and focused, boosting performance.
- Specs written to disk: Persistent spec files maintain information across sessions, preventing loss when context is cleared.
- Layer-by-layer delivery: Deliver specs incrementally to catch misunderstandings early.
When to Use It
According to the author, SDDW is not a replacement for Claude's plan + code mode when that works well. It's for scenarios where plan + code fails because the feature is too complicated. The double decomposition helps reduce confusion and improves success rates on complex tasks.
The author also notes that SDDW works well with a fleet of agents — you can insert the sequence of SDDW steps into a queue and let multiple agents handle subtasks.
Comparison to Other Tools
Compared to tools like GSD (Generalized Spec-Driven Development), SDDW is tailored for mid-size projects. GSD was great but token-heavy for smaller tasks. SDDW allows adjustments to typical project sizes.
Critiques from the Community
Some HN commenters raised concerns:
- Agent adherence and laziness — even with a detailed spec, agents may still produce outputs that require significant sanding and polishing.
- No formal benchmarks — the author acknowledges that measuring success is subjective, but claims that when plan + code fails and SDDW works, it's a net gain.
- Specs as non-runnable code — a detailed enough spec is nearly equivalent to code, so the overhead may not always be justified.
Getting Started
The plugin is available on GitHub: github.com/sermakarevich/sddw. Slides with more details are linked in the HN discussion.
📖 Read the full source: HN AI Agents
👀 See Also

Multi-Agent Career Mentor Built with Ollama and MCP for Local AI
A developer built a 5-agent AI system that analyzes resumes and generates career intelligence reports using Ollama with llama3 locally. The system chains agent outputs so each builds on previous context, with MCP handling tool integration.

OpenClaw Outlook Add-in Connects Local Agent to Email Sidebar
A developer built an Outlook add-in that connects to a local OpenClaw Gateway via WebSocket, providing full agent access with tools and automations directly in the email sidebar. The tool reads selected emails as context, maintains per-email chat sessions, and works with Outlook Desktop and Web.

Testing MiniMax M2.7 via API on Three Real ML and Coding Workflows
A developer benchmarks MiniMax M2.7 against Claude Opus 4.7 on three real tasks: refactoring a PyTorch project, drafting Obsidian notes, and more. Key findings and setup included.

Tendr Skill Adds CLI-Based Long-Term Memory with Hierarchy to Reduce Token Usage
A new OpenClaw skill separates reasoning from execution for long-term memory operations, using a CLI tool to handle structural changes deterministically. It supports wikilinks and explicit semantic hierarchy across files to reduce token consumption and prevent error accumulation.