Skip to content

Lightweight framework for human-AI pair programming with Claude Code, Cursor, and Gemini Code Assist. 2-phase workflow with modular .atf tasks.

Notifications You must be signed in to change notification settings

martinshein/di-atomic-dev-assistant

Repository files navigation

Di-Atomic Dev Assistant: Human-AI Pair Programming Framework

A lightweight framework for building software projects with AI assistants like Claude Code, Cursor, and Gemini Code Assist.

Managing multiple projects simultaneously or need autonomous agents? Check out Di-Atomic AI Agency - Full production multi-agent system with GitHub orchestration.


🎯 Which Framework Should I Use?

Scenario Framework Why
Building 1 project with Claude Code/Cursor βœ… Dev Assistant (this repo) Human-AI pair programming, no API costs
Managing 5-7 projects simultaneously βœ… AI Agency Autonomous agents, GitHub Issues orchestration
Rapid prototyping (2-8 weeks) βœ… Dev Assistant Direct iteration, modular tasks
Long-term maintenance (6+ months) βœ… AI Agency Context preservation, version tracking
Want to code alongside AI βœ… Dev Assistant Real-time collaboration in IDE
Need autonomous code generation βœ… AI Agency API-driven agents work independently

See Choosing a Framework for detailed comparison.


πŸš€ What Makes This Different?

The Problem: Sequential Workflows

Traditional AI coding sessions force you to work sequentially:

Session: "Build authentication system"

Must do in order:
β”œβ”€ Phase 1: Research           ← Can't skip!
β”œβ”€ Phase 2: Architecture       ← Can't skip!
β”œβ”€ Phase 3: Database design    ← Can't skip!
β”œβ”€ Phase 4: API implementation ← Can't skip!
β”œβ”€ Phase 5: Frontend           ← Can't skip!
β”œβ”€ Phase 6: Testing            ← Can't skip!
β”œβ”€ Phase 7: Documentation      ← Can't skip!
└─ Phase 8: Deployment         ← Can't skip!

Problems:
❌ 8+ hours, can't pause
❌ Context loss if interrupted
❌ Can't parallelize work
❌ Must complete all phases in one session

The Solution: Modular .atf Tasks

Di-Atomic Dev Assistant breaks projects into independent task files:

tasks/
β”œβ”€ 01-design-user-database-schema.atf       ← Independent, 2 hours
β”œβ”€ 02-implement-password-hashing.atf        ← Independent, 2 hours
β”œβ”€ 03-create-registration-endpoint.atf      ← Depends on 01, 02 (3 hours)
β”œβ”€ 04-create-login-endpoint.atf             ← Depends on 01, 02 (2 hours)
β”œβ”€ 05-implement-jwt-tokens.atf              ← Independent, 3 hours
└─ 06-write-auth-tests.atf                  ← Depends on 03, 04, 05 (3 hours)

Benefits:
βœ… Work on ANY task in ANY order
βœ… Pause/resume anytime (each task is self-contained)
βœ… Parallelize: Open 3 IDE windows, work on 3 tasks simultaneously
βœ… Context preservation: All requirements in .atf file
βœ… 3x faster with parallel execution

🌟 Key Features

1. Two-Phase Workflow

Planning Phase (with templates):

  • Create PRD (Product Requirements Document)
  • Design architecture
  • Break project into 15-20 modular .atf task files
  • Framework templates guide you through process

Implementation Phase (without templates):

  • Run python cleanup-planning-phase.py to remove framework templates
  • Execute tasks in ANY order using AI assistants
  • Work on multiple tasks in parallel
  • Clean project with only your code and task files

2. Modular Task System

Every task is a self-contained .atf file:

  • βœ… Complete Context: All requirements, success criteria, and instructions
  • βœ… 2-4 Hours: Sized for one focused session
  • βœ… Independent: Minimal dependencies enable parallel work
  • βœ… Verifiable: Clear success criteria for completion

3. No API Costs

