@itz4blitz/agentful 0.1.7 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/agents/architect.md +312 -9
- package/.claude/agents/orchestrator.md +99 -0
- package/.claude/commands/agentful-status.md +1 -1
- package/.claude/commands/agentful.md +14 -11
- package/README.md +118 -598
- package/package.json +3 -3
- package/version.json +1 -1
|
@@ -13,12 +13,173 @@ You are the **Architect Agent**. Your job is to understand the project's pattern
|
|
|
13
13
|
|
|
14
14
|
### 1. Analyze the Project
|
|
15
15
|
|
|
16
|
-
**
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
**Step 1: Detect Project State**
|
|
17
|
+
|
|
18
|
+
First, determine if this is a new or existing project:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
# Check for existing source code
|
|
22
|
+
has_code = Glob("**/*.{ts,tsx,js,jsx,py,go,rs,java,cs,rb,php,ex}")
|
|
23
|
+
excluding: node_modules, .git, dist, build, target, __pycache__
|
|
24
|
+
|
|
25
|
+
if has_code.count < 3:
|
|
26
|
+
project_state = "NEW"
|
|
27
|
+
# Empty or nearly empty project
|
|
28
|
+
else:
|
|
29
|
+
project_state = "EXISTING"
|
|
30
|
+
# Has existing codebase to learn from
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
**For NEW Projects** (empty or minimal code):
|
|
34
|
+
|
|
35
|
+
When there's no code to analyze, use declarative approach:
|
|
36
|
+
|
|
37
|
+
1. **Read product specification**:
|
|
38
|
+
```bash
|
|
39
|
+
Read(".claude/product/index.md")
|
|
40
|
+
# OR hierarchical:
|
|
41
|
+
Glob(".claude/product/domains/*/index.md")
|
|
42
|
+
Glob(".claude/product/domains/*/features/*.md")
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
2. **Check for tech stack declaration**:
|
|
46
|
+
Look in product spec for tech stack hints:
|
|
47
|
+
- "Build a Next.js app..."
|
|
48
|
+
- "Using Django and PostgreSQL..."
|
|
49
|
+
- "React frontend with Express backend..."
|
|
50
|
+
|
|
51
|
+
3. **Ask user directly if not specified**:
|
|
52
|
+
```
|
|
53
|
+
📋 Tech Stack Selection
|
|
54
|
+
|
|
55
|
+
I need to understand your tech stack to generate appropriate specialized agents.
|
|
56
|
+
|
|
57
|
+
**What you're building:**
|
|
58
|
+
- [Summary from product spec]
|
|
59
|
+
|
|
60
|
+
**Please specify your stack:**
|
|
61
|
+
|
|
62
|
+
Frontend:
|
|
63
|
+
- [ ] React (Next.js / Vite / CRA)
|
|
64
|
+
- [ ] Vue (Nuxt / Vite)
|
|
65
|
+
- [ ] Angular
|
|
66
|
+
- [ ] Svelte (SvelteKit)
|
|
67
|
+
- [ ] Other: __________
|
|
68
|
+
|
|
69
|
+
Backend:
|
|
70
|
+
- [ ] Node.js (Express / Fastify / NestJS)
|
|
71
|
+
- [ ] Python (Django / Flask / FastAPI)
|
|
72
|
+
- [ ] Go (Gin / Echo / Chi)
|
|
73
|
+
- [ ] .NET (ASP.NET Core)
|
|
74
|
+
- [ ] Java (Spring Boot)
|
|
75
|
+
- [ ] Ruby (Rails / Sinatra)
|
|
76
|
+
- [ ] Other: __________
|
|
77
|
+
|
|
78
|
+
Database:
|
|
79
|
+
- [ ] PostgreSQL
|
|
80
|
+
- [ ] MySQL
|
|
81
|
+
- [ ] MongoDB
|
|
82
|
+
- [ ] SQLite
|
|
83
|
+
- [ ] Other: __________
|
|
84
|
+
|
|
85
|
+
Additional tools:
|
|
86
|
+
- ORM: __________
|
|
87
|
+
- Testing: __________
|
|
88
|
+
- Styling: __________
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
4. **Generate agents from declared stack**:
|
|
92
|
+
|
|
93
|
+
Based on user's declared stack, create specialized agents using **best practices and common patterns** for that technology.
|
|
94
|
+
|
|
95
|
+
**Key difference from existing projects:**
|
|
96
|
+
- EXISTING: Sample real code → extract actual patterns
|
|
97
|
+
- NEW: Use framework best practices → will be refined later
|
|
98
|
+
|
|
99
|
+
**Agent Generation Guidelines:**
|
|
100
|
+
|
|
101
|
+
a. **Use official framework patterns**:
|
|
102
|
+
- Next.js → App Router, Server Components, Route Handlers
|
|
103
|
+
- Django → Class-based views, ORM, Django REST Framework
|
|
104
|
+
- Express → Middleware, async/await, error handling
|
|
105
|
+
- Spring Boot → Annotations, Dependency Injection, JPA
|
|
106
|
+
|
|
107
|
+
b. **Include canonical examples** (not placeholder code):
|
|
108
|
+
```markdown
|
|
109
|
+
## Example from Next.js documentation
|
|
110
|
+
|
|
111
|
+
```typescript
|
|
112
|
+
// app/api/users/route.ts
|
|
113
|
+
import { NextResponse } from 'next/server';
|
|
114
|
+
|
|
115
|
+
export async function GET() {
|
|
116
|
+
const users = await db.user.findMany();
|
|
117
|
+
return NextResponse.json(users);
|
|
118
|
+
}
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Use this pattern when creating API routes.
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
c. **Reference official documentation**:
|
|
125
|
+
- "See: https://nextjs.org/docs/app/building-your-application/routing/route-handlers"
|
|
126
|
+
- "Pattern based on Django documentation best practices"
|
|
127
|
+
|
|
128
|
+
d. **Mark as template-based**:
|
|
129
|
+
```markdown
|
|
130
|
+
---
|
|
131
|
+
name: nextjs-specialist
|
|
132
|
+
description: Handles Next.js implementation using best practices (will be updated with project patterns)
|
|
133
|
+
template: true
|
|
134
|
+
confidence: 0.4
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
# Next.js Specialist (Template)
|
|
138
|
+
|
|
139
|
+
⚠️ **This agent was generated from framework best practices.**
|
|
140
|
+
It will be updated with YOUR project's specific patterns after the first feature is implemented.
|
|
141
|
+
|
|
142
|
+
## Best Practice Patterns
|
|
143
|
+
|
|
144
|
+
Based on Next.js 14 documentation and common conventions:
|
|
145
|
+
...
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
e. **Common stack combinations**:
|
|
149
|
+
|
|
150
|
+
**Next.js + Prisma:**
|
|
151
|
+
- `nextjs-specialist.md` - App Router, Server Components, API routes
|
|
152
|
+
- `prisma-specialist.md` - Schema design, migrations, queries
|
|
153
|
+
|
|
154
|
+
**Django + PostgreSQL:**
|
|
155
|
+
- `django-specialist.md` - Views, models, URL routing
|
|
156
|
+
- `postgres-specialist.md` - Schema design, indexing, queries
|
|
157
|
+
|
|
158
|
+
**Express + MongoDB:**
|
|
159
|
+
- `express-specialist.md` - Routes, middleware, async patterns
|
|
160
|
+
- `mongodb-specialist.md` - Collections, queries, aggregations
|
|
161
|
+
|
|
162
|
+
**Spring Boot + MySQL:**
|
|
163
|
+
- `spring-specialist.md` - Controllers, services, repositories
|
|
164
|
+
- `jpa-specialist.md` - Entities, relationships, JPQL
|
|
165
|
+
|
|
166
|
+
f. **Always generate these core agents** (framework-agnostic):
|
|
167
|
+
- Use existing `backend.md` and `frontend.md` as fallbacks
|
|
168
|
+
- Don't duplicate - only create specialized agents when needed
|
|
169
|
+
|
|
170
|
+
5. **Mark for re-analysis**:
|
|
171
|
+
Set flag in architecture.json:
|
|
172
|
+
```json
|
|
173
|
+
{
|
|
174
|
+
"project_type": "new",
|
|
175
|
+
"declared_stack": { /* user's choices */ },
|
|
176
|
+
"needs_reanalysis_after_first_code": true,
|
|
177
|
+
"confidence": 0.4
|
|
178
|
+
}
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
**For EXISTING Projects** (has code to analyze):
|
|
20
182
|
|
|
21
|
-
**For EXISTING projects**:
|
|
22
183
|
1. Sample 3-5 files from `src/` or equivalent (or `app/`, `lib/`, `Controllers/`, etc.)
|
|
23
184
|
2. Identify the patterns:
|
|
24
185
|
- **Language**: Python? C#? JavaScript? Go? Rust? Java?
|
|
@@ -494,10 +655,82 @@ When you create an agent, ALWAYS include:
|
|
|
494
655
|
|
|
495
656
|
Create/update `.agentful/architecture.json`:
|
|
496
657
|
|
|
658
|
+
**For NEW projects (declarative stack):**
|
|
659
|
+
```json
|
|
660
|
+
{
|
|
661
|
+
"analysis_date": "2026-01-18T00:00:00Z",
|
|
662
|
+
"project_type": "new",
|
|
663
|
+
"analysis_source": "declared",
|
|
664
|
+
"declared_stack": {
|
|
665
|
+
"frontend": "Next.js 14",
|
|
666
|
+
"backend": "Node.js",
|
|
667
|
+
"database": "PostgreSQL",
|
|
668
|
+
"orm": "Prisma",
|
|
669
|
+
"testing": "Vitest",
|
|
670
|
+
"styling": "Tailwind CSS"
|
|
671
|
+
},
|
|
672
|
+
"detected_patterns": {
|
|
673
|
+
"framework": "Next.js 14 (App Router)",
|
|
674
|
+
"language": "TypeScript",
|
|
675
|
+
"primary_language": "TypeScript",
|
|
676
|
+
"structure": "to-be-determined",
|
|
677
|
+
"build_system": "npm",
|
|
678
|
+
"package_manager": "npm"
|
|
679
|
+
},
|
|
680
|
+
"tech_stack": {
|
|
681
|
+
"language": "TypeScript",
|
|
682
|
+
"primaryLanguage": "TypeScript",
|
|
683
|
+
"languages": ["TypeScript"],
|
|
684
|
+
"frameworks": ["Next.js", "React"],
|
|
685
|
+
"databases": ["PostgreSQL"],
|
|
686
|
+
"testingFrameworks": ["Vitest"],
|
|
687
|
+
"styling": ["Tailwind CSS"],
|
|
688
|
+
"buildSystem": "npm",
|
|
689
|
+
"packageManager": "npm",
|
|
690
|
+
"dependencies": [],
|
|
691
|
+
"devDependencies": [],
|
|
692
|
+
"confidence": 0.4
|
|
693
|
+
},
|
|
694
|
+
"domains": [],
|
|
695
|
+
"patterns": {
|
|
696
|
+
"imports": [],
|
|
697
|
+
"exports": [],
|
|
698
|
+
"styling": [],
|
|
699
|
+
"stateManagement": [],
|
|
700
|
+
"apiPatterns": [],
|
|
701
|
+
"testingFrameworks": []
|
|
702
|
+
},
|
|
703
|
+
"conventions": {
|
|
704
|
+
"naming": {},
|
|
705
|
+
"fileOrganization": "to-be-determined",
|
|
706
|
+
"importStyle": [],
|
|
707
|
+
"codeStyle": []
|
|
708
|
+
},
|
|
709
|
+
"generated_agents": [
|
|
710
|
+
"nextjs-specialist",
|
|
711
|
+
"prisma-specialist"
|
|
712
|
+
],
|
|
713
|
+
"key_conventions_discovered": [],
|
|
714
|
+
"needs_reanalysis_after_first_code": true,
|
|
715
|
+
"confidence": 0.4,
|
|
716
|
+
"warnings": [
|
|
717
|
+
"Project has no code yet - using declared tech stack",
|
|
718
|
+
"Agents generated from best practices, not project patterns",
|
|
719
|
+
"Will re-analyze after first code is written"
|
|
720
|
+
],
|
|
721
|
+
"recommendations": [
|
|
722
|
+
"Implement first feature to establish code patterns",
|
|
723
|
+
"Re-run architect after initial implementation"
|
|
724
|
+
]
|
|
725
|
+
}
|
|
726
|
+
```
|
|
727
|
+
|
|
728
|
+
**For EXISTING projects (detected patterns):**
|
|
497
729
|
```json
|
|
498
730
|
{
|
|
499
731
|
"analysis_date": "2026-01-18T00:00:00Z",
|
|
500
732
|
"project_type": "existing",
|
|
733
|
+
"analysis_source": "detected",
|
|
501
734
|
"detected_patterns": {
|
|
502
735
|
"framework": "Next.js 14 (App Router)",
|
|
503
736
|
"language": "TypeScript",
|
|
@@ -511,6 +744,20 @@ Create/update `.agentful/architecture.json`:
|
|
|
511
744
|
"authentication": "NextAuth.js v5",
|
|
512
745
|
"testing": "Vitest + React Testing Library + Playwright"
|
|
513
746
|
},
|
|
747
|
+
"tech_stack": {
|
|
748
|
+
"language": "TypeScript",
|
|
749
|
+
"primaryLanguage": "TypeScript",
|
|
750
|
+
"languages": ["TypeScript", "JavaScript"],
|
|
751
|
+
"frameworks": ["Next.js", "React"],
|
|
752
|
+
"databases": ["PostgreSQL"],
|
|
753
|
+
"testingFrameworks": ["Vitest", "Playwright"],
|
|
754
|
+
"styling": ["Tailwind CSS"],
|
|
755
|
+
"buildSystem": "npm",
|
|
756
|
+
"packageManager": "npm",
|
|
757
|
+
"dependencies": ["next", "react", "prisma", "zustand"],
|
|
758
|
+
"devDependencies": ["vitest", "playwright"],
|
|
759
|
+
"confidence": 0.9
|
|
760
|
+
},
|
|
514
761
|
"generated_agents": [
|
|
515
762
|
"nextjs-specialist",
|
|
516
763
|
"prisma-specialist",
|
|
@@ -526,16 +773,72 @@ Create/update `.agentful/architecture.json`:
|
|
|
526
773
|
"Error responses use NextResponse.json()",
|
|
527
774
|
"Database queries use Prisma Client",
|
|
528
775
|
"Auth session checks on server components"
|
|
529
|
-
]
|
|
776
|
+
],
|
|
777
|
+
"needs_reanalysis_after_first_code": false,
|
|
778
|
+
"confidence": 0.9
|
|
530
779
|
}
|
|
531
780
|
```
|
|
532
781
|
|
|
533
782
|
## When to Run
|
|
534
783
|
|
|
535
784
|
You are invoked by the orchestrator when:
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
785
|
+
|
|
786
|
+
1. **Initial setup** - agentful is first initialized (new or existing project)
|
|
787
|
+
2. **After first code written** - `needs_reanalysis_after_first_code: true` in architecture.json
|
|
788
|
+
3. **Tech stack changes** - product/index.md tech stack declaration changes significantly
|
|
789
|
+
4. **Pattern drift detected** - Orchestrator notices existing code doesn't match current agents
|
|
790
|
+
5. **Manual request** - User explicitly asks to re-analyze or regenerate agents
|
|
791
|
+
6. **Low confidence warning** - confidence < 0.5 and code exists to analyze
|
|
792
|
+
|
|
793
|
+
## Re-Analysis Workflow
|
|
794
|
+
|
|
795
|
+
When `needs_reanalysis_after_first_code: true`:
|
|
796
|
+
|
|
797
|
+
1. **Triggered by orchestrator** after first feature completes:
|
|
798
|
+
```
|
|
799
|
+
architecture.json shows:
|
|
800
|
+
- needs_reanalysis_after_first_code: true
|
|
801
|
+
- Some code now exists (wasn't there initially)
|
|
802
|
+
|
|
803
|
+
→ Orchestrator delegates: Task("architect", "Re-analyze project now that code exists")
|
|
804
|
+
```
|
|
805
|
+
|
|
806
|
+
2. **You run full analysis** on actual code:
|
|
807
|
+
- Glob for source files (should find some now)
|
|
808
|
+
- Sample and analyze actual patterns
|
|
809
|
+
- Compare with declared stack (did they actually use what they said?)
|
|
810
|
+
- Update agents with real examples from the codebase
|
|
811
|
+
- Increase confidence score (0.4 → 0.8+)
|
|
812
|
+
|
|
813
|
+
3. **Update architecture.json**:
|
|
814
|
+
```json
|
|
815
|
+
{
|
|
816
|
+
"project_type": "existing",
|
|
817
|
+
"analysis_source": "detected",
|
|
818
|
+
"original_declared_stack": { /* what user said */ },
|
|
819
|
+
"detected_patterns": { /* what we found */ },
|
|
820
|
+
"needs_reanalysis_after_first_code": false,
|
|
821
|
+
"confidence": 0.85,
|
|
822
|
+
"notes": "Re-analyzed after initial implementation. Patterns match declared stack."
|
|
823
|
+
}
|
|
824
|
+
```
|
|
825
|
+
|
|
826
|
+
4. **Report findings**:
|
|
827
|
+
```
|
|
828
|
+
✅ Re-analysis complete!
|
|
829
|
+
|
|
830
|
+
Initial (declared): Next.js + PostgreSQL + Prisma
|
|
831
|
+
Actual (detected): Next.js 14 App Router + PostgreSQL + Prisma
|
|
832
|
+
|
|
833
|
+
Patterns discovered:
|
|
834
|
+
- Using Server Components by default
|
|
835
|
+
- API routes in src/app/api/
|
|
836
|
+
- Tailwind for styling
|
|
837
|
+
- TypeScript strict mode
|
|
838
|
+
|
|
839
|
+
Agents updated with real examples from your code.
|
|
840
|
+
Confidence: 40% → 85%
|
|
841
|
+
```
|
|
539
842
|
|
|
540
843
|
## Integration
|
|
541
844
|
|
|
@@ -729,6 +729,105 @@ Update `.agentful/completion.json` after validated work.
|
|
|
729
729
|
}
|
|
730
730
|
```
|
|
731
731
|
|
|
732
|
+
## Architecture Re-Analysis
|
|
733
|
+
|
|
734
|
+
After updating `completion.json`, **ALWAYS check** if architecture needs re-analysis:
|
|
735
|
+
|
|
736
|
+
### Check Architecture State
|
|
737
|
+
|
|
738
|
+
```bash
|
|
739
|
+
Read(".agentful/architecture.json")
|
|
740
|
+
|
|
741
|
+
# Check for re-analysis flag
|
|
742
|
+
if architecture.needs_reanalysis_after_first_code == true:
|
|
743
|
+
# Check if any code has been written since initial analysis
|
|
744
|
+
source_files = Glob("src/**/*.{ts,tsx,js,jsx,py,go,rs,java,cs,rb,php,ex}")
|
|
745
|
+
excluding: node_modules, .git, dist, build
|
|
746
|
+
|
|
747
|
+
if source_files.count >= 3:
|
|
748
|
+
# Trigger re-analysis
|
|
749
|
+
trigger_reanalysis = true
|
|
750
|
+
```
|
|
751
|
+
|
|
752
|
+
### When to Trigger Re-Analysis
|
|
753
|
+
|
|
754
|
+
Invoke architect agent when:
|
|
755
|
+
|
|
756
|
+
1. **First code written in new project**:
|
|
757
|
+
```json
|
|
758
|
+
{
|
|
759
|
+
"needs_reanalysis_after_first_code": true,
|
|
760
|
+
"confidence": 0.4,
|
|
761
|
+
"project_type": "new"
|
|
762
|
+
}
|
|
763
|
+
```
|
|
764
|
+
AND source files now exist (wasn't true initially)
|
|
765
|
+
|
|
766
|
+
2. **Low confidence with existing code**:
|
|
767
|
+
```json
|
|
768
|
+
{
|
|
769
|
+
"confidence": < 0.5,
|
|
770
|
+
"project_type": "existing"
|
|
771
|
+
}
|
|
772
|
+
```
|
|
773
|
+
AND source files exist to analyze
|
|
774
|
+
|
|
775
|
+
3. **Manual trigger**:
|
|
776
|
+
User explicitly asks to "re-analyze" or "regenerate agents"
|
|
777
|
+
|
|
778
|
+
### Re-Analysis Workflow
|
|
779
|
+
|
|
780
|
+
```bash
|
|
781
|
+
# After first feature completes in new project
|
|
782
|
+
if architecture.needs_reanalysis_after_first_code == true:
|
|
783
|
+
"🔄 Re-analyzing project architecture..."
|
|
784
|
+
"Initial analysis was based on declared tech stack."
|
|
785
|
+
"Now analyzing actual code patterns..."
|
|
786
|
+
|
|
787
|
+
Task("architect", "Re-analyze project now that code exists. Update agents with real patterns discovered in the codebase.")
|
|
788
|
+
|
|
789
|
+
# Architect will:
|
|
790
|
+
# 1. Sample actual source files
|
|
791
|
+
# 2. Detect patterns (how components written, how DB accessed, etc.)
|
|
792
|
+
# 3. Update specialized agents with REAL examples
|
|
793
|
+
# 4. Set needs_reanalysis_after_first_code = false
|
|
794
|
+
# 5. Increase confidence score (0.4 → 0.8+)
|
|
795
|
+
|
|
796
|
+
"✅ Architecture re-analyzed. Agents updated with your project's patterns."
|
|
797
|
+
```
|
|
798
|
+
|
|
799
|
+
### Example Scenario
|
|
800
|
+
|
|
801
|
+
```
|
|
802
|
+
New Project Flow:
|
|
803
|
+
|
|
804
|
+
1. User runs: npx @itz4blitz/agentful init
|
|
805
|
+
2. Architect asks: "What tech stack?" → User: "Next.js + Prisma"
|
|
806
|
+
3. Architect generates agents from best practices (confidence: 0.4)
|
|
807
|
+
4. Sets: needs_reanalysis_after_first_code = true
|
|
808
|
+
|
|
809
|
+
5. User runs: /agentful-start
|
|
810
|
+
6. Orchestrator picks first feature: "authentication/login"
|
|
811
|
+
7. Delegates to @nextjs-specialist (using template patterns)
|
|
812
|
+
8. Code is written, validated, committed
|
|
813
|
+
9. Updates completion.json: authentication/login = 100%
|
|
814
|
+
|
|
815
|
+
10. ⚡ TRIGGER: Check architecture.json
|
|
816
|
+
11. Sees: needs_reanalysis_after_first_code = true
|
|
817
|
+
12. Sees: Source files now exist (src/app/, src/components/)
|
|
818
|
+
13. Delegates: Task("architect", "Re-analyze...")
|
|
819
|
+
14. Architect samples REAL code, updates agents with actual patterns
|
|
820
|
+
15. Sets: needs_reanalysis_after_first_code = false, confidence = 0.85
|
|
821
|
+
|
|
822
|
+
16. Continue with next feature using IMPROVED agents
|
|
823
|
+
```
|
|
824
|
+
|
|
825
|
+
**Benefits:**
|
|
826
|
+
- Start fast with declared stack (no blocking on empty project)
|
|
827
|
+
- Learn real patterns after first implementation
|
|
828
|
+
- Continuously improve agent quality
|
|
829
|
+
- Higher confidence for remaining features
|
|
830
|
+
|
|
732
831
|
## Work Selection Priority
|
|
733
832
|
|
|
734
833
|
When selecting next work, use this order:
|
|
@@ -165,15 +165,16 @@ Orchestrator:
|
|
|
165
165
|
|
|
166
166
|
## Quality Gates
|
|
167
167
|
|
|
168
|
-
Every change automatically passes through
|
|
168
|
+
Every change automatically passes through **6 core automated quality gates**:
|
|
169
169
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
170
|
+
1. **Type checking** - No type errors
|
|
171
|
+
2. **Linting** - Consistent code style
|
|
172
|
+
3. **Tests** - All tests passing
|
|
173
|
+
4. **Coverage** - Minimum 80% code coverage
|
|
174
|
+
5. **Security** - No vulnerabilities, hardcoded secrets
|
|
175
|
+
6. **Dead code** - No unused exports, imports, files
|
|
176
|
+
|
|
177
|
+
> **Note**: The reviewer agent may run additional context-specific checks beyond these 6 core gates based on project needs (e.g., performance benchmarks, accessibility audits).
|
|
177
178
|
|
|
178
179
|
**If gates fail** → @fixer automatically resolves issues → re-validates
|
|
179
180
|
|
|
@@ -207,7 +208,7 @@ Progress lives in `.agentful/`:
|
|
|
207
208
|
"no_type_errors": true,
|
|
208
209
|
"coverage_80": false
|
|
209
210
|
},
|
|
210
|
-
"
|
|
211
|
+
"overall_progress": 65
|
|
211
212
|
}
|
|
212
213
|
```
|
|
213
214
|
|
|
@@ -246,7 +247,7 @@ When agentful needs input:
|
|
|
246
247
|
|
|
247
248
|
## Continuous Development
|
|
248
249
|
|
|
249
|
-
For 24/7 autonomous development:
|
|
250
|
+
For 24/7 autonomous development, use the **Ralph Wiggum plugin** (requires separate installation):
|
|
250
251
|
|
|
251
252
|
```bash
|
|
252
253
|
/ralph-loop "/agentful-start" \
|
|
@@ -254,6 +255,8 @@ For 24/7 autonomous development:
|
|
|
254
255
|
--completion-promise "AGENTFUL_COMPLETE"
|
|
255
256
|
```
|
|
256
257
|
|
|
258
|
+
> **Note**: `/ralph-loop` is an external plugin command from the Ralph Wiggum plugin. Install separately from the Claude Code plugin registry.
|
|
259
|
+
|
|
257
260
|
Stops when:
|
|
258
261
|
- All features complete (100%)
|
|
259
262
|
- Decision needed (pauses for input)
|
|
@@ -326,4 +329,4 @@ It learns **your project's patterns** and generates agents that match your conve
|
|
|
326
329
|
- **Documentation**: https://agentful.app
|
|
327
330
|
- **GitHub**: https://github.com/itz4blitz/agentful
|
|
328
331
|
- **Issues**: https://github.com/itz4blitz/agentful/issues
|
|
329
|
-
- **Version**: 0.1.
|
|
332
|
+
- **Version**: 0.1.7 (check updates: `npm outdated @itz4blitz/agentful`)
|
package/README.md
CHANGED
|
@@ -1,670 +1,190 @@
|
|
|
1
|
-
<div align="center">
|
|
2
|
-
|
|
3
1
|
# agentful
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Transform any project into an intelligent, self-building product with specialized AI agents that work 24/7 to write, test, and validate your code.
|
|
8
|
-
|
|
9
|
-
**[📚 Full Documentation →](https://agentful.app)**
|
|
3
|
+
Autonomous product development framework for Claude Code.
|
|
10
4
|
|
|
11
5
|
[](https://opensource.org/licenses/MIT)
|
|
12
6
|
[](https://www.npmjs.com/package/@itz4blitz/agentful)
|
|
13
|
-
[](https://code.anthropic.com)
|
|
14
|
-
|
|
15
|
-
</div>
|
|
16
|
-
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
## What is agentful?
|
|
20
|
-
|
|
21
|
-
**agentful** is an opinionated setup for Claude Code that transforms it into a powerful autonomous development system. It's not just another AI coding assistant—it's a complete product development framework that coordinates specialized agents to build your entire application autonomously.
|
|
22
|
-
|
|
23
|
-
Think of it as having a team of expert developers available 24/7, each with their own specialty, working together to build your product while you sleep.
|
|
24
|
-
|
|
25
|
-
### What Makes agentful Different?
|
|
26
|
-
|
|
27
|
-
Unlike single-purpose AI tools, agentful provides:
|
|
28
|
-
|
|
29
|
-
- **7 Specialized Agents** working in concert (Orchestrator, Architect, Backend, Frontend, Tester, Reviewer, Fixer)
|
|
30
|
-
- **Intelligent Init** that automatically detects your project structure (flat vs hierarchical)
|
|
31
|
-
- **Natural Conversation Interface**—just talk to agentful like a senior developer
|
|
32
|
-
- **24/7 Autonomous Development** that works while you sleep
|
|
33
|
-
- **Built-in Quality Gates** ensuring production-ready code
|
|
34
|
-
- **Tech Stack Auto-Detection** generating agents for your specific stack
|
|
35
|
-
- **Progress Tracking** showing exactly what's done and what's next
|
|
36
|
-
|
|
37
|
-
---
|
|
38
|
-
|
|
39
|
-
## How agentful Works
|
|
40
|
-
|
|
41
|
-
```
|
|
42
|
-
┌─────────────────────────────────────────────────────────────────────────────┐
|
|
43
|
-
│ 1. DEFINE YOUR PRODUCT │
|
|
44
|
-
│ Edit PRODUCT.md with your requirements, tech stack, and features │
|
|
45
|
-
└─────────────────────────────────────────────────────────────────────────────┘
|
|
46
|
-
↓
|
|
47
|
-
┌─────────────────────────────────────────────────────────────────────────────┐
|
|
48
|
-
│ 2. INTELLIGENT INIT (Automatic) │
|
|
49
|
-
│ • Analyzes your project structure │
|
|
50
|
-
│ • Detects tech stack (Next.js, React, Prisma, etc.) │
|
|
51
|
-
│ • Creates optimal product structure (flat or hierarchical) │
|
|
52
|
-
│ • Generates specialized agents for your stack │
|
|
53
|
-
└─────────────────────────────────────────────────────────────────────────────┘
|
|
54
|
-
↓
|
|
55
|
-
┌─────────────────────────────────────────────────────────────────────────────┐
|
|
56
|
-
│ 3. AUTONOMOUS DEVELOPMENT │
|
|
57
|
-
│ • Orchestrator coordinates work │
|
|
58
|
-
│ • Specialized agents implement features │
|
|
59
|
-
│ • Tester writes and runs tests │
|
|
60
|
-
│ • Reviewer validates quality gates │
|
|
61
|
-
│ • Fixer resolves any issues │
|
|
62
|
-
└─────────────────────────────────────────────────────────────────────────────┘
|
|
63
|
-
↓
|
|
64
|
-
┌─────────────────────────────────────────────────────────────────────────────┐
|
|
65
|
-
│ 4. 24/7 ITERATION │
|
|
66
|
-
│ Loop continues until all features complete and quality gates pass │
|
|
67
|
-
└─────────────────────────────────────────────────────────────────────────────┘
|
|
68
|
-
↓
|
|
69
|
-
┌─────────────────────────────────────────────────────────────────────────────┐
|
|
70
|
-
│ ✅ PRODUCTION-READY CODE │
|
|
71
|
-
│ All tests passing • No type errors • Coverage ≥80% • Secure │
|
|
72
|
-
└─────────────────────────────────────────────────────────────────────────────┘
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
---
|
|
76
|
-
|
|
77
|
-
## Quick Start (30 seconds)
|
|
78
|
-
|
|
79
|
-
### Step 1: Initialize in Your Project
|
|
80
7
|
|
|
81
|
-
```bash
|
|
82
|
-
npx @itz4blitz/agentful init
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
**Intelligent Structure Detection:**
|
|
86
|
-
|
|
87
|
-
agentful automatically analyzes your project and creates the optimal product structure:
|
|
88
|
-
|
|
89
|
-
- **Simple Projects** → Creates `PRODUCT.md` at root (flat, single-file)
|
|
90
|
-
- **Large/Complex Projects** → Creates `.claude/product/` with domain directories (hierarchical)
|
|
91
|
-
|
|
92
|
-
**Detection Logic:**
|
|
93
|
-
- ≥3 detected domains → Hierarchical structure
|
|
94
|
-
- ≥2 frameworks detected → Hierarchical structure
|
|
95
|
-
- Monorepo detected → Hierarchical structure
|
|
96
|
-
- Otherwise → Flat structure (recommended for beginners)
|
|
97
|
-
|
|
98
|
-
### Step 2: Edit Your Product Specification
|
|
99
|
-
|
|
100
|
-
**For Simple Projects (Flat Structure)** - Edit `PRODUCT.md`:
|
|
101
|
-
|
|
102
|
-
```markdown
|
|
103
8
|
## Overview
|
|
104
|
-
A task management app for remote teams with real-time collaboration.
|
|
105
|
-
|
|
106
|
-
## Tech Stack
|
|
107
|
-
- Frontend: Next.js 14 + TypeScript + Tailwind CSS
|
|
108
|
-
- Backend: Next.js API Routes
|
|
109
|
-
- Database: Prisma + PostgreSQL
|
|
110
|
-
- Testing: Vitest + Playwright
|
|
111
|
-
|
|
112
|
-
## Features
|
|
113
|
-
|
|
114
|
-
### Domain: Authentication
|
|
115
|
-
|
|
116
|
-
#### User Registration - CRITICAL
|
|
117
|
-
**Description**: Allow new users to create accounts
|
|
118
9
|
|
|
119
|
-
|
|
120
|
-
1. Create registration form UI - CRITICAL
|
|
121
|
-
- [ ] Email validation with regex
|
|
122
|
-
- [ ] Password minimum 8 characters
|
|
123
|
-
- [ ] Responsive design
|
|
10
|
+
agentful is a Claude Code configuration that provides structured autonomous development through specialized AI agents. It coordinates multiple agents to implement features, write tests, and validate code quality according to a defined product specification.
|
|
124
11
|
|
|
125
|
-
|
|
126
|
-
- [ ] POST /api/auth/register
|
|
127
|
-
- [ ] Hash passwords with bcrypt
|
|
128
|
-
- [ ] Rate limiting
|
|
129
|
-
|
|
130
|
-
#### User Login - CRITICAL
|
|
131
|
-
[... more features]
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
**For Large Projects (Hierarchical Structure)** - Edit `.claude/product/index.md`:
|
|
135
|
-
|
|
136
|
-
```markdown
|
|
137
|
-
## Overview
|
|
138
|
-
E-commerce platform with multi-vendor support.
|
|
139
|
-
|
|
140
|
-
## Domains
|
|
141
|
-
1. **Authentication** - See `.claude/product/domains/auth/` for details
|
|
142
|
-
2. **Product Catalog** - See `.claude/product/domains/products/` for details
|
|
143
|
-
3. **Order Processing** - See `.claude/product/domains/orders/` for details
|
|
144
|
-
4. **Vendor Management** - See `.claude/product/domains/vendors/` for details
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
Then edit domain-specific files in `.claude/product/domains/{domain-name}/`.
|
|
148
|
-
|
|
149
|
-
### Step 3: Start Autonomous Development
|
|
150
|
-
|
|
151
|
-
```bash
|
|
152
|
-
claude
|
|
153
|
-
```
|
|
154
|
-
|
|
155
|
-
Then inside Claude Code:
|
|
156
|
-
|
|
157
|
-
```
|
|
158
|
-
/agentful-start
|
|
159
|
-
```
|
|
160
|
-
|
|
161
|
-
That's it! agentful will:
|
|
162
|
-
|
|
163
|
-
1. **Analyze** your product specification
|
|
164
|
-
2. **Detect** your tech stack from `package.json` and code
|
|
165
|
-
3. **Generate** specialized agents for your stack
|
|
166
|
-
4. **Begin** autonomous development immediately
|
|
167
|
-
|
|
168
|
-
---
|
|
169
|
-
|
|
170
|
-
## Key Features
|
|
171
|
-
|
|
172
|
-
### 🧠 Intelligent Init
|
|
173
|
-
|
|
174
|
-
Smart initialization that adapts to your project:
|
|
175
|
-
|
|
176
|
-
- **Automatic Structure Detection** - Chooses flat vs hierarchical based on project complexity
|
|
177
|
-
- **Tech Stack Detection** - Analyzes dependencies, frameworks, and code patterns
|
|
178
|
-
- **Dynamic Agent Generation** - Creates specialized agents for your specific stack
|
|
179
|
-
- **Zero Configuration** - Works out of the box, no setup needed
|
|
180
|
-
|
|
181
|
-
**Example:**
|
|
182
|
-
|
|
183
|
-
```bash
|
|
184
|
-
$ npx @itz4blitz/agentful init
|
|
185
|
-
|
|
186
|
-
✓ Detected project type: Next.js App Router
|
|
187
|
-
✓ Detected tech stack: Next.js 14, TypeScript, Prisma, Tailwind CSS
|
|
188
|
-
✓ Analyzing project structure...
|
|
189
|
-
✓ Detected 5 domains → Using hierarchical structure
|
|
190
|
-
✓ Created .claude/product/domains/ with 5 domain directories
|
|
191
|
-
✓ Generated specialized agents: nextjs-agent, prisma-agent, tailwind-agent
|
|
192
|
-
|
|
193
|
-
Next: Edit .claude/product/index.md to define your product, then run 'claude' and '/agentful-start'
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
### 💬 Natural Conversation Interface
|
|
197
|
-
|
|
198
|
-
Talk to agentful like a senior developer:
|
|
12
|
+
## Installation
|
|
199
13
|
|
|
200
14
|
```bash
|
|
201
|
-
/agentful
|
|
202
|
-
|
|
203
|
-
You: I need to add user authentication
|
|
204
|
-
agentful: I'll help you add authentication. I can see you have Next.js set up.
|
|
205
|
-
Would you like to use NextAuth.js or implement custom JWT?
|
|
206
|
-
|
|
207
|
-
You: Let's use NextAuth.js with Google provider
|
|
208
|
-
agentful: Perfect. I'll:
|
|
209
|
-
1. Install next-auth
|
|
210
|
-
2. Configure Google OAuth
|
|
211
|
-
3. Create login/logout pages
|
|
212
|
-
4. Add session management
|
|
213
|
-
5. Write tests
|
|
214
|
-
Ready to proceed?
|
|
215
|
-
|
|
216
|
-
You: Yes, go ahead
|
|
217
|
-
agentful: Starting implementation...
|
|
218
|
-
```
|
|
219
|
-
|
|
220
|
-
### 🤖 Specialized Agents
|
|
221
|
-
|
|
222
|
-
Seven AI agents working together:
|
|
223
|
-
|
|
224
|
-
| Agent | Role | Expertise |
|
|
225
|
-
|-------|------|-----------|
|
|
226
|
-
| **@orchestrator** | Project Manager | Coordinates all work, manages decisions, tracks progress |
|
|
227
|
-
| **@architect** | System Architect | Analyzes tech stack, generates specialized agents |
|
|
228
|
-
| **@backend** | Backend Developer | Services, repositories, controllers, APIs |
|
|
229
|
-
| **@frontend** | Frontend Developer | Components, pages, hooks, styling |
|
|
230
|
-
| **@tester** | QA Engineer | Unit, integration, E2E tests |
|
|
231
|
-
| **@reviewer** | Code Reviewer | Code review, dead code detection, quality validation |
|
|
232
|
-
| **@fixer** | DevOps Engineer | Auto-fixes validation failures |
|
|
233
|
-
|
|
234
|
-
### 🌙 24/7 Autonomous Development
|
|
235
|
-
|
|
236
|
-
Use the Ralph Wiggum plugin for overnight autonomous development:
|
|
237
|
-
|
|
238
|
-
```bash
|
|
239
|
-
# Inside Claude Code
|
|
240
|
-
/plugin install ralph-wiggum@anthropics
|
|
241
|
-
|
|
242
|
-
# Run autonomous development loop
|
|
243
|
-
/ralph-loop "/agentful-start" --max-iterations 50 --completion-promise "AGENTFUL_COMPLETE"
|
|
15
|
+
npx @itz4blitz/agentful init
|
|
244
16
|
```
|
|
245
17
|
|
|
246
|
-
|
|
247
|
-
- agentful works while you sleep
|
|
248
|
-
- Continues until all features complete (100%)
|
|
249
|
-
- Stops when all quality gates pass
|
|
250
|
-
- Or reaches max iterations
|
|
251
|
-
|
|
252
|
-
Wake up to a working product!
|
|
18
|
+
This command creates the necessary directory structure and configuration files in your project.
|
|
253
19
|
|
|
254
|
-
|
|
20
|
+
## Usage
|
|
255
21
|
|
|
256
|
-
|
|
22
|
+
### 1. Define Product Specification
|
|
257
23
|
|
|
258
|
-
|
|
259
|
-
- ✅ **Type checking** - Adapts to your stack (TypeScript, Flow, etc.)
|
|
260
|
-
- ✅ **Linting** - Zero lint errors
|
|
261
|
-
- ✅ **Dead code elimination** - No unused exports, files, or dependencies
|
|
262
|
-
- ✅ **Test coverage** - Minimum 80% coverage
|
|
263
|
-
- ✅ **Security** - No vulnerabilities or security issues
|
|
24
|
+
After initialization, edit your product specification file with features and requirements.
|
|
264
25
|
|
|
265
|
-
|
|
26
|
+
**Flat structure** (single file at project root):
|
|
27
|
+
- `PRODUCT.md` - All features in one file
|
|
266
28
|
|
|
267
|
-
|
|
29
|
+
**Hierarchical structure** (organized by domain):
|
|
30
|
+
- `.claude/product/index.md` - Product overview
|
|
31
|
+
- `.claude/product/domains/*/features/` - Feature definitions organized by domain
|
|
268
32
|
|
|
269
|
-
|
|
33
|
+
### 2. Start Development
|
|
270
34
|
|
|
271
35
|
```bash
|
|
272
|
-
|
|
273
|
-
```
|
|
274
|
-
|
|
275
|
-
**Output:**
|
|
276
|
-
```
|
|
277
|
-
🔧 Working on: User authentication feature
|
|
278
|
-
Phase: implementation
|
|
279
|
-
Iterations: 12
|
|
280
|
-
Current task: Implementing JWT service
|
|
281
|
-
|
|
282
|
-
Progress:
|
|
283
|
-
████████░░░░░░░░░░░ 40%
|
|
284
|
-
|
|
285
|
-
Quality Gates:
|
|
286
|
-
✅ Tests Passing (47/47)
|
|
287
|
-
❌ Type Checking (3 errors found)
|
|
288
|
-
⚠️ Coverage (76% - target: 80%)
|
|
289
|
-
✅ Linting (0 errors)
|
|
290
|
-
✅ Dead Code (0 issues)
|
|
291
|
-
✅ Security (0 vulnerabilities)
|
|
292
|
-
|
|
293
|
-
Pending Decisions (2):
|
|
294
|
-
1. ⚠️ Which auth library? (NextAuth.js or custom JWT?)
|
|
295
|
-
2. ⚠️ Session duration? (7 days or 30 days?)
|
|
296
|
-
|
|
297
|
-
Completed:
|
|
298
|
-
✅ User registration (100%)
|
|
299
|
-
✅ Password reset (100%)
|
|
300
|
-
🔄 User authentication (40%)
|
|
301
|
-
⏳ User profile (0%)
|
|
36
|
+
claude # Start Claude Code
|
|
302
37
|
```
|
|
303
38
|
|
|
304
|
-
|
|
39
|
+
Then use the `/agentful-start` command to begin autonomous development.
|
|
305
40
|
|
|
306
|
-
|
|
41
|
+
#### New Projects (No Existing Code)
|
|
307
42
|
|
|
308
|
-
|
|
309
|
-
2. **Continues work** on unblocked features
|
|
310
|
-
3. **You answer** when convenient via `/agentful-decide`
|
|
311
|
-
4. **Resumes** blocked work automatically
|
|
43
|
+
For brand new projects with no code yet:
|
|
312
44
|
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
Here's a real example of agentful building authentication:
|
|
320
|
-
|
|
321
|
-
```bash
|
|
322
|
-
# You: Initialize agentful
|
|
323
|
-
$ npx @itz4blitz/agentful init
|
|
324
|
-
✓ Detected project type: Next.js App Router
|
|
325
|
-
✓ Detected tech stack: Next.js 14, TypeScript, Prisma, Tailwind CSS
|
|
326
|
-
✓ Created PRODUCT.md (flat structure)
|
|
45
|
+
1. **Tech Stack Selection**: On first run, the architect agent will ask about your tech stack:
|
|
46
|
+
- Frontend framework (React, Vue, Next.js, etc.)
|
|
47
|
+
- Backend framework (Express, Django, Spring Boot, etc.)
|
|
48
|
+
- Database (PostgreSQL, MongoDB, MySQL, etc.)
|
|
49
|
+
- Additional tools (ORM, testing framework, styling)
|
|
327
50
|
|
|
328
|
-
|
|
51
|
+
2. **Initial Agent Generation**: Specialized agents are generated using **best practices** for your chosen stack:
|
|
52
|
+
- Based on official framework documentation
|
|
53
|
+
- Using common patterns and conventions
|
|
54
|
+
- Marked with `confidence: 0.4` (template-based)
|
|
329
55
|
|
|
330
|
-
|
|
331
|
-
$ claude
|
|
56
|
+
3. **First Feature Implementation**: The system builds your first feature using these template agents
|
|
332
57
|
|
|
333
|
-
|
|
334
|
-
|
|
58
|
+
4. **Automatic Re-Analysis**: After the first feature is complete:
|
|
59
|
+
- Architect re-analyzes your **actual code**
|
|
60
|
+
- Updates agents with **your project's specific patterns**
|
|
61
|
+
- Confidence increases (`0.4 → 0.8+`)
|
|
62
|
+
- Remaining features use refined, project-specific agents
|
|
335
63
|
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
64
|
+
**Benefits**:
|
|
65
|
+
- ✅ Start immediately without existing code
|
|
66
|
+
- ✅ No blocking on pattern detection
|
|
67
|
+
- ✅ Learns and adapts after first implementation
|
|
68
|
+
- ✅ Continuously improving agent quality
|
|
341
69
|
|
|
342
|
-
|
|
70
|
+
#### Existing Projects (With Code)
|
|
343
71
|
|
|
344
|
-
|
|
345
|
-
→ @backend implementing JWT service
|
|
346
|
-
→ @backend creating user schema in Prisma
|
|
347
|
-
→ @backend implementing registration API route
|
|
348
|
-
→ @frontend creating registration form
|
|
349
|
-
→ @tester writing unit tests
|
|
350
|
-
→ @tester writing integration tests
|
|
72
|
+
For projects with existing code:
|
|
351
73
|
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
74
|
+
1. **Pattern Detection**: Architect samples your codebase to detect:
|
|
75
|
+
- Language and framework
|
|
76
|
+
- File organization patterns
|
|
77
|
+
- Coding conventions
|
|
78
|
+
- Import/export styles
|
|
79
|
+
- Error handling patterns
|
|
356
80
|
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
81
|
+
2. **Agent Generation**: Creates specialized agents matching **your exact conventions**
|
|
82
|
+
- Real code examples from your project
|
|
83
|
+
- Your specific patterns and styles
|
|
84
|
+
- High confidence (`0.8-1.0`)
|
|
361
85
|
|
|
362
|
-
|
|
363
|
-
Options: 7 days, 30 days, or custom
|
|
364
|
-
→ @orchestrator continuing with unblocked features...
|
|
86
|
+
### 3. Monitor Progress
|
|
365
87
|
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
→ @frontend creating reset form
|
|
88
|
+
- `/agentful-status` - View completion percentage and current work
|
|
89
|
+
- `/agentful-validate` - Run quality checks
|
|
90
|
+
- `/agentful-decide` - Answer blocking questions
|
|
370
91
|
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
📝 Pending Decisions:
|
|
374
|
-
1. Which session duration for JWT tokens?
|
|
375
|
-
a) 7 days (recommended for better security)
|
|
376
|
-
b) 30 days (more convenient)
|
|
377
|
-
c) Custom duration
|
|
378
|
-
|
|
379
|
-
Your choice: a
|
|
380
|
-
|
|
381
|
-
✅ Decision resolved: Using 7-day session duration
|
|
382
|
-
🔄 @orchestrator resuming login feature...
|
|
383
|
-
|
|
384
|
-
📌 Feature: User Login (resuming)
|
|
385
|
-
→ @backend implementing 7-day session duration
|
|
386
|
-
→ @frontend adding session persistence
|
|
387
|
-
|
|
388
|
-
✅ User Login complete (100%)
|
|
389
|
-
Tests: ✅ 18/18 passing
|
|
390
|
-
Type check: ✅ 0 errors
|
|
391
|
-
Coverage: ✅ 91%
|
|
392
|
-
|
|
393
|
-
📊 Progress Update:
|
|
394
|
-
████████░░░░░░░░░░░ 33% (3/9 features complete)
|
|
395
|
-
|
|
396
|
-
🔄 Continuing with next feature: User Profile...
|
|
397
|
-
|
|
398
|
-
[Continues 24/7 until complete]
|
|
399
|
-
```
|
|
400
|
-
|
|
401
|
-
---
|
|
402
|
-
|
|
403
|
-
## Why Use agentful?
|
|
404
|
-
|
|
405
|
-
### vs. Manual Development
|
|
406
|
-
|
|
407
|
-
| Manual Development | agentful |
|
|
408
|
-
|-------------------|----------|
|
|
409
|
-
| Write every line yourself | AI agents write code autonomously |
|
|
410
|
-
| Forget to write tests | Tests written automatically |
|
|
411
|
-
| Debug for hours | Issues caught and fixed automatically |
|
|
412
|
-
| Works only when you work | Works 24/7 |
|
|
413
|
-
| Inconsistent code quality | Enforced quality standards |
|
|
414
|
-
| Context switching overhead | Specialized agents maintain focus |
|
|
415
|
-
|
|
416
|
-
### vs. Other AI Tools
|
|
417
|
-
|
|
418
|
-
| Other AI Coding Assistants | agentful |
|
|
419
|
-
|---------------------------|----------|
|
|
420
|
-
| Single-purpose (code completion) | Complete product development system |
|
|
421
|
-
| No coordination between agents | 7 specialized agents working together |
|
|
422
|
-
| Requires constant supervision | Autonomous 24/7 operation |
|
|
423
|
-
| No quality enforcement | Built-in quality gates |
|
|
424
|
-
| Generic code | Tech stack-specific agents |
|
|
425
|
-
| No progress tracking | Real-time progress visibility |
|
|
426
|
-
| Manual testing | Automatic test generation |
|
|
427
|
-
|
|
428
|
-
### Key Differentiators
|
|
429
|
-
|
|
430
|
-
1. **Agent Coordination** - Unlike single AI tools, agentful orchestrates 7 specialized agents working together
|
|
431
|
-
2. **Intelligent Init** - Automatically detects optimal project structure (flat vs hierarchical)
|
|
432
|
-
3. **Natural Conversation** - Talk to agentful like a senior developer, not a tool
|
|
433
|
-
4. **Quality Built-In** - Every feature includes tests, type checking, linting, coverage, security
|
|
434
|
-
5. **24/7 Development** - Works while you sleep via Ralph Wiggum loops
|
|
435
|
-
6. **Tech Stack Adaptation** - Dynamically generates agents for your specific stack
|
|
436
|
-
7. **Progress Visibility** - Always know what's done, what's next, and what's blocked
|
|
437
|
-
|
|
438
|
-
---
|
|
439
|
-
|
|
440
|
-
## Product Structures
|
|
92
|
+
## Architecture
|
|
441
93
|
|
|
442
|
-
|
|
94
|
+
### Agent System
|
|
443
95
|
|
|
444
|
-
|
|
96
|
+
agentful uses seven specialized agents:
|
|
445
97
|
|
|
446
|
-
|
|
98
|
+
| Agent | Responsibility |
|
|
99
|
+
|-------|---------------|
|
|
100
|
+
| orchestrator | Coordinates work, routes tasks, tracks state |
|
|
101
|
+
| architect | Analyzes project structure and generates specialized agents<br/>• New projects: Prompts for tech stack, generates template agents<br/>• Existing projects: Detects patterns from code<br/>• Re-analyzes after first implementation in new projects |
|
|
102
|
+
| backend | Implements server-side logic, APIs, database schemas |
|
|
103
|
+
| frontend | Implements UI components, pages, state management |
|
|
104
|
+
| tester | Writes unit, integration, and end-to-end tests |
|
|
105
|
+
| reviewer | Validates code quality, security, and standards |
|
|
106
|
+
| fixer | Resolves validation failures and test errors |
|
|
447
107
|
|
|
448
|
-
|
|
449
|
-
your-project/
|
|
450
|
-
├── PRODUCT.md # Single file with all features
|
|
451
|
-
├── .claude/ # agentful configuration
|
|
452
|
-
└── src/ # Your code
|
|
453
|
-
```
|
|
108
|
+
### Quality Gates
|
|
454
109
|
|
|
455
|
-
|
|
456
|
-
- Simple to get started
|
|
457
|
-
- Everything in one file
|
|
458
|
-
- Easy to understand
|
|
459
|
-
- Great for small teams
|
|
110
|
+
Code changes are validated against:
|
|
460
111
|
|
|
461
|
-
|
|
112
|
+
- Type checking (TypeScript, Flow, etc.)
|
|
113
|
+
- Linting (ESLint, Biome, etc.)
|
|
114
|
+
- Test execution (all tests must pass)
|
|
115
|
+
- Code coverage (minimum 80%)
|
|
116
|
+
- Security scanning
|
|
117
|
+
- Dead code detection
|
|
462
118
|
|
|
463
|
-
|
|
119
|
+
### State Tracking
|
|
464
120
|
|
|
465
|
-
|
|
466
|
-
your-project/
|
|
467
|
-
├── .claude/
|
|
468
|
-
│ └── product/
|
|
469
|
-
│ ├── index.md # Product overview
|
|
470
|
-
│ └── domains/
|
|
471
|
-
│ ├── authentication/
|
|
472
|
-
│ │ ├── index.md # Domain overview
|
|
473
|
-
│ │ └── features/
|
|
474
|
-
│ │ ├── login.md
|
|
475
|
-
│ │ └── register.md
|
|
476
|
-
│ ├── user-management/
|
|
477
|
-
│ │ └── features/
|
|
478
|
-
│ └── payments/
|
|
479
|
-
│ └── features/
|
|
480
|
-
└── src/
|
|
481
|
-
```
|
|
121
|
+
Runtime state is stored in `.agentful/`:
|
|
482
122
|
|
|
483
|
-
|
|
484
|
-
-
|
|
485
|
-
-
|
|
486
|
-
-
|
|
487
|
-
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
agentful automatically detects which structure you're using. No configuration needed!
|
|
492
|
-
|
|
493
|
-
**Start with flat, migrate to hierarchical as you grow.** Both formats work identically.
|
|
494
|
-
|
|
495
|
-
---
|
|
123
|
+
- `state.json` - Current task and phase
|
|
124
|
+
- `completion.json` - Feature completion status
|
|
125
|
+
- `decisions.json` - Pending and resolved decisions
|
|
126
|
+
- `architecture.json` - Technology stack (declared or detected)
|
|
127
|
+
- New projects: Starts with declared stack (`confidence: 0.4`)
|
|
128
|
+
- Existing projects: Detected from code (`confidence: 0.8-1.0`)
|
|
129
|
+
- Re-analyzed after first implementation in new projects
|
|
496
130
|
|
|
497
131
|
## Commands
|
|
498
132
|
|
|
499
133
|
| Command | Description |
|
|
500
134
|
|---------|-------------|
|
|
501
|
-
| `/agentful` |
|
|
502
|
-
| `/agentful-
|
|
503
|
-
| `/agentful-
|
|
504
|
-
| `/agentful-decide` | Answer pending decisions
|
|
505
|
-
| `/agentful-validate` | Run all quality checks (tests, type check, lint, coverage, security) |
|
|
506
|
-
|
|
507
|
-
---
|
|
508
|
-
|
|
509
|
-
## Tech Stack Support
|
|
510
|
-
|
|
511
|
-
agentful automatically detects and supports:
|
|
512
|
-
|
|
513
|
-
### Frontend Frameworks
|
|
514
|
-
- Next.js (App Router & Pages Router)
|
|
515
|
-
- React + Vite
|
|
516
|
-
- Vue + Nuxt
|
|
517
|
-
- SvelteKit
|
|
518
|
-
- Solid.js
|
|
519
|
-
- Astro
|
|
520
|
-
|
|
521
|
-
### Backend Frameworks
|
|
522
|
-
- Next.js API Routes
|
|
523
|
-
- Express
|
|
524
|
-
- Fastify
|
|
525
|
-
- NestJS
|
|
526
|
-
- Hono
|
|
527
|
-
- tRPC
|
|
528
|
-
|
|
529
|
-
### Databases & ORMs
|
|
530
|
-
- PostgreSQL, MySQL, SQLite, MongoDB
|
|
531
|
-
- Prisma, Drizzle, TypeORM, Mongoose
|
|
532
|
-
|
|
533
|
-
### Styling
|
|
534
|
-
- Tailwind CSS, CSS Modules, styled-components, shadcn/ui
|
|
535
|
-
|
|
536
|
-
### Testing
|
|
537
|
-
- Vitest, Jest, Playwright, Cypress
|
|
538
|
-
|
|
539
|
-
### Authentication
|
|
540
|
-
- NextAuth.js, Clerk, Auth0, Lucia, custom JWT
|
|
541
|
-
|
|
542
|
-
**And many more!** agentful generates specialized agents for whatever stack you're using.
|
|
543
|
-
|
|
544
|
-
---
|
|
545
|
-
|
|
546
|
-
## Use Cases
|
|
547
|
-
|
|
548
|
-
### Perfect For:
|
|
549
|
-
|
|
550
|
-
- **MVP Development** - Ship your minimum viable product in days, not weeks
|
|
551
|
-
- **Prototyping** - Quickly test ideas with working code
|
|
552
|
-
- **Full-Stack Projects** - Build complete applications from scratch
|
|
553
|
-
- **Legacy Migration** - Modernize old codebases with test coverage
|
|
554
|
-
- **SaaS Products** - Build complete SaaS applications autonomously
|
|
555
|
-
- **Internal Tools** - Create tools for your team automatically
|
|
556
|
-
- **Learning Projects** - Learn best practices from autonomously written code
|
|
557
|
-
- **Open Source** - Generate boilerplate and scaffolding automatically
|
|
135
|
+
| `/agentful-start` | Start or resume autonomous development |
|
|
136
|
+
| `/agentful-status` | Display progress and current state |
|
|
137
|
+
| `/agentful-validate` | Run all quality checks |
|
|
138
|
+
| `/agentful-decide` | Answer pending decisions |
|
|
558
139
|
|
|
559
|
-
|
|
140
|
+
## Technology Support
|
|
560
141
|
|
|
561
|
-
|
|
562
|
-
- Projects requiring proprietary algorithms
|
|
563
|
-
- Applications needing human creative direction
|
|
564
|
-
- Simple one-off scripts (overkill)
|
|
142
|
+
agentful detects and adapts to your technology stack automatically:
|
|
565
143
|
|
|
566
|
-
|
|
144
|
+
- **Languages**: TypeScript, JavaScript, Python, Go, Rust, Java, C#, PHP, Ruby, Elixir
|
|
145
|
+
- **Frontend**: React, Vue, Angular, Svelte, Next.js, Astro, SolidJS
|
|
146
|
+
- **Backend**: Express, Fastify, NestJS, Hono, Next.js API Routes
|
|
147
|
+
- **Databases**: PostgreSQL, MySQL, SQLite, MongoDB
|
|
148
|
+
- **ORMs**: Prisma, Drizzle, TypeORM, Mongoose
|
|
149
|
+
- **Testing**: Jest, Vitest, Playwright, Cypress, Pytest, JUnit
|
|
567
150
|
|
|
568
151
|
## Requirements
|
|
569
152
|
|
|
570
|
-
-
|
|
571
|
-
-
|
|
572
|
-
-
|
|
573
|
-
|
|
574
|
-
---
|
|
153
|
+
- Claude Code ([code.anthropic.com](https://code.anthropic.com))
|
|
154
|
+
- Node.js 22 or higher
|
|
155
|
+
- Git
|
|
575
156
|
|
|
576
157
|
## Documentation
|
|
577
158
|
|
|
578
|
-
Full documentation
|
|
579
|
-
|
|
580
|
-
### Getting Started
|
|
581
|
-
- **[Quick Start Guide](https://agentful.app/getting-started/quick-start)** - 5-minute walkthrough
|
|
582
|
-
- **[Your First Project](https://agentful.app/getting-started/first-project)** - Build your first project
|
|
583
|
-
- **[Product Specification](https://agentful.app/getting-started/product-specification)** - How to write effective specs
|
|
584
|
-
|
|
585
|
-
### Core Concepts
|
|
586
|
-
- **[Agents](https://agentful.app/agents)** - Specialized agents and their roles
|
|
587
|
-
- **[Commands](https://agentful.app/core-concepts/commands)** - All available commands
|
|
588
|
-
- **[Quality Gates](https://agentful.app/autonomous-development/quality-gates)** - Quality checks explained
|
|
589
|
-
- **[Progress Tracking](https://agentful.app/core-concepts/progress-tracking)** - State management
|
|
590
|
-
- **[Decision Handling](https://agentful.app/core-concepts/decisions)** - How agentful handles decisions
|
|
159
|
+
Full documentation: [agentful.app](https://agentful.app)
|
|
591
160
|
|
|
592
|
-
|
|
593
|
-
- **[24/7 Development](https://agentful.app/autonomous-development/24-7-development)** - Overnight autonomous loops
|
|
594
|
-
- **[Product Structures](https://agentful.app/core-concepts/product-structures)** - Flat vs hierarchical
|
|
595
|
-
- **[Tech Stack Detection](https://agentful.app/core-concepts/tech-stack-detection)** - How it works
|
|
596
|
-
- **[Customization](https://agentful.app/advanced/customization)** - Customize agents and commands
|
|
597
|
-
|
|
598
|
-
---
|
|
599
|
-
|
|
600
|
-
## Architecture
|
|
161
|
+
## Project Structure
|
|
601
162
|
|
|
602
163
|
```
|
|
603
164
|
your-project/
|
|
604
|
-
├── PRODUCT.md
|
|
605
|
-
├── CLAUDE.md
|
|
606
|
-
├── .claude/
|
|
607
|
-
│ ├── product/
|
|
608
|
-
│
|
|
609
|
-
│
|
|
610
|
-
│ ├──
|
|
611
|
-
│
|
|
612
|
-
|
|
613
|
-
│
|
|
614
|
-
│
|
|
615
|
-
│
|
|
616
|
-
│
|
|
617
|
-
|
|
618
|
-
│ ├── commands/ # Slash commands
|
|
619
|
-
│ │ ├── agentful.md
|
|
620
|
-
│ │ ├── agentful-start.md
|
|
621
|
-
│ │ ├── agentful-status.md
|
|
622
|
-
│ │ ├── agentful-decide.md
|
|
623
|
-
│ │ └── agentful-validate.md
|
|
624
|
-
│ ├── skills/ # Domain-specific skills
|
|
625
|
-
│ │ ├── conversation/
|
|
626
|
-
│ │ ├── product-tracking/
|
|
627
|
-
│ │ └── validation/
|
|
628
|
-
│ └── settings.json # Hooks and permissions
|
|
629
|
-
├── .agentful/ # Runtime state (gitignored)
|
|
630
|
-
│ ├── state.json # Current work state
|
|
631
|
-
│ ├── completion.json # Feature completion percentages
|
|
632
|
-
│ ├── decisions.json # Pending and resolved decisions
|
|
633
|
-
│ ├── architecture.json # Detected tech stack
|
|
634
|
-
│ └── last-validation.json # Most recent validation report
|
|
635
|
-
└── src/ # Your code (generated by agentful)
|
|
165
|
+
├── PRODUCT.md # Product specification (flat)
|
|
166
|
+
├── CLAUDE.md # Project instructions
|
|
167
|
+
├── .claude/
|
|
168
|
+
│ ├── product/ # Product specification (hierarchical)
|
|
169
|
+
│ ├── agents/ # Agent definitions
|
|
170
|
+
│ ├── commands/ # Slash commands
|
|
171
|
+
│ ├── skills/ # Reusable skills
|
|
172
|
+
│ └── settings.json # Configuration
|
|
173
|
+
├── .agentful/ # Runtime state
|
|
174
|
+
│ ├── state.json
|
|
175
|
+
│ ├── completion.json
|
|
176
|
+
│ ├── decisions.json
|
|
177
|
+
│ └── architecture.json
|
|
178
|
+
└── src/ # Source code
|
|
636
179
|
```
|
|
637
180
|
|
|
638
|
-
---
|
|
639
|
-
|
|
640
|
-
## Links
|
|
641
|
-
|
|
642
|
-
- **GitHub**: [github.com/itz4blitz/agentful](https://github.com/itz4blitz/agentful)
|
|
643
|
-
- **Issues**: [github.com/itz4blitz/agentful/issues](https://github.com/itz4blitz/agentful/issues)
|
|
644
|
-
- **Website**: [agentful.app](https://agentful.app)
|
|
645
|
-
- **Documentation**: [agentful.app](https://agentful.app)
|
|
646
|
-
- **NPM**: [npmjs.com/@itz4blitz/agentful](https://www.npmjs.com/package/@itz4blitz/agentful)
|
|
647
|
-
- **Claude Code**: [code.anthropic.com](https://code.anthropic.com)
|
|
648
|
-
|
|
649
|
-
---
|
|
650
|
-
|
|
651
181
|
## License
|
|
652
182
|
|
|
653
183
|
MIT
|
|
654
184
|
|
|
655
|
-
---
|
|
656
|
-
|
|
657
185
|
## Links
|
|
658
186
|
|
|
659
|
-
-
|
|
660
|
-
-
|
|
661
|
-
-
|
|
662
|
-
-
|
|
663
|
-
- **NPM**: [npmjs.com/@itz4blitz/agentful](https://www.npmjs.com/package/@itz4blitz/agentful)
|
|
664
|
-
- **Claude Code**: [code.anthropic.com](https://code.anthropic.com)
|
|
665
|
-
|
|
666
|
-
---
|
|
667
|
-
|
|
668
|
-
## License
|
|
669
|
-
|
|
670
|
-
MIT
|
|
187
|
+
- GitHub: [github.com/itz4blitz/agentful](https://github.com/itz4blitz/agentful)
|
|
188
|
+
- Issues: [github.com/itz4blitz/agentful/issues](https://github.com/itz4blitz/agentful/issues)
|
|
189
|
+
- Documentation: [agentful.app](https://agentful.app)
|
|
190
|
+
- NPM: [npmjs.com/@itz4blitz/agentful](https://www.npmjs.com/package/@itz4blitz/agentful)
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itz4blitz/agentful",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "Autonomous product development kit for Claude Code with smart product analysis and natural conversation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"agentful": "
|
|
7
|
+
"agentful": "bin/cli.js"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
10
|
"init": "node bin/cli.js init",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"license": "MIT",
|
|
34
34
|
"repository": {
|
|
35
35
|
"type": "git",
|
|
36
|
-
"url": "https://github.com/itz4blitz/agentful"
|
|
36
|
+
"url": "git+https://github.com/itz4blitz/agentful.git"
|
|
37
37
|
},
|
|
38
38
|
"homepage": "https://agentful.app",
|
|
39
39
|
"engines": {
|
package/version.json
CHANGED