agdi 2.9.0 โ 2.10.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 +98 -265
- package/dist/index.js +1495 -68
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -1,349 +1,182 @@
|
|
|
1
|
-
|
|
1
|
+
# Agdi CLI
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
___ __________ ____
|
|
5
|
-
/ | / ____/ __ \/ _/
|
|
6
|
-
/ /| |/ / __/ / / // /
|
|
7
|
-
/ ___ / /_/ / /_/ // /
|
|
8
|
-
/_/ |_\____/_____/___/
|
|
9
|
-
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
# agdi
|
|
13
|
-
|
|
14
|
-
### The AI-Powered Terminal Architect
|
|
15
|
-
|
|
16
|
-
[](https://www.npmjs.com/package/agdi)
|
|
17
|
-
[](https://www.npmjs.com/package/agdi)
|
|
18
|
-
[](https://opensource.org/licenses/MIT)
|
|
19
|
-
[](https://nodejs.org/)
|
|
3
|
+
> ๐ฆธ The Autonomous AI Development Team โ Build, Test, and Deploy from a Single Prompt
|
|
20
4
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
[Website](https://agdi-dev.vercel.app) ยท [npm](https://www.npmjs.com/package/agdi) ยท [GitHub](https://github.com/anassagd432/Agdi-dev)
|
|
24
|
-
|
|
25
|
-
</div>
|
|
5
|
+
[](https://www.npmjs.com/package/agdi)
|
|
6
|
+
[](https://www.npmjs.com/package/agdi)
|
|
26
7
|
|
|
27
8
|
---
|
|
28
9
|
|
|
29
|
-
##
|
|
30
|
-
|
|
31
|
-
### Installation
|
|
10
|
+
## Installation
|
|
32
11
|
|
|
33
12
|
```bash
|
|
34
13
|
npm install -g agdi
|
|
35
14
|
```
|
|
36
15
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
After installation, you **MUST** set up your API keys before using agdi:
|
|
16
|
+
## Quick Start
|
|
40
17
|
|
|
41
18
|
```bash
|
|
19
|
+
# 1. Configure your API key (required)
|
|
42
20
|
agdi auth
|
|
43
|
-
```
|
|
44
21
|
|
|
45
|
-
|
|
46
|
-
1. Selecting your AI provider (Gemini, OpenAI, Anthropic, DeepSeek, OpenRouter, xAI)
|
|
47
|
-
2. Entering your API key
|
|
48
|
-
3. Choosing your default model
|
|
49
|
-
|
|
50
|
-
### Start Coding
|
|
51
|
-
|
|
52
|
-
```bash
|
|
22
|
+
# 2. Start building!
|
|
53
23
|
agdi
|
|
54
24
|
```
|
|
55
25
|
|
|
56
|
-
That's it! Start describing what you want to build.
|
|
57
|
-
|
|
58
|
-
---
|
|
59
|
-
|
|
60
|
-
## ๐ฏ Latest in v2.8.8
|
|
61
|
-
|
|
62
|
-
<div align="center">
|
|
63
|
-
<img src="https://img.shields.io/badge/NEW-xAI_Grok-00d1b2?style=for-the-badge" alt="xAI">
|
|
64
|
-
<img src="https://img.shields.io/badge/NEW-DeepSeek_Coder-ff6b6b?style=for-the-badge" alt="DeepSeek Coder">
|
|
65
|
-
<img src="https://img.shields.io/badge/UPDATED-All_2026_Models-8b5cf6?style=for-the-badge" alt="2026 Models">
|
|
66
|
-
</div>
|
|
67
|
-
|
|
68
|
-
### โจ What's New
|
|
69
|
-
|
|
70
|
-
| Update | Details |
|
|
71
|
-
|--------|---------|
|
|
72
|
-
| **xAI Provider** | NEW! Grok 3, Grok 2, Grok 2 Mini support |
|
|
73
|
-
| **DeepSeek Coder** | Latest coding models: Coder V3 & V2.5 |
|
|
74
|
-
| **Gemini 3** | Pro, Flash, Deep Think (Nov 2025) |
|
|
75
|
-
| **GPT-5** | 5.2 (Flagship), 5.1, Codex variants |
|
|
76
|
-
| **Claude 4.5** | Opus, Sonnet, Haiku (Nov 2025) |
|
|
77
|
-
| **Multi-Line Input** | Paste long prompts easily |
|
|
78
|
-
| **Clean UI** | Removed emojis for professional look |
|
|
79
|
-
|
|
80
26
|
---
|
|
81
27
|
|
|
82
|
-
##
|
|
83
|
-
|
|
84
|
-
agdi supports **6 AI providers** with the latest 2026 models:
|
|
85
|
-
|
|
86
|
-
### 1. Google Gemini (Recommended - Free Tier)
|
|
87
|
-
- Gemini 3 Pro (Most Intelligent)
|
|
88
|
-
- Gemini 3 Flash (Fast)
|
|
89
|
-
- Gemini 3 Deep Think (Reasoning)
|
|
90
|
-
- Gemini 2.5 Pro/Flash
|
|
91
|
-
- Get key: https://aistudio.google.com/apikey
|
|
92
|
-
|
|
93
|
-
### 2. OpenAI
|
|
94
|
-
- GPT-5.2 (Flagship), Instant, Thinking, Codex
|
|
95
|
-
- GPT-5.1, Instant, Codex Max
|
|
96
|
-
- GPT-4o, 4o Mini, o1, o1-mini
|
|
97
|
-
- Get key: https://platform.openai.com/api-keys
|
|
98
|
-
|
|
99
|
-
### 3. Anthropic
|
|
100
|
-
- Claude Opus 4.5 (Most Intelligent)
|
|
101
|
-
- Claude Sonnet 4.5, Haiku 4.5
|
|
102
|
-
- Claude 3.5 Sonnet/Haiku
|
|
103
|
-
- Get key: https://console.anthropic.com/
|
|
104
|
-
|
|
105
|
-
### 4. DeepSeek
|
|
106
|
-
- DeepSeek V3
|
|
107
|
-
- DeepSeek R1 (Reasoning)
|
|
108
|
-
- DeepSeek Coder V3 (NEW - Coding Specialist)
|
|
109
|
-
- DeepSeek Coder V2.5
|
|
110
|
-
- Get key: https://platform.deepseek.com/
|
|
111
|
-
|
|
112
|
-
### 5. xAI (NEW!)
|
|
113
|
-
- Grok 3 (Latest)
|
|
114
|
-
- Grok 2
|
|
115
|
-
- Grok 2 Mini
|
|
116
|
-
- Get key: https://console.x.ai/
|
|
117
|
-
|
|
118
|
-
### 6. OpenRouter
|
|
119
|
-
- 100+ models from multiple providers
|
|
120
|
-
- Free models available
|
|
121
|
-
- Get key: https://openrouter.ai/keys
|
|
28
|
+
## Commands
|
|
122
29
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
## ๐ Usage Guide
|
|
126
|
-
|
|
127
|
-
### Basic Commands
|
|
30
|
+
### `agdi` โ Interactive Mode
|
|
31
|
+
Start the AI coding assistant in your terminal.
|
|
128
32
|
|
|
129
33
|
```bash
|
|
130
|
-
# Start interactive coding mode
|
|
131
34
|
agdi
|
|
132
|
-
|
|
133
|
-
# Configure/change API keys
|
|
134
|
-
agdi auth
|
|
135
|
-
|
|
136
|
-
# Change model
|
|
137
|
-
agdi model
|
|
138
|
-
|
|
139
|
-
# Build specific app
|
|
140
|
-
agdi build "create a todo app"
|
|
141
|
-
|
|
142
|
-
# Chat mode
|
|
143
|
-
agdi chat
|
|
144
|
-
|
|
145
|
-
# Help
|
|
146
|
-
agdi --help
|
|
147
35
|
```
|
|
148
36
|
|
|
149
|
-
###
|
|
37
|
+
### `agdi squad` โ Autonomous Multi-Agent Builder ๐
|
|
38
|
+
Activate the Agdi Squad โ a team of AI agents that build complete apps.
|
|
150
39
|
|
|
151
40
|
```bash
|
|
152
|
-
|
|
153
|
-
agdi --
|
|
154
|
-
|
|
155
|
-
# Generate minimal files only
|
|
156
|
-
agdi --minimal "create a utility function"
|
|
157
|
-
|
|
158
|
-
# Dry run (preview without creating)
|
|
159
|
-
agdi --dry-run "build a landing page"
|
|
160
|
-
|
|
161
|
-
# System health check
|
|
162
|
-
agdi doctor
|
|
41
|
+
agdi squad "Build a todo app with authentication"
|
|
42
|
+
agdi squad "Build a SaaS dashboard" --deploy
|
|
43
|
+
agdi squad "Build a blog" --output ./my-blog
|
|
163
44
|
```
|
|
164
45
|
|
|
165
|
-
|
|
46
|
+
**Options:**
|
|
47
|
+
- `--deploy` โ Auto-deploy to Vercel/Netlify after build
|
|
48
|
+
- `--output <dir>` โ Specify output directory (default: `./`)
|
|
49
|
+
- `--verbose` โ Show detailed agent logs
|
|
50
|
+
|
|
51
|
+
### `agdi build` โ Single-Shot Build
|
|
52
|
+
Generate an app from a prompt without interactive mode.
|
|
166
53
|
|
|
167
54
|
```bash
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
/build # Create new files/features
|
|
172
|
-
/edit # Modify existing files
|
|
173
|
-
/help # Show all commands
|
|
174
|
-
/exit # Exit agdi
|
|
55
|
+
agdi build "create a portfolio website"
|
|
56
|
+
agdi build "REST API with Express" --output ./api
|
|
57
|
+
agdi build "CLI tool in TypeScript" --minimal
|
|
175
58
|
```
|
|
176
59
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
## ๐ฌ Terminal Experience
|
|
60
|
+
### `agdi auth` โ Configure Authentication
|
|
61
|
+
Set up API keys for AI providers and deployment tokens.
|
|
180
62
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
___ __________ ____
|
|
185
|
-
/ | / ____/ __ \/ _/
|
|
186
|
-
/ /| |/ / __/ / / // /
|
|
187
|
-
/ ___ / /_/ / /_/ // /
|
|
188
|
-
/_/ |_\____/_____/___/
|
|
189
|
-
|
|
190
|
-
v2.8.8 [ARCHITECT ONLINE]
|
|
191
|
-
|
|
192
|
-
โญ SESSION INFO โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
|
|
193
|
-
โ โ
|
|
194
|
-
โ Model: gemini-3-pro-preview โ
|
|
195
|
-
โ Workspace: ~/projects/my-app โ
|
|
196
|
-
โ Context: Local Folder โ
|
|
197
|
-
โ โ
|
|
198
|
-
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
|
|
199
|
-
|
|
200
|
-
๐ค YOU โบ create a modern landing page
|
|
201
|
-
|
|
202
|
-
โญ PLAN: landing-page โโโโโโโโโฎ
|
|
203
|
-
โ โ
|
|
204
|
-
โ ๐ Create 2 directories โ
|
|
205
|
-
โ ๐ Create 8 files โ
|
|
206
|
-
โ โก Run 2 commands โ
|
|
207
|
-
โ โ
|
|
208
|
-
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
|
|
63
|
+
```bash
|
|
64
|
+
agdi auth # Interactive setup
|
|
65
|
+
agdi auth --status # Show configured providers
|
|
209
66
|
```
|
|
210
67
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
-
|
|
217
|
-
-
|
|
218
|
-
- Audit logging of all dangerous operations
|
|
219
|
-
|
|
220
|
-
### Dangerous Command Detection
|
|
221
|
-
- Detects risky commands (rm, curl, wget, eval)
|
|
222
|
-
- Requires explicit confirmation
|
|
223
|
-
- Shows command preview before execution
|
|
68
|
+
**Supported Providers:**
|
|
69
|
+
- Google Gemini (Recommended - Free tier)
|
|
70
|
+
- OpenAI (GPT-5, o1)
|
|
71
|
+
- Anthropic (Claude 4.5)
|
|
72
|
+
- DeepSeek (V3, R1)
|
|
73
|
+
- xAI (Grok 3)
|
|
74
|
+
- OpenRouter (100+ models)
|
|
224
75
|
|
|
225
|
-
|
|
226
|
-
-
|
|
227
|
-
-
|
|
228
|
-
- Never exposed in logs or output
|
|
76
|
+
**Deployment Tokens:**
|
|
77
|
+
- Vercel
|
|
78
|
+
- Netlify
|
|
229
79
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
## ๐ฏ Use Cases
|
|
80
|
+
### `agdi model` โ Change AI Model
|
|
81
|
+
Switch between AI providers and models.
|
|
233
82
|
|
|
234
|
-
### Web Development
|
|
235
83
|
```bash
|
|
236
|
-
agdi
|
|
84
|
+
agdi model
|
|
237
85
|
```
|
|
238
86
|
|
|
239
|
-
###
|
|
240
|
-
|
|
241
|
-
agdi build "RESTful API with Express and MongoDB"
|
|
242
|
-
```
|
|
87
|
+
### `agdi chat` โ Q&A Mode
|
|
88
|
+
Simple question-and-answer mode.
|
|
243
89
|
|
|
244
|
-
### Utilities
|
|
245
90
|
```bash
|
|
246
|
-
agdi
|
|
91
|
+
agdi chat
|
|
247
92
|
```
|
|
248
93
|
|
|
249
|
-
###
|
|
94
|
+
### `agdi doctor` โ System Check
|
|
95
|
+
Run diagnostics and health checks.
|
|
96
|
+
|
|
250
97
|
```bash
|
|
251
|
-
agdi
|
|
252
|
-
> "Why is my React component not re-rendering?"
|
|
98
|
+
agdi doctor
|
|
253
99
|
```
|
|
254
100
|
|
|
255
101
|
---
|
|
256
102
|
|
|
257
|
-
##
|
|
258
|
-
|
|
259
|
-
### API Key Management
|
|
103
|
+
## The Agdi Squad
|
|
260
104
|
|
|
261
|
-
|
|
262
|
-
# First-time setup
|
|
263
|
-
agdi auth
|
|
105
|
+
When you run `agdi squad`, a team of specialized AI agents works together:
|
|
264
106
|
|
|
265
|
-
|
|
266
|
-
|
|
107
|
+
| Agent | Role |
|
|
108
|
+
|-------|------|
|
|
109
|
+
| ๐ง **Manager** | Analyzes your prompt, creates project spec, delegates tasks |
|
|
110
|
+
| ๐จ **Frontend** | Builds React/Next.js UI components and pages |
|
|
111
|
+
| โ๏ธ **Backend** | Creates APIs, database schemas (Prisma), server logic |
|
|
112
|
+
| ๐ต๏ธ **QA** | Runs builds, tests, and auto-fixes errors |
|
|
113
|
+
| ๐ **DevOps** | Deploys to Vercel/Netlify (if `--deploy` is used) |
|
|
267
114
|
|
|
268
|
-
|
|
269
|
-
|
|
115
|
+
**Flow:**
|
|
116
|
+
```
|
|
117
|
+
Prompt โ Manager โ [Frontend + Backend] โ QA โ DevOps โ Live URL
|
|
270
118
|
```
|
|
271
119
|
|
|
272
|
-
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## Configuration
|
|
123
|
+
|
|
124
|
+
Config file location:
|
|
273
125
|
- **macOS/Linux**: `~/.agdi/config.json`
|
|
274
|
-
- **Windows**: `C:\Users\<
|
|
126
|
+
- **Windows**: `C:\Users\<You>\.agdi\config.json`
|
|
275
127
|
|
|
276
|
-
|
|
128
|
+
Example:
|
|
277
129
|
```json
|
|
278
130
|
{
|
|
279
131
|
"geminiApiKey": "AIza...",
|
|
280
132
|
"defaultProvider": "gemini",
|
|
281
|
-
"defaultModel": "gemini-3-pro-preview"
|
|
133
|
+
"defaultModel": "gemini-3-pro-preview",
|
|
134
|
+
"vercelToken": "...",
|
|
135
|
+
"deploymentProvider": "vercel"
|
|
282
136
|
}
|
|
283
137
|
```
|
|
284
138
|
|
|
285
139
|
---
|
|
286
140
|
|
|
287
|
-
##
|
|
288
|
-
|
|
289
|
-
- **Node.js**: 18.x or higher
|
|
290
|
-
- **npm**: 9.x or higher
|
|
291
|
-
- **OS**: macOS, Linux, Windows
|
|
292
|
-
- **Terminal**: Any modern terminal (supports UTF-8)
|
|
293
|
-
|
|
294
|
-
---
|
|
141
|
+
## Interactive Mode Commands
|
|
295
142
|
|
|
296
|
-
|
|
143
|
+
When in interactive mode (`agdi`), use these slash commands:
|
|
297
144
|
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
agdi auth
|
|
307
|
-
# Follow the prompts to set up your API key
|
|
308
|
-
```
|
|
309
|
-
|
|
310
|
-
### "Permission denied" (macOS/Linux)
|
|
311
|
-
```bash
|
|
312
|
-
sudo npm install -g agdi
|
|
313
|
-
# Or configure npm global without sudo:
|
|
314
|
-
# https://docs.npmjs.com/resolving-eacces-permissions-errors
|
|
315
|
-
```
|
|
316
|
-
|
|
317
|
-
### TypeScript Errors
|
|
318
|
-
```bash
|
|
319
|
-
# Clear and rebuild
|
|
320
|
-
rm -rf node_modules package-lock.json
|
|
321
|
-
npm install
|
|
322
|
-
```
|
|
145
|
+
| Command | Description |
|
|
146
|
+
|---------|-------------|
|
|
147
|
+
| `/status` | Git status with AI summary |
|
|
148
|
+
| `/diff` | Git diff with AI explanation |
|
|
149
|
+
| `/commit` | Generate AI commit message |
|
|
150
|
+
| `/build` | Create new features |
|
|
151
|
+
| `/edit` | Modify existing files |
|
|
152
|
+
| `/help` | Show all commands |
|
|
323
153
|
|
|
324
154
|
---
|
|
325
155
|
|
|
326
|
-
##
|
|
156
|
+
## Security
|
|
327
157
|
|
|
328
|
-
|
|
158
|
+
- **API Keys**: Stored with 0600 permissions (owner-only)
|
|
159
|
+
- **Workspace Boundary**: Commands restricted to current directory
|
|
160
|
+
- **Dangerous Commands**: Detected and require confirmation
|
|
161
|
+
- **Audit Logging**: All operations logged for review
|
|
329
162
|
|
|
330
163
|
---
|
|
331
164
|
|
|
332
|
-
##
|
|
165
|
+
## Requirements
|
|
333
166
|
|
|
334
|
-
|
|
167
|
+
- Node.js 18+
|
|
168
|
+
- npm 9+
|
|
335
169
|
|
|
336
170
|
---
|
|
337
171
|
|
|
338
|
-
##
|
|
172
|
+
## Links
|
|
339
173
|
|
|
340
|
-
-
|
|
341
|
-
-
|
|
342
|
-
-
|
|
343
|
-
- ๐ง [Issues](https://github.com/anassagd432/Agdi-dev/issues)
|
|
174
|
+
- ๐ฆ **npm**: https://www.npmjs.com/package/agdi
|
|
175
|
+
- ๐ป **GitHub**: https://github.com/anassagd432/Agdi-dev
|
|
176
|
+
- ๐ **Web App**: https://agdi-dev.vercel.app
|
|
344
177
|
|
|
345
178
|
---
|
|
346
179
|
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
180
|
+
## License
|
|
181
|
+
|
|
182
|
+
MIT ยฉ 2024-2026 Agdi
|