Zing Forum

Reading

AndThen: A Lightweight Spec-Driven Development Toolkit for AI Programming Agents

AndThen is an open-source toolkit designed for AI programming agents. Using the Spec-Driven Development approach, it shifts AI from direct coding to a model of writing specifications first before execution. It provides a complete set of skills and agent orchestration capabilities, supporting multiple AI tools such as Claude Code, Codex CLI, and Aider.

AI编程规范驱动开发Claude CodeCodexAider软件开发流程代码审查Agent Teams开源工具
Published 2026-04-15 05:44Recent activity 2026-04-15 05:52Estimated read 6 min
AndThen: A Lightweight Spec-Driven Development Toolkit for AI Programming Agents
1

Section 01

AndThen Toolkit Core Guide: Engineering Practice of Spec-Driven AI Programming

AndThen is an open-source toolkit for AI programming agents. Its core concept is Spec-Driven Development, which shifts AI programming from direct coding to a model of writing specifications first before execution. It provides flexible layered workflows, a complete set of skills, agent agnosticism, and Agent Teams coordination capabilities. It aims to promote AI programming from improvisation to engineering implementation, solving problems like requirement drift and missing acceptance criteria in complex feature development.

2

Section 02

Background: The Need for AI Programming to Move from Improvisation to Engineering

AI programming assistants are rapidly popularizing, but direct code generation often leads to requirement drift, missing acceptance criteria, and hard-to-verify outputs when handling complex features. The AndThen project redesigns the working model suitable for AI agents through the concept of Spec-Driven Development, improving the engineering level of AI programming.

3

Section 03

Core Method: Spec-Driven Development and Flexible Workflow Design

AndThen's core proposition is 'Write specifications before coding, agents execute autonomously', producing a structured Feature Implementation Specification (FIS). It provides four flexible workflows:

  1. Quick Path: Suitable for minor fixes, skipping the specification phase;
  2. Feature Workflow: Suitable for complex single features, including specification generation and execution;
  3. Manual Planning Workflow: Suitable for multi-feature MVPs, with fine-grained control per story;
  4. Automated Planning Workflow: Agents automatically orchestrate execution plans, supporting gradual adoption.
4

Section 04

Key Features: Complete Skill Set and Agent-Agnostic Design

AndThen has a skill set covering the entire development cycle:

  • Requirement phase: clarify (requirement clarification), wireframes, etc.;
  • Planning phase: spec (generate FIS), plan (generate PRD), etc.;
  • Implementation phase: exec-spec (execute according to specification), exec-plan-team (Agent Teams parallel execution), etc.;
  • Review phase: review (comprehensive review), remediate-findings (automatic repair), etc. In addition, the intelligent document index (CLAUDE.md defines output locations) adapts to project structures; agent agnosticism supports tools like Claude Code, Codex CLI, and Aider; the Agent Teams feature enables parallel multi-agent coordination (experimental flag required).
5

Section 05

Quality Assurance and Practical Usage Example

AndThen has a built-in implementation→verification→evaluation cycle, with automatic retries on verification failure. Verification includes code review, test execution, etc. The practical usage process:

  1. Requirement clarification (generate requirements-clarification.md);
  2. Generate specification (feature.md includes requirements, acceptance criteria, etc.);
  3. Execute specification;
  4. Review (optional);
  5. Fix issues (if needed).
6

Section 06

Project Status and Installation Guide

AndThen is an experimental project under rapid iteration; APIs and skill interfaces may change. Installation methods:

  • Claude Code plugin: /plugin marketplace add IT-HUSET/andthen/plugin install andthen;
  • Other agents: Run ./scripts/install-skills.sh to export skills; Initialization command: /andthen:init generates CLAUDE.md; optionally run map-codebase to analyze the codebase.
7

Section 07

Conclusion: Evolution Direction of AI Programming Workflows

AndThen explores the evolution of software development processes in the AI era, providing a structured framework for AI to participate in the entire lifecycle. It is recommended for developers to try, but caution should be exercised when evaluating risks in production environments. The project code is hosted on GitHub: https://github.com/IT-HUSET/andthen.