azrole 3.0.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 +548 -0
- package/bin/cli.js +561 -0
- package/docs/case-studies/book-manuscript.md +301 -0
- package/package.json +48 -0
- package/templates/agents/orchestrator.md +1868 -0
- package/templates/commands/dream.md +13 -0
- package/templates/commands/evolve.md +3 -0
- package/templates/commands/explain.md +13 -0
- package/templates/commands/fix.md +15 -0
- package/templates/commands/level-up.md +3 -0
- package/templates/commands/setup.md +26 -0
- package/templates/commands/ship.md +14 -0
- package/templates/commands/status.md +14 -0
package/README.md
ADDED
|
@@ -0,0 +1,548 @@
|
|
|
1
|
+
# azrole
|
|
2
|
+
|
|
3
|
+
**Self-evolving AI infrastructure for any coding CLI.**
|
|
4
|
+
|
|
5
|
+
One command. Your AI gets smarter every session.
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npx azrole init
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Works with **every major AI coding CLI**:
|
|
12
|
+
|
|
13
|
+
| CLI | Status |
|
|
14
|
+
|-----|--------|
|
|
15
|
+
| **Claude Code** | Full support |
|
|
16
|
+
| **Codex CLI** (OpenAI) | Full support |
|
|
17
|
+
| **OpenCode** | Full support |
|
|
18
|
+
| **Gemini CLI** (Google) | Full support |
|
|
19
|
+
| **Cursor** | Full support |
|
|
20
|
+
|
|
21
|
+
Works for **any project** — code, books, research, business:
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
/dream fitness app with React Native and Firebase <- software
|
|
25
|
+
/dream fantasy novel about a time-traveling librarian <- book
|
|
26
|
+
/dream market analysis for AI startup in healthcare <- research
|
|
27
|
+
/setup <- existing project
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Auto-detects which CLIs you have installed. One command installs for all of them.
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## The Problem
|
|
35
|
+
|
|
36
|
+
Every AI coding CLI is a Ferrari with no steering wheel.
|
|
37
|
+
|
|
38
|
+
Claude Code, Codex, OpenCode, Gemini CLI, Cursor — the engines are incredible. But to actually use them, you need to:
|
|
39
|
+
|
|
40
|
+
- Learn project rules syntax (CLAUDE.md / AGENTS.md / GEMINI.md / .cursorrules)
|
|
41
|
+
- Learn agent YAML frontmatter and how to write good agent prompts
|
|
42
|
+
- Learn skills structure and how triggering works
|
|
43
|
+
- Learn commands and argument passing
|
|
44
|
+
- Learn memory systems and their limits
|
|
45
|
+
- Learn MCP server configuration
|
|
46
|
+
- Learn hooks and automation
|
|
47
|
+
- Figure out how all of these connect to each other
|
|
48
|
+
- **Do this separately for every CLI you use**
|
|
49
|
+
|
|
50
|
+
That's not vibe coding. That's hours of reading documentation before writing a single line of your actual project.
|
|
51
|
+
|
|
52
|
+
Most people install an AI CLI, type a few prompts, and never unlock 90% of what it can do. Not because they're not smart enough — because the setup barrier is too high.
|
|
53
|
+
|
|
54
|
+
**The bigger problem**: Even if you set everything up perfectly, your AI forgets everything between sessions. AZROLE solves both: the setup barrier AND the persistence gap.
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Without AZROLE vs With AZROLE
|
|
59
|
+
|
|
60
|
+
**Without** — you manually create each file, one by one, after reading docs:
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
You: "How do I set up agents?"
|
|
64
|
+
Google: *reads docs for 30 minutes*
|
|
65
|
+
You: *creates one agent file with basic frontmatter*
|
|
66
|
+
You: "Now how do skills work?"
|
|
67
|
+
Google: *reads more docs*
|
|
68
|
+
... 3 hours later, you have a half-configured environment
|
|
69
|
+
... next session, the AI has forgotten everything
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
**With** — you describe your idea and everything gets built:
|
|
73
|
+
|
|
74
|
+
```
|
|
75
|
+
You: /dream food delivery app with React Native, Node.js, and Stripe
|
|
76
|
+
Claude: [Level 1] Building CLAUDE.md... done
|
|
77
|
+
CLAUDE.md (94 lines) — architecture, conventions, directory structure
|
|
78
|
+
.gitignore — configured for Node.js
|
|
79
|
+
[Level 2] Building MCP config... done
|
|
80
|
+
.mcp.json — 3 servers (github, postgres, filesystem)
|
|
81
|
+
[Level 3] Building skills and commands... done
|
|
82
|
+
Skills: react-native-patterns, nodejs-patterns, project-conventions
|
|
83
|
+
Commands: add, test, review, new-screen, new-endpoint
|
|
84
|
+
[Level 4] Building memory system... done
|
|
85
|
+
MEMORY.md (138 lines) — master index
|
|
86
|
+
codebase-map, patterns, antipatterns — ready
|
|
87
|
+
[Level 5] Building specialized agents... done
|
|
88
|
+
dev-mobile.md (sonnet) — owns app/screens/, app/components/
|
|
89
|
+
dev-backend.md (sonnet) — owns server/routes/, server/services/
|
|
90
|
+
dev-tester.md (sonnet, background: true) — owns __tests__/
|
|
91
|
+
dev-reviewer.md (opus, read-only) — code review specialist
|
|
92
|
+
|
|
93
|
+
Your Level: 5 / 10 — "Multi-Agent"
|
|
94
|
+
[=========================.............] 5/10
|
|
95
|
+
|
|
96
|
+
Ready! Try: /add user authentication with phone number
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
**2 minutes. Zero documentation. Full environment. Knowledge that compounds.**
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## Quick Start
|
|
104
|
+
|
|
105
|
+
### 1. Install (once)
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
npx azrole init # auto-detects your CLIs
|
|
109
|
+
npx azrole init --all # install for ALL supported CLIs
|
|
110
|
+
npx azrole init --claude # Claude Code only
|
|
111
|
+
npx azrole init --gemini # Gemini CLI only
|
|
112
|
+
npx azrole init --codex # Codex CLI only
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### 2a. New project — describe your idea
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
mkdir my-app && cd my-app
|
|
119
|
+
claude # or: codex, opencode, gemini
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
```
|
|
123
|
+
/dream SaaS analytics dashboard with Next.js, Python FastAPI,
|
|
124
|
+
PostgreSQL, Stripe billing, deployed on Vercel
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
### 2b. Existing project — scan and set up
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
cd my-existing-app
|
|
131
|
+
claude # or: codex, opencode, gemini
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
```
|
|
135
|
+
/setup
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
The orchestrator scans your codebase, detects your tech stack from actual files, and builds the environment around what already exists — in the right format for whichever CLI you're using.
|
|
139
|
+
|
|
140
|
+
### 3. Start building
|
|
141
|
+
|
|
142
|
+
```
|
|
143
|
+
/add user authentication with Google OAuth
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
### 4. Level up when ready
|
|
147
|
+
|
|
148
|
+
```
|
|
149
|
+
/level-up
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
154
|
+
## 7 Commands — All Plain English
|
|
155
|
+
|
|
156
|
+
No jargon. No dev knowledge needed. Just type what you want.
|
|
157
|
+
|
|
158
|
+
### Build & Grow
|
|
159
|
+
|
|
160
|
+
| Command | What it does |
|
|
161
|
+
|---------|-------------|
|
|
162
|
+
| `/dream` `"your idea"` | **New project** — describe your idea, get everything built |
|
|
163
|
+
| `/setup` | **Existing project** — scans your code, builds the environment around it |
|
|
164
|
+
| `/level-up` | See your current level (0-10), build the next one |
|
|
165
|
+
| `/evolve` | Auto-find and fix gaps in your agents, skills, and memory |
|
|
166
|
+
|
|
167
|
+
### Everyday Use
|
|
168
|
+
|
|
169
|
+
| Command | What it does |
|
|
170
|
+
|---------|-------------|
|
|
171
|
+
| `/fix` `"what's broken"` | Describe the bug in plain English, get it fixed |
|
|
172
|
+
| `/ship` | Save your work and push to GitHub (auto-generates commit message) |
|
|
173
|
+
| `/explain` `"anything"` | Explain code, errors, or concepts like you're not a developer |
|
|
174
|
+
| `/status` | Quick health check — what's working, what changed, what to do next |
|
|
175
|
+
|
|
176
|
+
### Real Workflow Example
|
|
177
|
+
|
|
178
|
+
```
|
|
179
|
+
/dream fitness tracker app with React Native and Firebase
|
|
180
|
+
... orchestrator builds your entire dev environment ...
|
|
181
|
+
|
|
182
|
+
/add user profile page with avatar upload
|
|
183
|
+
... specialist agent builds the feature ...
|
|
184
|
+
|
|
185
|
+
/fix the avatar doesn't show after upload
|
|
186
|
+
... agent finds the bug, fixes it, explains what happened ...
|
|
187
|
+
|
|
188
|
+
/explain what does useEffect do in the profile component
|
|
189
|
+
... explains in plain English, no jargon ...
|
|
190
|
+
|
|
191
|
+
/ship
|
|
192
|
+
... commits with message "Add user profile with avatar upload", pushes to GitHub ...
|
|
193
|
+
|
|
194
|
+
/status
|
|
195
|
+
... shows: 12 files changed, all tests passing, suggests adding unit tests ...
|
|
196
|
+
|
|
197
|
+
/level-up
|
|
198
|
+
... scans environment, shows Level 5, offers to build Level 6 (hooks & automation) ...
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
---
|
|
202
|
+
|
|
203
|
+
## Not Just for Developers
|
|
204
|
+
|
|
205
|
+
AZROLE adapts to any project type:
|
|
206
|
+
|
|
207
|
+
| You are a... | You type... | You get... |
|
|
208
|
+
|-------------|-------------|------------|
|
|
209
|
+
| **Developer** | `/dream SaaS app with Next.js and Stripe` | Frontend agent, backend agent, tester, reviewer, coding skills |
|
|
210
|
+
| **Writer** | `/dream mystery novel set in 1920s Paris` | Writer agent, editor agent, researcher, continuity checker, style skills |
|
|
211
|
+
| **Researcher** | `/dream PhD thesis on climate migration patterns` | Researcher agent, analyst, academic writer, methodology skills |
|
|
212
|
+
| **Marketer** | `/dream product launch campaign for AI fitness app` | Strategist agent, copywriter, reviewer, brand voice skills |
|
|
213
|
+
|
|
214
|
+
Same system. Same 10 levels. Different agents and skills for every domain.
|
|
215
|
+
|
|
216
|
+
---
|
|
217
|
+
|
|
218
|
+
## The 10 Levels
|
|
219
|
+
|
|
220
|
+
Most AI CLI users are stuck at Level 0-1. The gap between levels isn't knowledge — it's setup.
|
|
221
|
+
|
|
222
|
+
**Levels 1-5**: Build the team. **Levels 6-10**: Make the team learn.
|
|
223
|
+
|
|
224
|
+
```
|
|
225
|
+
Level 0 Terminal Tourist You type prompts and hope for the best
|
|
226
|
+
Level 1 Foundation Project rules + .gitignore
|
|
227
|
+
Level 2 Connected MCP servers (GitHub, databases, APIs)
|
|
228
|
+
Level 3 Skilled Custom skills + slash commands
|
|
229
|
+
Level 4 Remembering Memory system — project learns over time
|
|
230
|
+
Level 5 Multi-Agent Specialist agents working together
|
|
231
|
+
------------------------------ PERSISTENCE BARRIER ------------------------------
|
|
232
|
+
Level 6 Learning Hooks + agent learning protocol (knowledge survives sessions)
|
|
233
|
+
Level 7 Scoped Advanced MCP + agents scoped to specific servers
|
|
234
|
+
Level 8 Orchestrated Pipelines + debate engine + prompt self-optimization
|
|
235
|
+
Level 9 Workflow /deploy, /sprint, /refactor, /retro — all update memory
|
|
236
|
+
Level 10 Self-Evolving Loop controller + ELO ranking + topology optimization + KPI dashboard
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
The **Persistence Barrier** at Level 5 is where most setups fail. Below it, agents do
|
|
240
|
+
brilliant work and forget everything when the session ends. Above it, every session
|
|
241
|
+
makes the project smarter — patterns accumulate, antipatterns get documented, mistakes
|
|
242
|
+
never repeat.
|
|
243
|
+
|
|
244
|
+
Every level creates only native files (markdown + JSON).
|
|
245
|
+
No bash scripts. No cron jobs. **Works on Windows, Mac, and Linux identically.**
|
|
246
|
+
|
|
247
|
+
`/dream` builds you to **Level 5** by default.
|
|
248
|
+
`/level-up` takes you higher, one step at a time.
|
|
249
|
+
`/evolve` strengthens what you already have.
|
|
250
|
+
|
|
251
|
+
---
|
|
252
|
+
|
|
253
|
+
## The AZROLE Intelligence Architecture
|
|
254
|
+
|
|
255
|
+
What makes AZROLE different from a static setup tool:
|
|
256
|
+
|
|
257
|
+
```
|
|
258
|
+
┌─────────────────────────────────────────────────────┐
|
|
259
|
+
│ INTELLIGENCE LOOP │
|
|
260
|
+
│ │
|
|
261
|
+
│ Agents work ──> Learn ──> Score ──> Optimize ──> │
|
|
262
|
+
│ ^ │ │
|
|
263
|
+
│ └─────────────────────────────────────────┘ │
|
|
264
|
+
│ │
|
|
265
|
+
│ Memory Importance Scoring │
|
|
266
|
+
│ Every piece of knowledge gets a score. │
|
|
267
|
+
│ High-impact rises. Stale fades. Memory sharpens. │
|
|
268
|
+
│ │
|
|
269
|
+
│ ELO Output Ranking │
|
|
270
|
+
│ Agents, patterns, and debate outcomes get ranked. │
|
|
271
|
+
│ Better agents get harder tasks. Weak patterns │
|
|
272
|
+
│ get flagged for review. │
|
|
273
|
+
│ │
|
|
274
|
+
│ Prompt Self-Optimization │
|
|
275
|
+
│ Underperforming agents get their prompts rewritten │
|
|
276
|
+
│ based on what worked for high-performing agents. │
|
|
277
|
+
│ A/B tested. Winners kept. Losers archived. │
|
|
278
|
+
│ │
|
|
279
|
+
│ Topology Optimization │
|
|
280
|
+
│ Pipeline orderings are tested and measured. │
|
|
281
|
+
│ Low-influence agents get pruned or merged. │
|
|
282
|
+
│ Building blocks (reflect, debate, summarize) │
|
|
283
|
+
│ are injected where they improve quality. │
|
|
284
|
+
│ │
|
|
285
|
+
│ Debate Engine │
|
|
286
|
+
│ High-stakes decisions get two opposing advocates. │
|
|
287
|
+
│ A synthesis phase picks the winner on evidence, │
|
|
288
|
+
│ not opinion. Decisions logged with review triggers.│
|
|
289
|
+
│ │
|
|
290
|
+
│ Quality KPI Dashboard (scores.json) │
|
|
291
|
+
│ Every evolution cycle is measured. Environment, │
|
|
292
|
+
│ knowledge, and quality KPIs tracked over time. │
|
|
293
|
+
│ Trend: improving / stable / declining. │
|
|
294
|
+
└─────────────────────────────────────────────────────┘
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
This is not a one-time generator. It's a system that gets better every time you use it.
|
|
298
|
+
|
|
299
|
+
---
|
|
300
|
+
|
|
301
|
+
## What Gets Generated
|
|
302
|
+
|
|
303
|
+
After running `/dream`, your project gets a complete AI development environment:
|
|
304
|
+
|
|
305
|
+
```
|
|
306
|
+
your-project/
|
|
307
|
+
CLAUDE.md Project conventions (Claude reads this first)
|
|
308
|
+
.gitignore Configured for your stack
|
|
309
|
+
.mcp.json MCP server connections
|
|
310
|
+
.devteam/
|
|
311
|
+
blueprint.json Project analysis
|
|
312
|
+
scores.json Quality KPI dashboard (Level 10+)
|
|
313
|
+
elo-rankings.json Agent & pattern ELO rankings (Level 8+)
|
|
314
|
+
memory-scores.json Memory importance scores (Level 10+)
|
|
315
|
+
topology-map.json Pipeline topology tracking (Level 10+)
|
|
316
|
+
prompt-versions/ A/B test archive for prompt optimization
|
|
317
|
+
.claude/
|
|
318
|
+
settings.json Hooks & permissions (Level 6+)
|
|
319
|
+
agents/
|
|
320
|
+
dev-frontend.md Frontend specialist (sonnet)
|
|
321
|
+
dev-backend.md Backend specialist (sonnet)
|
|
322
|
+
dev-tester.md Testing specialist (sonnet, background)
|
|
323
|
+
dev-reviewer.md Code reviewer (opus, read-only)
|
|
324
|
+
dev-pipeline.md Multi-agent workflows (Level 8+)
|
|
325
|
+
dev-experiment.md Safe experiments in worktree (Level 8+)
|
|
326
|
+
dev-debate.md Multi-perspective decision engine (Level 8+)
|
|
327
|
+
dev-prompt-optimizer.md Self-evolving prompt quality (Level 8+)
|
|
328
|
+
loop-controller.md Self-improvement engine (Level 10)
|
|
329
|
+
skills/
|
|
330
|
+
react-patterns/SKILL.md Frontend patterns for YOUR stack
|
|
331
|
+
fastapi-patterns/SKILL.md Backend patterns for YOUR stack
|
|
332
|
+
project-conventions/SKILL.md Your project's rules and style
|
|
333
|
+
commands/
|
|
334
|
+
add.md Add a feature by describing it
|
|
335
|
+
test.md Run tests, explain results
|
|
336
|
+
review.md Code review
|
|
337
|
+
deploy.md Deployment pipeline (Level 9+)
|
|
338
|
+
sprint.md Plan & execute work (Level 9+)
|
|
339
|
+
memory/
|
|
340
|
+
MEMORY.md Master knowledge base (auto-loaded)
|
|
341
|
+
codebase-map.md Every module indexed
|
|
342
|
+
patterns.md Discovered patterns (ELO-ranked)
|
|
343
|
+
antipatterns.md Known pitfalls
|
|
344
|
+
decisions.md Architecture decisions (from debates)
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
Everything is tailored to YOUR project. Not templates. Not generic. **Real, specific infrastructure.**
|
|
348
|
+
|
|
349
|
+
---
|
|
350
|
+
|
|
351
|
+
## Every AI CLI Feature — Configured Automatically
|
|
352
|
+
|
|
353
|
+
AZROLE doesn't reinvent anything. It configures what your AI CLI already has:
|
|
354
|
+
|
|
355
|
+
| Claude Code Feature | What AZROLE does with it |
|
|
356
|
+
|---------|------------------------------|
|
|
357
|
+
| **CLAUDE.md** | Generates project conventions, architecture, agent routing |
|
|
358
|
+
| **Agents** | Creates specialists with full frontmatter (model, permissions, skills, MCP, hooks) |
|
|
359
|
+
| **Skills** | Builds patterns with progressive disclosure (SKILL.md + references/), pushy descriptions for reliable triggering |
|
|
360
|
+
| **Commands** | 7 global + project-specific commands generated from your stack |
|
|
361
|
+
| **Memory** | Persistent knowledge base — codebase map, patterns, antipatterns, decisions |
|
|
362
|
+
| **MCP Servers** | Auto-detects from your stack, scopes per agent via `mcpServers:` |
|
|
363
|
+
| **Hooks** | Auto-format on file saves, agent completion notifications |
|
|
364
|
+
| **Model routing** | `opus` for thinking, `sonnet` for building, `haiku` for simple tasks |
|
|
365
|
+
| **Permission modes** | `acceptEdits` for builders, `plan` for reviewers — no permission spam |
|
|
366
|
+
| **Background agents** | `background: true` on testers for concurrent work |
|
|
367
|
+
| **Worktree isolation** | `isolation: worktree` for safe experiments that can't break your code |
|
|
368
|
+
| **Tool scoping** | `disallowedTools: Write, Edit` on reviewers — read-only by design |
|
|
369
|
+
| **Agent chaining** | Pipeline agents that delegate to specialists via Agent tool |
|
|
370
|
+
|
|
371
|
+
**You get all of this without knowing any of it exists.**
|
|
372
|
+
|
|
373
|
+
---
|
|
374
|
+
|
|
375
|
+
## What Gets Installed
|
|
376
|
+
|
|
377
|
+
The package is tiny. 9 files per CLI, installed to the right location automatically:
|
|
378
|
+
|
|
379
|
+
```
|
|
380
|
+
~/.claude/ (Claude Code)
|
|
381
|
+
~/.codex/ (Codex CLI)
|
|
382
|
+
~/.config/opencode/ (OpenCode)
|
|
383
|
+
~/.gemini/ (Gemini CLI)
|
|
384
|
+
~/.cursor/ (Cursor)
|
|
385
|
+
+-- agents/
|
|
386
|
+
orchestrator.md The brain — adapted for each CLI
|
|
387
|
+
+-- commands/
|
|
388
|
+
dream.md (.toml) /dream — build from a project idea
|
|
389
|
+
setup.md (.toml) /setup — scan existing project
|
|
390
|
+
level-up.md (.toml) /level-up — grow to the next level
|
|
391
|
+
evolve.md (.toml) /evolve — auto-improve environment
|
|
392
|
+
fix.md (.toml) /fix — describe a bug, get it fixed
|
|
393
|
+
ship.md (.toml) /ship — commit and push changes
|
|
394
|
+
explain.md (.toml) /explain — plain English explanations
|
|
395
|
+
status.md (.toml) /status — project health check
|
|
396
|
+
```
|
|
397
|
+
|
|
398
|
+
No dependencies. No background processes. No config files.
|
|
399
|
+
The orchestrator generates everything else dynamically based on your project.
|
|
400
|
+
Gemini CLI uses `.toml` commands, all others use `.md` — handled automatically.
|
|
401
|
+
|
|
402
|
+
---
|
|
403
|
+
|
|
404
|
+
## CLI Reference
|
|
405
|
+
|
|
406
|
+
```bash
|
|
407
|
+
npx azrole init # Auto-detect CLIs, install globally
|
|
408
|
+
npx azrole init --all # Install for ALL supported CLIs
|
|
409
|
+
npx azrole init --claude # Install for Claude Code only
|
|
410
|
+
npx azrole init --codex # Install for Codex CLI only
|
|
411
|
+
npx azrole init --opencode # Install for OpenCode only
|
|
412
|
+
npx azrole init --gemini # Install for Gemini CLI only
|
|
413
|
+
npx azrole init --cursor # Install for Cursor only
|
|
414
|
+
npx azrole init --force # Reinstall, overwrite modified files
|
|
415
|
+
npx azrole init-local # Install in current project only
|
|
416
|
+
npx azrole detect # Show which CLIs are installed
|
|
417
|
+
npx azrole status # Check installation status
|
|
418
|
+
npx azrole uninstall # Remove everything
|
|
419
|
+
npx azrole --version # Show version
|
|
420
|
+
```
|
|
421
|
+
|
|
422
|
+
Also works as `npx ai-dreamteam` and `npx claude-dreamteam` for backward compatibility.
|
|
423
|
+
|
|
424
|
+
---
|
|
425
|
+
|
|
426
|
+
## Real Case Study: A Book Manuscript
|
|
427
|
+
|
|
428
|
+
Not a demo. Not a mock. This is what happened when `/setup` was run on an actual 150,000-word biography manuscript.
|
|
429
|
+
|
|
430
|
+
**Project**: A premium nonfiction biography — 24 chapters, 5 parts, ~150K words. LaTeX/LuaLaTeX production pipeline.
|
|
431
|
+
|
|
432
|
+
**Starting state**: 3 raw files. No CLAUDE.md. No agents. No skills. No memory. Level 0.
|
|
433
|
+
|
|
434
|
+
```
|
|
435
|
+
/setup
|
|
436
|
+
```
|
|
437
|
+
|
|
438
|
+
**2 minutes later — Level 5:**
|
|
439
|
+
|
|
440
|
+
```
|
|
441
|
+
Level 1: CLAUDE.md -- 73 lines — architecture, conventions, editorial standards
|
|
442
|
+
Level 2: MCP Servers -- Skipped (no external services needed)
|
|
443
|
+
Level 3: Skills & Commands -- 3 skills, 4 commands
|
|
444
|
+
Level 4: Memory System -- 32-line index + 3 knowledge files
|
|
445
|
+
Level 5: Multi-Agent -- 4 specialized agents
|
|
446
|
+
```
|
|
447
|
+
|
|
448
|
+
### What it built:
|
|
449
|
+
|
|
450
|
+
**4 Agents** — each with a specific role:
|
|
451
|
+
| Agent | Model | Role |
|
|
452
|
+
|-------|-------|------|
|
|
453
|
+
| `dev-writer` | Sonnet | Chapter drafting, prose, narrative voice |
|
|
454
|
+
| `dev-editor` | Opus | Continuity, transitions, structural integrity |
|
|
455
|
+
| `dev-typesetter` | Sonnet | LaTeX compilation, typography, layout |
|
|
456
|
+
| `dev-reviewer` | Opus | Full manuscript audit, publication readiness |
|
|
457
|
+
|
|
458
|
+
**3 Skills** — domain knowledge always available:
|
|
459
|
+
- `latex-memoir/` — LuaLaTeX engine rules, custom commands, anti-patterns
|
|
460
|
+
- `editorial-craft/` — Narrative voice, 5 thematic threads, cultural sensitivity guidelines
|
|
461
|
+
- `project-conventions/` — File naming, chapter numbering, production specs
|
|
462
|
+
|
|
463
|
+
**4 Commands** — plain English:
|
|
464
|
+
| Command | What it does |
|
|
465
|
+
|---------|-------------|
|
|
466
|
+
| `/build` | Compile manuscript with LuaLaTeX, diagnose errors, fix, recompile |
|
|
467
|
+
| `/audit-chapter 12` | Full editorial audit of chapter 12 with star ratings |
|
|
468
|
+
| `/new-chapter "The Riyadh Season launch"` | Scaffold a new chapter in the right structure |
|
|
469
|
+
| `/review` | Manuscript-wide quality pass with delta comparison |
|
|
470
|
+
|
|
471
|
+
**Memory system** — the project remembers:
|
|
472
|
+
- Codebase map with every file's role and dependencies
|
|
473
|
+
- Architecture decisions (why LuaLaTeX, why single content file)
|
|
474
|
+
- Discovered patterns (execution lens, thematic threading, temporal anchoring)
|
|
475
|
+
- Known gotchas (Part IV timeline overlaps, weakest transitions)
|
|
476
|
+
|
|
477
|
+
**The person who ran this is not a developer.** They write books.
|
|
478
|
+
|
|
479
|
+
> Full setup log: [DREAMTEAM_SETUP_LOG.md](docs/case-studies/book-manuscript.md)
|
|
480
|
+
|
|
481
|
+
---
|
|
482
|
+
|
|
483
|
+
## How It Works
|
|
484
|
+
|
|
485
|
+
The orchestrator is a single AI agent (~1900 lines) that carries the knowledge of 10 mastery levels plus a self-evolving intelligence layer. It adapts to whichever CLI you're using.
|
|
486
|
+
|
|
487
|
+
**`/dream`** analyzes your project idea, creates a blueprint, then builds each level sequentially. It delegates to sub-agents for each level, runs quality checks, and presents everything created.
|
|
488
|
+
|
|
489
|
+
**`/level-up`** scans your environment file by file, calculates your current level, shows what the next level unlocks, and builds it.
|
|
490
|
+
|
|
491
|
+
**`/evolve`** runs a gap analysis across agents, skills, commands, memory, AND knowledge health. Scores each area 1-10. Fixes the top 5 weaknesses. Consolidates scattered learnings into structured knowledge. Reports the improvement with quality KPIs.
|
|
492
|
+
|
|
493
|
+
**The intelligence layer** (Levels 8-10):
|
|
494
|
+
- **Debate engine** spawns opposing advocates for high-stakes decisions, synthesizes on evidence quality, logs outcomes with review triggers
|
|
495
|
+
- **ELO ranking** tracks agent quality, pattern effectiveness, and debate outcomes over time — higher-ELO agents get harder tasks
|
|
496
|
+
- **Memory importance scoring** evaluates every piece of knowledge on frequency, recency, and impact — high-value knowledge rises, stale knowledge auto-archives
|
|
497
|
+
- **Prompt self-optimization** analyzes which agent prompts produce the best outputs, rewrites underperformers, A/B tests changes
|
|
498
|
+
- **Topology optimization** measures agent influence in pipeline chains, reorders for higher quality, prunes low-influence agents, injects building blocks (reflect, debate, summarize) where they help
|
|
499
|
+
- **Quality KPI dashboard** (`scores.json`) tracks environment, knowledge, topology, and quality metrics across evolution cycles with trend analysis
|
|
500
|
+
|
|
501
|
+
Your project doesn't just remember. It gets **smarter**.
|
|
502
|
+
|
|
503
|
+
---
|
|
504
|
+
|
|
505
|
+
## FAQ
|
|
506
|
+
|
|
507
|
+
**Does this only work for coding projects?**
|
|
508
|
+
No. AZROLE works for any project — software, books, research papers, marketing campaigns, legal documents. The orchestrator detects whether you're building code, writing content, doing research, or running a business project and adapts agents, skills, and commands accordingly.
|
|
509
|
+
|
|
510
|
+
**Does this work with any tech stack?**
|
|
511
|
+
Yes. React, Vue, Angular, Svelte, Next.js, FastAPI, Django, Express, Rails, Go, Rust, Flutter, React Native, and anything else. The orchestrator analyzes whatever you describe.
|
|
512
|
+
|
|
513
|
+
**Does it generate actual code for my app?**
|
|
514
|
+
No. It generates the AI *infrastructure* (agents, skills, commands, memory) that helps you build your app faster. Think of it as hiring an AI dev team, not building your app.
|
|
515
|
+
|
|
516
|
+
**Can I customize what it generates?**
|
|
517
|
+
Everything is plain markdown files. Edit any agent, skill, or command after generation. The orchestrator creates the starting point — you own it from there.
|
|
518
|
+
|
|
519
|
+
**What model does it use?**
|
|
520
|
+
The orchestrator uses Opus for deep analysis. Generated agents use smart routing: Opus for architecture and review, Sonnet for implementation, Haiku for simple tasks. You can change any agent's model.
|
|
521
|
+
|
|
522
|
+
**Will it overwrite my existing files?**
|
|
523
|
+
The CLI protects modified files. If you edited a file, `init` skips it unless you pass `--force`. The orchestrator never deletes user-created files.
|
|
524
|
+
|
|
525
|
+
**Does it work on Windows?**
|
|
526
|
+
Yes. Every level uses only native files (markdown + JSON). No bash scripts, no cron, no OS-specific tools. Windows, Mac, Linux — identical.
|
|
527
|
+
|
|
528
|
+
**Does this work with Codex CLI / OpenCode / Gemini CLI / Cursor?**
|
|
529
|
+
Yes. AZROLE auto-detects which CLIs you have installed and sets up for all of them. Same commands, same levels, adapted file formats. Use `--all` to install for every supported CLI.
|
|
530
|
+
|
|
531
|
+
**How is this different from the built-in /init command?**
|
|
532
|
+
Most AI CLIs have a basic `/init` that generates a simple rules file. That's Level 1. AZROLE builds Levels 1-10: agents, skills, commands, memory, MCP, hooks, pipelines, debate engine, ELO ranking, prompt optimization, topology optimization, and a self-improving loop.
|
|
533
|
+
|
|
534
|
+
**What's the difference between AZROLE and ai-dreamteam?**
|
|
535
|
+
AZROLE is the evolution of ai-dreamteam. Same creator, same architecture, now with self-evolving intelligence (ELO ranking, prompt optimization, memory importance scoring). `npx ai-dreamteam` still works for backward compatibility.
|
|
536
|
+
|
|
537
|
+
**Is this free?**
|
|
538
|
+
The package is free. You need a subscription to your AI CLI of choice (which uses your own API credits).
|
|
539
|
+
|
|
540
|
+
---
|
|
541
|
+
|
|
542
|
+
## License
|
|
543
|
+
|
|
544
|
+
MIT
|
|
545
|
+
|
|
546
|
+
---
|
|
547
|
+
|
|
548
|
+
Built by [@haytamAroui](https://github.com/haytamAroui)
|