# How I code with AI agents (spec-driven development)

DevFeed: [How I code with AI agents (spec-driven development)](<https://devfeed.tech/articles/how-i-code-with-ai-agents-spec-driven-development-18313.md>)

Original publisher: [Read original article](<https://newsletter.aiengineer.co/p/how-i-code-with-ai-agents-spec-driven>)

Author: Owain Lewis

Published: 2026-01-30T12:24:42Z

Content type: tutorial

Language: en

Sources: [The AI Engineer](<https://devfeed.tech/sources/the-ai-engineer.md>)

Topics: [Spec Driven Development](<https://devfeed.tech/topics/spec-driven-development.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [AI-assisted coding](<https://devfeed.tech/topics/ai-assisted-coding.md>), [agentic-coding](<https://devfeed.tech/topics/agentic-coding.md>), [Claude Code](<https://devfeed.tech/topics/claude-code.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [app](<https://devfeed.tech/tags/app.md>), [approach](<https://devfeed.tech/tags/approach.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [claude](<https://devfeed.tech/tags/claude.md>), [claude-code](<https://devfeed.tech/tags/claude-code.md>), [code](<https://devfeed.tech/tags/code.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [design](<https://devfeed.tech/tags/design.md>), [doc](<https://devfeed.tech/tags/doc.md>), [guide](<https://devfeed.tech/tags/guide.md>), [spec](<https://devfeed.tech/tags/spec.md>), [spec-driven](<https://devfeed.tech/tags/spec-driven.md>), [spec-driven-development](<https://devfeed.tech/tags/spec-driven-development.md>), [writing](<https://devfeed.tech/tags/writing.md>), [writing-code](<https://devfeed.tech/tags/writing-code.md>)

## AI overview

Spec-driven development asks you to write a repository-based Markdown specification before an AI agent starts coding. The spec records what to build, constraints, relevant context, and tasks, so the agent has fewer open decisions to guess at. Because it can be reviewed, edited, version-controlled, and shared, it also keeps the developer in charge of those decisions. The excerpt distinguishes this execution document from a PRD, which explains what and why for human stakeholders, and a technical design document, which describes how for engineers. Small features may go straight to a spec; larger initiatives may use PRDs and design documents to inform multiple specs.

## Source excerpt

An opinionated guide to writing code with AI agents like Claude Code.