惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

小众软件
小众软件
博客园_首页
博客园 - 聂微东
T
Tailwind CSS Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
J
Java Code Geeks
The Cloudflare Blog
aimingoo的专栏
aimingoo的专栏
Martin Fowler
Martin Fowler
D
Docker
人人都是产品经理
人人都是产品经理
WordPress大学
WordPress大学
博客园 - 三生石上(FineUI控件)
Microsoft Azure Blog
Microsoft Azure Blog
Recent Announcements
Recent Announcements
Apple Machine Learning Research
Apple Machine Learning Research
阮一峰的网络日志
阮一峰的网络日志
B
Blog RSS Feed
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Microsoft Security Blog
Microsoft Security Blog
L
LangChain Blog
Jina AI
Jina AI
博客园 - Franky
D
DataBreaches.Net

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Autospec: Spec-Driven Development for AI Coding Agents
Ariel Frisch · 2026-05-15 · via DEV Community

Ariel Frischer

AI coding agents are powerful, but the workflow can get messy fast: vague prompts, drifting context, half-finished plans, and implementation work that starts before the requirements are clear.

autospec is a CLI for bringing structure back into that loop.

It turns feature work into a repeatable flow:

specify -> plan -> tasks -> implement

Enter fullscreen mode Exit fullscreen mode

Each stage produces YAML artifacts, so the output is structured, reviewable, and easy for tools to validate.

Install

curl -fsSL https://raw.githubusercontent.com/ariel-frischer/autospec/main/install.sh | sh

Enter fullscreen mode Exit fullscreen mode

You will also need Git and one supported coding agent:

  • Claude Code
  • Codex CLI
  • OpenCode

Set up a project

From inside your repo:

autospec doctor
autospec init
autospec constitution

Enter fullscreen mode Exit fullscreen mode

doctor checks dependencies, init sets up autospec config, and constitution creates project-level principles for future specs.

The basic workflow

Start by generating only the spec:

autospec run -s "Add user authentication with OAuth"

Enter fullscreen mode Exit fullscreen mode

Autospec creates a feature directory like:

specs/
  001-user-authentication/
    spec.yaml

Enter fullscreen mode Exit fullscreen mode

Review and edit the spec before continuing. Then run the rest:

autospec run -pti

Enter fullscreen mode Exit fullscreen mode

That continues through:

plan -> tasks -> implement

Enter fullscreen mode Exit fullscreen mode

The resulting directory grows into:

specs/
  001-user-authentication/
    spec.yaml
    plan.yaml
    tasks.yaml

Enter fullscreen mode Exit fullscreen mode

One-command mode

For smaller features, you can run the full flow at once:

autospec run -a "Add a caching layer for API responses"

Enter fullscreen mode Exit fullscreen mode

-a means all core stages:

-spti

Enter fullscreen mode Exit fullscreen mode

That expands to:

specify -> plan -> tasks -> implement

Enter fullscreen mode Exit fullscreen mode

Useful commands

# Planning only: specify, plan, tasks
autospec prep "Add billing webhooks"

# Full workflow shortcut
autospec all "Add team invitations"

# Implementation only
autospec implement

# Resume from a specific phase
autospec implement --from-phase 3

# Run a single task
autospec implement --task T003

# Show progress
autospec status
autospec st -v

Enter fullscreen mode Exit fullscreen mode

Pick your agent

Autospec can run with different coding agents:

autospec run -a --agent claude "Add unit tests"
autospec run -a --agent codex "Add CLI smoke tests"
autospec run -a --agent opencode "Add REST API endpoints"

Enter fullscreen mode Exit fullscreen mode

You can also configure the agent during init:

autospec init --ai codex
autospec init --ai claude,codex,opencode

Enter fullscreen mode Exit fullscreen mode

Why it is useful

The main benefit is not that it writes code for you. The benefit is that it slows the agent down in the right places.

Instead of jumping straight from prompt to patch, autospec gives you review points:

  • Is the requirement correct?
  • Is the plan sane?
  • Are the tasks ordered properly?
  • Can implementation resume cleanly if something fails?

Because the artifacts are YAML-first, they are easier to inspect, validate, diff, and update than a long chat transcript.

Links