agdi 3.3.7 → 3.4.0
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/README.md +61 -127
- package/dist/index.js +876 -165
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,160 +1,94 @@
|
|
|
1
|
-
#
|
|
1
|
+
# agdi — AI-Powered App Generator
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
<img src="https://agdi-dev.vercel.app/logo.svg" alt="Agdi Logo" width="120" height="120">
|
|
5
|
-
|
|
6
|
-
# 🦸 AGDI
|
|
7
|
-
### The Autonomous AI Software Squad in Your Terminal
|
|
8
|
-
#### v3.3.0: New Mission Control TUI
|
|
3
|
+
Build full-stack web applications from natural language in your terminal.
|
|
9
4
|
|
|
10
|
-
[](https://www.npmjs.com/package/agdi)
|
|
11
|
-
[](https://github.com/anassagd432/Agdi-dev)
|
|
12
|
-
[](https://www.npmjs.com/package/agdi)
|
|
13
|
-
|
|
14
|
-
<p align="center">
|
|
15
|
-
<b>Build, Test, and Deploy Full-Stack SaaS Apps with a Single Prompt.</b><br>
|
|
16
|
-
Powered by Gemini 3, GPT-5, and Claude 4.5.
|
|
17
|
-
</p>
|
|
18
|
-
</div>
|
|
19
|
-
|
|
20
|
-
---
|
|
21
|
-
|
|
22
|
-
## ⚡ What is Agdi?
|
|
23
|
-
|
|
24
|
-
Agdi isn't just a code generator. It's an **autonomous software agency** that lives in your terminal. When you give it a prompt, it doesn't just spit out code—it spins up a **Squad** of specialized AI agents that work together:
|
|
25
|
-
|
|
26
|
-
- **🧠 The Manager:** Plans the architecture, breaks down tasks, and oversees the project.
|
|
27
|
-
- **🎨 The Designer:** Builds beautiful, responsive UI components (React + Tailwind + Shadcn).
|
|
28
|
-
- **⚙️ The Engineer:** Implements secure APIs, database schemas, and backend logic.
|
|
29
|
-
- **🕵️ The QA:** Runs builds, writes tests, detects errors, and **auto-fixes** them before you ever see the code.
|
|
30
|
-
- **🚀 The DevOps:** Handles deployment to Vercel/Netlify automatically.
|
|
31
|
-
|
|
32
|
-
---
|
|
33
|
-
|
|
34
|
-
## 🚀 Getting Started
|
|
35
|
-
|
|
36
|
-
### 1. Install via npm
|
|
37
5
|
```bash
|
|
38
6
|
npm install -g agdi
|
|
39
7
|
```
|
|
40
8
|
|
|
41
|
-
|
|
42
|
-
The easiest way to start is the interactive wizard. It will guide you through authentication and project setup.
|
|
43
|
-
```bash
|
|
44
|
-
agdi
|
|
45
|
-
```
|
|
9
|
+
## Quick Start
|
|
46
10
|
|
|
47
|
-
### 3. Build a SaaS in Seconds
|
|
48
|
-
Want to go fast? Use the direct build command:
|
|
49
11
|
```bash
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
---
|
|
12
|
+
# 1. Configure your API keys
|
|
13
|
+
agdi auth
|
|
54
14
|
|
|
55
|
-
|
|
15
|
+
# 2. Generate an app
|
|
16
|
+
agdi build "A kanban board with drag-and-drop"
|
|
56
17
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
- **Framework:** Next.js 15 (App Router)
|
|
60
|
-
- **Database:** Prisma + PostgreSQL
|
|
61
|
-
- **Auth:** Clerk / NextAuth
|
|
62
|
-
- **Payments:** Stripe Subscription integration
|
|
63
|
-
- **Styling:** Tailwind CSS + Shadcn UI
|
|
64
|
-
|
|
65
|
-
```bash
|
|
66
|
-
agdi build "AI-powered CRM for real estate agents" --saas
|
|
18
|
+
# 3. Or use the full multi-agent squad
|
|
19
|
+
agdi squad "SaaS dashboard with auth and Stripe billing"
|
|
67
20
|
```
|
|
68
21
|
|
|
69
|
-
|
|
70
|
-
Agdi's QA agent runs in a loop. If the build fails:
|
|
71
|
-
1. It analyzes the error logs.
|
|
72
|
-
2. It reads the source code.
|
|
73
|
-
3. It generates a surgical fix.
|
|
74
|
-
4. It re-runs the build.
|
|
75
|
-
*You get working code, not error messages.*
|
|
76
|
-
|
|
77
|
-
### 📦 Import & Refactor
|
|
78
|
-
Have an existing repo? Import it and ask Agdi to add features.
|
|
79
|
-
```bash
|
|
80
|
-
agdi import https://github.com/user/repo
|
|
81
|
-
```
|
|
22
|
+
## Requirements
|
|
82
23
|
|
|
83
|
-
|
|
24
|
+
- **Node.js** ≥ 20.0.0
|
|
25
|
+
- At least one AI API key:
|
|
26
|
+
- [Google Gemini](https://aistudio.google.com/apikey) (recommended)
|
|
27
|
+
- [OpenRouter](https://openrouter.ai/keys) (100+ models)
|
|
28
|
+
- [OpenAI](https://platform.openai.com/api-keys)
|
|
29
|
+
- [Anthropic](https://console.anthropic.com/)
|
|
30
|
+
- [DeepSeek](https://platform.deepseek.com/)
|
|
84
31
|
|
|
85
|
-
##
|
|
32
|
+
## Commands
|
|
86
33
|
|
|
87
|
-
|
|
34
|
+
| Command | Description |
|
|
35
|
+
|---------|-------------|
|
|
36
|
+
| `agdi` | Launch interactive TUI dashboard |
|
|
37
|
+
| `agdi build <prompt>` | Generate an app from a prompt |
|
|
38
|
+
| `agdi build <prompt> --saas` | SaaS blueprint (Next.js + Prisma + Stripe) |
|
|
39
|
+
| `agdi squad [prompt]` | Multi-agent autonomous build |
|
|
40
|
+
| `agdi squad --deploy` | Build and deploy to Vercel |
|
|
41
|
+
| `agdi chat` | Interactive AI chat session |
|
|
42
|
+
| `agdi auth` | Configure API keys |
|
|
43
|
+
| `agdi config` | Show current configuration |
|
|
44
|
+
| `agdi doctor` | Environment health check |
|
|
45
|
+
| `agdi import <url>` | Import a GitHub repository |
|
|
88
46
|
|
|
89
|
-
|
|
90
|
-
|----------|------------------|----------|
|
|
91
|
-
| **Google** | Gemini 3 Pro, 2.5 Flash | **Speed & Context** (Recommended) |
|
|
92
|
-
| **OpenAI** | GPT-5, GPT-4o, o1 | **Complex Logic** |
|
|
93
|
-
| **Anthropic** | Claude 3.5 Sonnet, Opus | **Coding & Architecture** |
|
|
94
|
-
| **DeepSeek** | DeepSeek V3, R1 | **Reasoning & Cost Efficiency** |
|
|
95
|
-
| **OpenRouter**| 100+ Models | **Flexibility** |
|
|
47
|
+
## How It Works
|
|
96
48
|
|
|
97
|
-
|
|
49
|
+
Agdi uses a **multi-agent architecture** with specialized agents:
|
|
98
50
|
|
|
99
|
-
|
|
51
|
+
1. **Manager** — analyzes your request and creates a spec
|
|
52
|
+
2. **Frontend** — generates React + Tailwind components
|
|
53
|
+
3. **Backend** — writes server logic and database schemas
|
|
54
|
+
4. **DevOps** — configures CI/CD and deployment
|
|
55
|
+
5. **QA** — tests the output, auto-fixes errors (up to 3 retries)
|
|
100
56
|
|
|
101
|
-
|
|
102
|
-
For complex projects, invoke the full squad explicitly:
|
|
103
|
-
```bash
|
|
104
|
-
agdi squad "Crypto portfolio tracker with real-time websocket updates"
|
|
105
|
-
```
|
|
57
|
+
The CLI also indexes your existing codebase using **AST parsing** and **vector embeddings** for deep context understanding.
|
|
106
58
|
|
|
107
|
-
|
|
108
|
-
View or edit your API keys and settings:
|
|
109
|
-
```bash
|
|
110
|
-
agdi config
|
|
111
|
-
```
|
|
112
|
-
Enable telemetry to help us debug crashes (fully anonymous):
|
|
113
|
-
```bash
|
|
114
|
-
agdi config telemetry --enable
|
|
115
|
-
```
|
|
59
|
+
## Configuration
|
|
116
60
|
|
|
117
|
-
|
|
118
|
-
Agdi can optionally enable local semantic embeddings for smarter context retrieval.
|
|
61
|
+
API keys are stored in `~/.agdi/config.json` (created via `agdi auth`).
|
|
119
62
|
|
|
120
|
-
Enable via environment variable:
|
|
121
63
|
```bash
|
|
122
|
-
|
|
123
|
-
|
|
64
|
+
# Check your setup
|
|
65
|
+
agdi doctor
|
|
124
66
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
{ "semanticSearchEnabled": true }
|
|
67
|
+
# View current config
|
|
68
|
+
agdi config
|
|
128
69
|
```
|
|
129
70
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
## 🛡️ Security
|
|
71
|
+
## Security
|
|
133
72
|
|
|
134
|
-
|
|
135
|
-
- **
|
|
136
|
-
- **
|
|
137
|
-
- **Sandboxed:** Code generation happens in your specified directory, never outside it.
|
|
73
|
+
- **Code Firewall** — scans AI-generated code for `eval()`, injection, and hardcoded secrets before writing to disk
|
|
74
|
+
- **Permission Gate** — zero-trust model, all shell commands require explicit approval
|
|
75
|
+
- **Audit Logger** — logs every operation to `~/.agdi/audit.log`
|
|
138
76
|
|
|
139
|
-
|
|
77
|
+
## Common Issues
|
|
140
78
|
|
|
141
|
-
|
|
79
|
+
| Issue | Solution |
|
|
80
|
+
|-------|---------|
|
|
81
|
+
| "No API key" | Run `agdi auth` to configure at least one provider |
|
|
82
|
+
| Build fails | Run `agdi doctor` to check your environment |
|
|
83
|
+
| Permission denied | Agdi requires explicit approval for file writes and shell commands |
|
|
142
84
|
|
|
143
|
-
|
|
144
|
-
Run `agdi auth` to re-enter your keys. Ensure your plan covers the model you selected.
|
|
85
|
+
## Links
|
|
145
86
|
|
|
146
|
-
**
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
**
|
|
150
|
-
Switch to a cheaper model or provider:
|
|
151
|
-
```bash
|
|
152
|
-
agdi model
|
|
153
|
-
```
|
|
87
|
+
- **Web IDE**: [agdi-dev.vercel.app](https://agdi-dev.vercel.app)
|
|
88
|
+
- **GitHub**: [github.com/anassagd432/Agdi-dev](https://github.com/anassagd432/Agdi-dev)
|
|
89
|
+
- **Discord**: [discord.gg/pPkZ93Yb](https://discord.gg/pPkZ93Yb)
|
|
90
|
+
- **Issues**: [GitHub Issues](https://github.com/anassagd432/Agdi-dev/issues)
|
|
154
91
|
|
|
155
|
-
|
|
92
|
+
## License
|
|
156
93
|
|
|
157
|
-
|
|
158
|
-
<p>Built with ❤️ by Agdi Systems Inc.</p>
|
|
159
|
-
<p>2026 Edition</p>
|
|
160
|
-
</div>
|
|
94
|
+
MIT © Anass Agdi
|