Works with IDE-based AI assistants:

  • Claude Code (VS Code extension)
  • Cursor (AI-first editor)
  • Gemini Code Assist (Google's IDE AI)

Cost: Flat subscription fee (no per-token charges)

4. Parallel Execution

Open 3 IDE windows, work on 3 tasks simultaneously:

  • Window 1 (Claude Code): Complex business logic
  • Window 2 (Cursor): API endpoints
  • Window 3 (Gemini): Frontend components

Result: 3x faster than sequential execution


πŸ“¦ Quick Start

Installation

# Clone the framework
git clone https://github.com/martinshein/di-atomic-dev-assistant.git
cd di-atomic-dev-assistant

Create New Project

# Open the installation task file
code templates/atf/install-dev-assistant-fresh.atf

# Ask your AI assistant (Claude Code/Cursor/Gemini):
"Help me set up a new project using this .atf installation file.

Project details:
- Name: my-awesome-project
- Description: [your project description]
- Path: /path/to/projects"

Planning Phase

cd my-awesome-project

# 1. Read planning guide
code templates/PLANNING_PHASE.md

# 2. Create PRD with AI
"Help me create a comprehensive PRD for [your project]"

# 3. Design architecture
"Based on this PRD, design the system architecture"

# 4. Break into tasks
"Break this project into 15-20 modular .atf task files"

Transition to Implementation

# When planning is complete, run cleanup script
python cleanup-planning-phase.py

# This removes templates and creates IMPLEMENTATION.md

Implementation Phase

# Open a task file
code tasks/03-create-registration-endpoint.atf

# Ask AI:
"Help me implement this .atf task step-by-step"

# Repeat for each task (in ANY order!)

πŸ“š Documentation

Guides

Framework Comparison


πŸŽ“ Example: Authentication System

Traditional Approach (BAD)

Session: "Build auth system"
Duration: 8+ hours
Must complete all phases sequentially
Can't pause without losing context

Di-Atomic Approach (GOOD)

Planning Phase (1-2 days):

βœ… Create PRD
βœ… Design architecture
βœ… Break into tasks:
   β”œβ”€ 01-design-database-schema.atf (2h)
   β”œβ”€ 02-implement-password-hashing.atf (2h)
   β”œβ”€ 03-create-registration-endpoint.atf (3h)
   β”œβ”€ 04-create-login-endpoint.atf (2h)
   β”œβ”€ 05-implement-jwt-tokens.atf (3h)
   └─ 06-write-auth-tests.atf (3h)
βœ… Run cleanup script

Implementation Phase (parallel execution):

Day 1:
β”œβ”€ Window 1 (Claude): Task 02 (2h)
β”œβ”€ Window 2 (Cursor): Task 01 (2h)
└─ Window 3 (Gemini): Task 05 (3h)

Day 2:
β”œβ”€ Window 1 (Claude): Task 03 (3h)
β”œβ”€ Window 2 (Cursor): Task 04 (2h)
└─ Window 3 (Gemini): Task 06 (3h)

Result: Auth system complete in 2 days (6 hours work)
vs 15 hours sequential work

πŸ—οΈ Directory Structure

di-atomic-dev-assistant/
β”œβ”€β”€ templates/                    # Framework templates (temporary in projects)
β”‚   β”œβ”€β”€ atf/
β”‚   β”‚   └── install-dev-assistant-fresh.atf
β”‚   β”œβ”€β”€ PLANNING_PHASE.md         # Planning guide
β”‚   β”œβ”€β”€ CLAUDE_CODE_INSTRUCTIONS.md
β”‚   β”œβ”€β”€ CURSOR_INSTRUCTIONS.md
β”‚   └── GEMINI_CODE_ASSIST_INSTRUCTIONS.md
β”‚
β”œβ”€β”€ docs/                         # Documentation
β”‚   └── guides/
β”‚       β”œβ”€β”€ QUICK_START.md
β”‚       β”œβ”€β”€ TWO_PHASE_WORKFLOW.md
β”‚       β”œβ”€β”€ MODULAR_TASKS.md
β”‚       └── IDE_INTEGRATION.md
β”‚
β”œβ”€β”€ cleanup-planning-phase.py     # Phase transition script
└── README.md                     # This file

After installing in a project:

my-project/
β”œβ”€β”€ .planning-phase               # Phase marker
β”œβ”€β”€ docs/
β”‚   β”œβ”€β”€ prd/                     # Your PRD
β”‚   └── architecture/            # Your architecture
β”œβ”€β”€ tasks/                       # Your .atf task files
β”œβ”€β”€ app/                         # Your application code
β”œβ”€β”€ tests/                       # Your tests
β”œβ”€β”€ templates/                   # Framework templates (deleted after planning)
└── cleanup-planning-phase.py    # Phase transition script

πŸ”₯ Real-World Benefits

1. Context Preservation

Without .atf files:

Day 1: Start auth system
Day 7: Resume auth system
       "What was I doing? Where did I leave off?"
       ❌ 30 minutes lost remembering context

With .atf files:

Day 1: Complete task 03
Day 7: Open task 04
       "All context in .atf file, continue immediately"
       βœ… 0 minutes lost

2. Parallelization

Sequential (1 AI assistant):

Task A: 3 hours
Task B: 2 hours
Task C: 3 hours
Total: 8 hours over 3 days

Parallel (3 AI assistants):

Task A (Claude)  ┐
Task B (Cursor)  β”œβ”€ 3 hours (simultaneously)
Task C (Gemini)  β”˜
Total: 3 hours in 1 day

3. Flexible Workflow

Traditional:

❌ Must complete Phase 1 before Phase 2
❌ Can't work on tests until implementation done
❌ Can't pause mid-phase

Di-Atomic:

βœ… Work on ANY task when motivated
βœ… Can write tests before implementation (TDD!)
βœ… Pause anytime (just pick a different task)

πŸ†š Dev Assistant vs AI Agency

Feature Dev Assistant AI Agency
Use Case Single project Multiple projects
AI Type IDE assistants API agents
Cost Subscription only API per-token
Workflow Human-AI pair programming Autonomous agents
Parallelization 3 IDE windows Unlimited agents
GitHub Integration Manual Automated (Issues, PRs)
Context Preservation .atf files CLAUDE.md, GEMINI.md
Best For Rapid development Long-term maintenance

Choose Dev Assistant if:

  • βœ… Building 1-2 projects
  • βœ… Want hands-on coding
  • βœ… Using Claude Code/Cursor/Gemini
  • βœ… Need rapid iteration
  • βœ… Budget-conscious (no API costs)

Choose AI Agency if:

  • βœ… Managing 5-7+ projects
  • βœ… Want autonomous agents
  • βœ… Need GitHub automation
  • βœ… Long-term projects (6+ months)
  • βœ… Team collaboration

🀝 Contributing

Contributions welcome! This framework is designed to help developers build projects faster with AI assistance.

Ideas for contributions:

  • New .atf template examples
  • IDE integration guides
  • Task breakdown strategies
  • Real-world project case studies

πŸ“„ License

MIT License - See LICENSE file for details.


πŸ”— Related Projects


πŸ“ž Support


πŸ™ Acknowledgments

Built on principles of modular development, human-AI collaboration, and context preservation.

Inspired by the need for flexible, parallelizable workflows when working with AI coding assistants.


Ready to build faster with AI? β†’ Quick Start Guide

Di-Atomic Dev Assistant v1.0.0

About

Lightweight framework for human-AI pair programming with Claude Code, Cursor, and Gemini Code Assist. 2-phase workflow with modular .atf tasks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published