chati-dev 2.1.0 → 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.
Files changed (51) hide show
  1. package/README.md +165 -176
  2. package/framework/agents/build/dev.md +1 -0
  3. package/framework/agents/deploy/devops.md +1 -0
  4. package/framework/agents/discover/brief.md +1 -0
  5. package/framework/agents/discover/brownfield-wu.md +1 -0
  6. package/framework/agents/discover/greenfield-wu.md +1 -0
  7. package/framework/agents/plan/architect.md +1 -0
  8. package/framework/agents/plan/detail.md +1 -0
  9. package/framework/agents/plan/phases.md +1 -0
  10. package/framework/agents/plan/tasks.md +1 -0
  11. package/framework/agents/plan/ux.md +1 -0
  12. package/framework/agents/quality/qa-implementation.md +1 -0
  13. package/framework/agents/quality/qa-planning.md +1 -0
  14. package/framework/config.yaml +21 -2
  15. package/framework/constitution.md +66 -1
  16. package/framework/domains/agents/brownfield-wu.yaml +4 -0
  17. package/framework/domains/agents/dev.yaml +4 -0
  18. package/framework/domains/agents/orchestrator.yaml +8 -0
  19. package/framework/domains/constitution.yaml +28 -0
  20. package/framework/domains/global.yaml +20 -0
  21. package/framework/hooks/model-governance.js +17 -15
  22. package/framework/intelligence/context-engine.md +29 -0
  23. package/framework/intelligence/memory-layer.md +17 -0
  24. package/framework/orchestrator/chati.md +94 -14
  25. package/framework/schemas/config.schema.json +44 -0
  26. package/framework/schemas/session.schema.json +27 -0
  27. package/package.json +6 -2
  28. package/src/autonomy/build-loop.js +194 -0
  29. package/src/autonomy/build-state.js +269 -0
  30. package/src/autonomy/execution-profile.js +151 -0
  31. package/src/config/context-file-generator.js +209 -0
  32. package/src/gates/g2-qa-planning.js +4 -2
  33. package/src/gates/g4-qa-implementation.js +5 -2
  34. package/src/gates/gate-base.js +33 -1
  35. package/src/health/engine.js +250 -0
  36. package/src/intelligence/file-tracker.js +117 -0
  37. package/src/intelligence/timeline.js +144 -0
  38. package/src/memory/gotchas-auto-capture.js +253 -0
  39. package/src/terminal/adapters/claude-adapter.js +43 -0
  40. package/src/terminal/adapters/codex-adapter.js +41 -0
  41. package/src/terminal/adapters/copilot-adapter.js +38 -0
  42. package/src/terminal/adapters/gemini-adapter.js +42 -0
  43. package/src/terminal/adapters/index.js +8 -0
  44. package/src/terminal/cli-registry.js +218 -0
  45. package/src/terminal/prompt-builder.js +18 -15
  46. package/src/terminal/spawner.js +19 -9
  47. package/src/terminal/wave-analyzer.js +143 -0
  48. package/framework/manifest.json +0 -5
  49. package/framework/manifest.sig +0 -1
  50. /package/assets/{logo - co/314/201pia.png" → logo - c/303/263pia.png"} +0 -0
  51. /package/assets/{logo - co/314/201pia.svg" → logo - c/303/263pia.svg"} +0 -0
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  <p align="center">
10
10
  <a href="https://www.npmjs.com/package/chati-dev"><img src="https://img.shields.io/npm/v/chati-dev?color=blue&label=npm" alt="npm"></a>
11
- <a href="LICENSE"><img src="https://img.shields.io/badge/License-BSL_1.1-blue.svg" alt="License: BSL 1.1"></a>
11
+ <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License: MIT"></a>
12
12
  <a href="https://nodejs.org/"><img src="https://img.shields.io/badge/node-%3E%3D20.0.0-brightgreen.svg" alt="Node.js"></a>
13
13
  <a href="#internationalization"><img src="https://img.shields.io/badge/i18n-EN%20%7C%20PT%20%7C%20ES%20%7C%20FR-informational.svg" alt="i18n"></a>
14
14
  <a href=".github/CONTRIBUTING.md"><img src="https://img.shields.io/badge/contributions-welcome-brightgreen.svg" alt="Contributions Welcome"></a>
@@ -16,13 +16,26 @@
16
16
 
17
17
  ---
18
18
 
19
- A structured, agent-driven orchestration system that coordinates **13 specialized AI agents** across the full software development lifecycle — from requirements gathering to deployment. Every decision is traceable, every artifact is validated, every session persists.
19
+ ## What is Chati.dev?
20
+
21
+ Chati.dev is a system that **turns AI into a structured development team**. Instead of chatting with a single AI that forgets everything between sessions, you get 13 specialized agents — each with a clear role — working together through a defined pipeline.
22
+
23
+ You describe what you want to build. The agents handle requirements, architecture, planning, coding, testing, and deployment — in order, with quality gates between each phase.
24
+
25
+ ```
26
+ You → DISCOVER → PLAN → BUILD → DEPLOY → Done
27
+ "what" "how" "code" "ship"
28
+ ```
29
+
30
+ Every decision is saved. Every artifact is validated. If you close your laptop and come back tomorrow, the system picks up exactly where you left off.
31
+
32
+ ---
20
33
 
21
34
  ## Why Chati.dev?
22
35
 
23
36
  ### The Problem
24
37
 
25
- AI-assisted development today suffers from three critical issues:
38
+ AI-assisted development today has three critical issues:
26
39
 
27
40
  1. **Context Loss** — AI forgets decisions across sessions, leading to inconsistent implementations
28
41
  2. **Planning Gaps** — Jumping straight to code without structured requirements leads to rework
@@ -30,42 +43,19 @@ AI-assisted development today suffers from three critical issues:
30
43
 
31
44
  ### The Solution
32
45
 
33
- Chati.dev introduces **Agent-Driven Development**: a pipeline of 13 specialized agents where each agent owns a specific phase, produces validated artifacts, and hands off context to the next agent. An Intelligence Layer ensures context is never lost, knowledge persists across sessions, and the user never accidentally leaves the system.
34
-
35
- ```
36
- DISCOVER → PLAN → Quality Gate → BUILD → Quality Gate → DEPLOY
37
- 3 agents 5 agents QA-Planning Dev QA-Impl DevOps
38
- ```
39
-
40
- ### Key Innovations
41
-
42
- | Innovation | Description |
43
- |------------|-------------|
44
- | **Structured Agent Pipeline** | 13 agents with defined missions, validated outputs, and handoff protocols |
45
- | **Self-Validating Agents** | Binary pass/fail criteria per agent. 5 quality gates with circuit breaker |
46
- | **Context Engine PRISM** | 5-layer injection pipeline with bracket tracking (FRESH → CRITICAL). Autonomous recovery |
47
- | **Memory System RECALL** | 4 cognitive sectors. Persistent knowledge across sessions with attention scoring and natural decay |
48
- | **Decision Engine COMPASS** | Entity catalog with Jaccard similarity for REUSE/ADAPT/CREATE decisions. Self-healing registry |
49
- | **Session Lock** | Once activated, user stays in system until explicit exit. Zero accidental leakage |
50
- | **Hooks System** | 6 Claude Code hooks — constitution guard, mode governance, model governance, read protection, context injection, session digest |
51
- | **Supply Chain Security** | Ed25519 manifest signing. Package integrity verification on install. Semantic linter for cross-reference validation |
52
- | **Execution Modes** | Autonomous and human-in-the-loop modes with safety net (5 triggers) and circuit breaker |
53
- | **Multi-Terminal** | Autonomous agents spawn in separate `claude -p` terminals with dedicated models. Parallel groups (Detail + Architect + UX) with write-scope isolation |
54
- | **IDE-Agnostic** | Works with 6 IDEs through a thin router pattern |
46
+ Chati.dev introduces **Agent-Driven Development**: a pipeline where each agent owns a specific phase, produces validated artifacts, and hands off context to the next agent. The system ensures context is never lost, knowledge persists across sessions, and you never accidentally leave the pipeline.
55
47
 
56
48
  ---
57
49
 
58
- ## Prerequisites
50
+ ## Quick Start
51
+
52
+ ### Prerequisites
59
53
 
60
54
  - **Node.js** >= 20.0.0 ([download](https://nodejs.org/))
61
55
  - **Claude Code** — the CLI for Claude ([install guide](https://docs.anthropic.com/en/docs/claude-code/overview))
62
56
 
63
57
  Other supported IDEs: VS Code, Cursor, Gemini CLI, GitHub Copilot, AntiGravity (see [Supported IDEs](#supported-ides)).
64
58
 
65
- ---
66
-
67
- ## Quick Start
68
-
69
59
  ### 1. Install in your project
70
60
 
71
61
  Open a terminal in your project directory:
@@ -74,9 +64,9 @@ Open a terminal in your project directory:
74
64
  npx chati-dev init
75
65
  ```
76
66
 
77
- The wizard asks your language and project type, then auto-configures Claude Code with the required MCPs.
67
+ The wizard asks your language and project type, then auto-configures everything.
78
68
 
79
- ### 2. Start Claude Code and activate
69
+ ### 2. Activate the orchestrator
80
70
 
81
71
  Open Claude Code in the same project directory, then type:
82
72
 
@@ -86,11 +76,20 @@ Open Claude Code in the same project directory, then type:
86
76
 
87
77
  The orchestrator loads your session, detects where you left off, and routes you to the right agent. You stay inside the system until you explicitly exit.
88
78
 
89
- ### 3. Build
79
+ ### 3. Follow the pipeline
90
80
 
91
- From here, the agents take over. You'll go through Planning (requirements, architecture, phases, tasks), Quality Gates, Build, and Deploy — all orchestrated automatically.
81
+ The agents guide you through each phase:
92
82
 
93
- ### Monitor
83
+ | Phase | What happens | You do |
84
+ |-------|-------------|--------|
85
+ | **DISCOVER** | Agents interview you about what you want to build | Answer questions about your project |
86
+ | **PLAN** | Agents create PRD, architecture, UX spec, phases, and tasks | Review and approve the plan |
87
+ | **BUILD** | Dev agent implements the code, task by task | Review code as it's built |
88
+ | **DEPLOY** | DevOps agent handles git, deployment, and documentation | Confirm deployment settings |
89
+
90
+ Quality gates run automatically between phases — if something doesn't meet the threshold, the system loops back and fixes it.
91
+
92
+ ### Monitor progress
94
93
 
95
94
  ```bash
96
95
  npx chati-dev status # One-time snapshot
@@ -106,156 +105,160 @@ npx chati-dev status --watch # Auto-refresh every 5s
106
105
 
107
106
  ---
108
107
 
108
+ ## Key Features
109
+
110
+ | Feature | What it means |
111
+ |---------|--------------|
112
+ | **13 Specialized Agents** | Each agent has a defined mission, success criteria, and handoff protocol — not one AI trying to do everything |
113
+ | **Quality Gates** | Every phase is validated before moving forward. Binary pass/fail — no subjective "looks good" |
114
+ | **Context Persistence** | Sessions survive restarts. Close your IDE, come back next week — the system remembers everything |
115
+ | **Session Lock** | Once activated, you stay inside the system. No accidentally "falling out" into generic AI mode |
116
+ | **Multi-Terminal** | Autonomous agents run in parallel in separate terminals. Detail, Architect, and UX agents work simultaneously |
117
+ | **Memory System** | The system learns from mistakes. Gotchas are captured automatically and recalled when relevant |
118
+ | **IDE-Agnostic** | Works with Claude Code, VS Code, Cursor, Gemini CLI, GitHub Copilot, and AntiGravity |
119
+ | **4 Languages** | Interface supports English, Portuguese, Spanish, and French. Artifacts are always generated in English |
120
+ | **Supply Chain Security** | Every file is cryptographically signed. Tampered packages are blocked on install |
121
+
122
+ ---
123
+
109
124
  ## Architecture
110
125
 
111
- ### 13 Agents, 5 Categories
126
+ ### 13 Agents, 4 Pipeline Phases
112
127
 
113
- | Category | Agents | Purpose |
114
- |----------|--------|---------|
115
- | **DISCOVER** | Greenfield WU, Brownfield WU, Brief | User Interaction & Discovery |
116
- | **PLAN** | Detail (PRD), Architect, UX, Phases, Tasks | Autonomous Planning |
117
- | **Quality** | QA-Planning, QA-Implementation | Validation & Gates |
118
- | **BUILD** | Dev | Implementation |
119
- | **DEPLOY** | DevOps | Shipping |
128
+ | Phase | Agents | What they do |
129
+ |-------|--------|-------------|
130
+ | **DISCOVER** | Greenfield WU, Brownfield WU, Brief | Interview you, understand your project, extract requirements |
131
+ | **PLAN** | Detail, Architect, UX, Phases, Tasks | Create PRD, design architecture, define UX, break work into phases and tasks |
132
+ | **BUILD** | Dev | Implement code task by task, following the plan |
133
+ | **DEPLOY** | DevOps | Handle git operations, deployment, and documentation |
134
+ | **Quality** | QA-Planning, QA-Implementation | Validate plan coherence (≥95%) and code quality (≥95%) between phases |
120
135
 
121
- ### Pipeline Flow
136
+ ### How the Pipeline Works
122
137
 
123
138
  ```
124
- User Request
125
-
126
-
127
- ┌─────────────────────────────────────────────────┐
128
- │ ORCHESTRATOR (/chati) — Main Terminal
129
- │ Routes to correct agent, manages session
130
- Session Lock: user stays in system
131
- └─────────────────────────────────────────────────┘
132
-
133
- ├── In-conversation ──┐
134
-
135
- │ ┌─── DISCOVER (interactive) ──┐
136
- │ │ WU → Brief
137
- └─────────────────────────────┘
138
-
139
- ├── Spawns terminals ──────────────────────────┐
140
-
141
- │ ┌─── PLAN (autonomous) ─────── Parallel ───┐
142
- │ │ Detail (opus) ──┐
143
- │ │ Architect (opus)├── run simultaneously
144
- │ │ UX (sonnet) ────┘
145
- │ │ → Phases → Tasks
146
- └──────────────────────────────────────────┘
147
-
148
- ├── Spawns terminal ──┐
149
-
150
- │ ┌─── QUALITY ─────────────────────────────┐
151
- QA-Planning (opus) — ≥95% threshold │
152
- │ └──────────────────────────────────────────┘
153
-
154
- ├── Spawns terminal(s) ┐
155
-
156
- │ ┌─── BUILD ───────────────────────────────┐
157
- Dev (opus) — parallel for independent │
158
- │ └──────────────────────────────────────────┘
159
-
160
- ├── Spawns terminal ──┐
161
-
162
- ┌─── QUALITY ─────────────────────────────┐
163
- │ │ QA-Implementation (opus) tests + SAST │
164
- └──────────────────────────────────────────┘
165
-
166
- └── Spawns terminal ──┐
167
-
168
- ┌─── DEPLOY ──────────────────────────────┐
169
- │ DevOps (sonnet) — git + deploy + docs │
170
- └──────────────────────────────────────────┘
139
+ You type /chati
140
+
141
+
142
+ ┌──────────────────────────────────────────────┐
143
+ │ ORCHESTRATOR
144
+ │ Routes you to the right agent.
145
+ Manages session state and handoffs.
146
+ └──────────────────────────────────────────────┘
147
+
148
+ ├─ In your conversation ─────────────────┐
149
+
150
+ DISCOVER (interactive)
151
+ WU interviews you → Brief compiles
152
+ requirements into a structured doc
153
+
154
+ ├─ Spawns separate terminals ────────────┐
155
+
156
+ PLAN (autonomous, parallel)
157
+ Detail ───┐
158
+ Architect ├─ run simultaneously
159
+ UX ───────┘
160
+ Then: Phases → Tasks
161
+
162
+ ├─ Quality Gate ─────────────────────────┐
163
+ │ │
164
+ QA-Planning validates the plan
165
+ Must score ≥ 95% to proceed │
166
+
167
+ ├─ Spawns terminal(s) ───────────────────┐
168
+
169
+ BUILD │
170
+ Dev implements tasks (parallel
171
+ when tasks are independent) │
172
+
173
+ ├─ Quality Gate ─────────────────────────┐
174
+
175
+ QA-Implementation validates code │
176
+ Tests + static analysis + coverage
177
+
178
+ └─ Spawns terminal ──────────────────────┐
179
+
180
+ DEPLOY
181
+ DevOps handles git, deploy, docs │
182
+
183
+ Done
171
184
  ```
172
185
 
173
186
  Each spawned terminal runs as a separate `claude -p --model <model>` process with its own context window, write-scope isolation, and structured handoff output.
174
187
 
175
188
  ### Intelligence Layer
176
189
 
177
- The Intelligence Layer operates transparently behind the pipeline:
190
+ Three systems operate transparently behind the pipeline:
178
191
 
179
192
  | System | What it does |
180
193
  |--------|-------------|
181
- | **Context Engine PRISM** | 5-layer injection pipeline (Constitution Global Agent Workflow → Task). 4 brackets (FRESH/MODERATE/DEPLETED/CRITICAL). Domain loading with graceful degradation. |
182
- | **Memory System RECALL** | Gotchas auto-capture with 3x/24h promotion. Per-agent memory CRUD. Session digests. Unified search across 4 cognitive sectors (Episodic, Semantic, Procedural, Reflective). |
183
- | **Decision Engine COMPASS** | Jaccard similarity for REUSE/ADAPT/CREATE decisions. BFS dependency analysis. Entity registry auto-update. 6 self-healing rules. |
184
- | **Session Lock** | Locks the session on `/chati` activation. All messages routed through orchestrator. Exit only via `/chati exit`. Prevents accidental context leakage. |
185
-
186
- ### Universal Protocols
187
-
188
- Every agent follows 8 universal protocols:
189
-
190
- | Protocol | Purpose |
191
- |----------|---------|
192
- | 5.1 Dynamic Self-Validation | Binary pass/fail criteria per agent |
193
- | 5.2 Loop Until Done | Iterate until quality threshold met |
194
- | 5.3 Guided Options | Always present 1, 2, 3 choices |
195
- | 5.4 Persistence | Session state survives restarts |
196
- | 5.5 Two-Layer Handoff | Structured context transfer between agents |
197
- | 5.6 Language Protocol | Interaction in user lang, artifacts in English |
198
- | 5.7 Deviation Protocol | Handle scope changes mid-pipeline |
199
- | 5.8 Interaction Model | Agent-driven with power user escape hatch |
194
+ | **Context Engine (PRISM)** | Injects the right context at the right time. 5 layers of context (from system-wide rules down to specific task details). Tracks how much context space remains and adapts automatically. |
195
+ | **Memory System (RECALL)** | Remembers decisions, gotchas, and lessons across sessions. Organized into 4 sectors: what happened (episodic), what we know (semantic), how we do things (procedural), and what we learned (reflective). |
196
+ | **Decision Engine (COMPASS)** | Before creating something new, checks if a similar component already exists. Decides whether to reuse, adapt, or create from scratch. Keeps a registry of all project entities. |
200
197
 
201
198
  ### Constitution
202
199
 
203
- The system is governed by a **17-article Constitution** that enforces agent behavior, quality standards, security, and system integrity. Key articles:
200
+ The system is governed by a **17-article Constitution** that enforces agent behavior, quality standards, security, and system integrity:
204
201
 
205
- | Article | Governance |
206
- |---------|-----------|
207
- | I-IV | Agent governance, quality standards, memory & context, security |
208
- | V-VII | Communication protocol, design system, English-only documentation |
209
- | VIII-X | Two-layer handoff, agent-driven interaction, dynamic self-validation |
210
- | XI | Mode governance (planning/build/deploy) with autonomous transitions |
211
- | XII-XIV | Context bracket governance, memory governance, framework registry |
212
- | XV | Session lock governance — mandatory lock, explicit exit only |
213
- | XVI | Model governance — opus/sonnet/haiku per agent, no downgrade rule |
214
- | XVII | Execution mode governance — autonomous vs human-in-the-loop, safety net triggers |
202
+ - **Agent Governance** — Every agent has a defined mission, scope, and success criteria
203
+ - **Quality Standards** — Minimum 95% score on quality gates. Binary pass/fail, not subjective
204
+ - **Security** No secrets in system files. No destructive operations without confirmation
205
+ - **Mode Governance** Planning mode can't modify project code. Build mode has full access
206
+ - **Session Lock** Once activated, all messages route through the orchestrator
207
+ - **Model Governance** Each agent runs on its designated AI model (Opus, Sonnet, or Haiku)
208
+ - **Execution Modes** Autonomous and human-in-the-loop with safety net and circuit breaker
215
209
 
216
210
  ---
217
211
 
218
212
  ## Supported IDEs
219
213
 
220
- | IDE | Router Pattern |
221
- |-----|---------------|
214
+ | IDE | How it connects |
215
+ |-----|----------------|
222
216
  | **Claude Code** | `.claude/commands/chati.md` → orchestrator |
223
217
  | **VS Code** | `.vscode/chati.md` → orchestrator |
224
- | **AntiGravity** | Platform agent config → orchestrator |
225
218
  | **Cursor** | `.cursor/rules/chati.md` → orchestrator |
226
219
  | **Gemini CLI** | `.gemini/agents/chati.md` → orchestrator |
227
220
  | **GitHub Copilot** | `.github/copilot/chati.md` → orchestrator |
221
+ | **AntiGravity** | Platform agent config → orchestrator |
222
+
223
+ All IDEs use a thin router file that points to the same orchestrator. Your project works the same regardless of which IDE you use.
228
224
 
229
225
  ---
230
226
 
231
227
  ## CLI Commands
232
228
 
229
+ ### Setup & Maintenance
230
+
233
231
  | Command | Description |
234
232
  |---------|-------------|
235
- | `npx chati-dev init` | Initialize new project with wizard |
233
+ | `npx chati-dev init` | Initialize new project with guided wizard |
236
234
  | `npx chati-dev install` | Install into existing project |
237
235
  | `npx chati-dev status` | Show project dashboard |
238
236
  | `npx chati-dev status --watch` | Auto-refresh dashboard every 5s |
239
- | `npx chati-dev check-update` | Check for system updates |
237
+ | `npx chati-dev health` | Run system health check (5 checks) |
238
+ | `npx chati-dev check-update` | Check for updates |
240
239
  | `npx chati-dev upgrade` | Upgrade to latest version |
241
240
  | `npx chati-dev upgrade --version X.Y.Z` | Upgrade to specific version |
242
- | `npx chati-dev memory stats` | Show memory statistics (total, by agent/sector/tier) |
243
- | `npx chati-dev memory list` | List memories (--agent, --sector, --tier filters) |
241
+ | `npx chati-dev --reconfigure` | Reconfigure installation |
242
+ | `npx chati-dev changelog` | View changelog |
243
+
244
+ ### Memory & Context
245
+
246
+ | Command | Description |
247
+ |---------|-------------|
248
+ | `npx chati-dev memory stats` | Show memory statistics |
249
+ | `npx chati-dev memory list` | List memories (filter by --agent, --sector, --tier) |
244
250
  | `npx chati-dev memory search <query>` | Search memories by tags or content |
245
- | `npx chati-dev memory clean` | Clean expired/session memories (--dry-run) |
246
- | `npx chati-dev context` | Show context bracket advisory |
251
+ | `npx chati-dev memory clean` | Clean expired memories (--dry-run to preview) |
252
+ | `npx chati-dev context` | Show context bracket status |
247
253
  | `npx chati-dev registry stats` | Show entity registry statistics |
248
- | `npx chati-dev registry check` | Validate entity registry against filesystem |
249
- | `npx chati-dev health` | Comprehensive system health check (5 checks) |
250
- | `npx chati-dev changelog` | View changelog |
251
- | `npx chati-dev --reconfigure` | Reconfigure installation |
254
+ | `npx chati-dev registry check` | Validate registry against filesystem |
252
255
 
253
- ### Orchestrator Commands (inside active session)
256
+ ### Inside an Active Session
254
257
 
255
258
  | Command | Description |
256
259
  |---------|-------------|
257
260
  | `/chati` | Start or resume session |
258
- | `/chati status` | Show pipeline status |
261
+ | `/chati status` | Show pipeline progress |
259
262
  | `/chati help` | Show available commands |
260
263
  | `/chati resume` | Resume from continuation file |
261
264
  | `/chati exit` | Save session and exit |
@@ -268,58 +271,44 @@ The system is governed by a **17-article Constitution** that enforces agent beha
268
271
  your-project/
269
272
  ├── .chati/
270
273
  │ ├── session.yaml # Session state (auto-managed, gitignored)
271
- │ └── memories/ # Memory Layer storage (gitignored)
274
+ │ └── memories/ # Memory storage (gitignored)
272
275
  ├── .claude/
273
276
  │ ├── commands/
274
277
  │ │ └── chati.md # Thin router → orchestrator
275
278
  │ └── rules/
276
- │ └── chati/ # Framework context (auto-loaded by Claude Code)
277
- │ ├── root.md # System overview + key references
278
- │ ├── governance.md # Constitution key rules
279
- │ ├── protocols.md # 8 universal protocols
279
+ │ └── chati/ # Framework context (auto-loaded)
280
+ │ ├── root.md # System overview
281
+ │ ├── governance.md # Constitution rules
282
+ │ ├── protocols.md # Universal protocols
280
283
  │ └── quality.md # Quality standards
281
- ├── CLAUDE.md # Minimal project context (auto-generated)
282
- ├── CLAUDE.local.md # Runtime state — session lock, current agent (gitignored)
283
- ├── docs/
284
- │ └── CHANGELOG.md # Version history
284
+ ├── CLAUDE.md # Project context (auto-generated)
285
+ ├── CLAUDE.local.md # Runtime state (gitignored)
285
286
  ├── chati.dev/
286
287
  │ ├── orchestrator/ # Main orchestrator
287
288
  │ ├── agents/ # 13 agent definitions
288
- │ │ ├── discover/ # 3 discover agents (WU, Brief)
289
- │ │ ├── plan/ # 5 plan agents (Detail, Architect, UX, Phases, Tasks)
290
- │ │ ├── quality/ # 2 quality gate agents
291
- │ │ ├── build/ # Dev agent
292
- │ │ └── deploy/ # DevOps agent
293
- │ ├── tasks/ # 72 task definitions (YAML frontmatter)
289
+ │ │ ├── discover/ # Greenfield WU, Brownfield WU, Brief
290
+ │ │ ├── plan/ # Detail, Architect, UX, Phases, Tasks
291
+ │ │ ├── quality/ # QA-Planning, QA-Implementation
292
+ │ │ ├── build/ # Dev
293
+ │ │ └── deploy/ # DevOps
294
+ │ ├── tasks/ # 73 task definitions
294
295
  │ ├── workflows/ # 6 workflow blueprints
295
296
  │ ├── templates/ # 6 artifact templates
296
- │ ├── schemas/ # 5 JSON schemas for validation
297
- │ ├── intelligence/ # Context Engine, Memory Layer, Decision Engine
298
- │ ├── domains/ # Domain loading configs (per-agent, per-workflow)
299
- │ ├── hooks/ # 6 Claude Code hooks (enforcement)
300
- │ ├── context/ # Context source files (deployed to .claude/rules/)
301
- │ ├── frameworks/ # Decision heuristics, quality dims
297
+ │ ├── schemas/ # 5 JSON schemas
298
+ │ ├── intelligence/ # PRISM, RECALL, COMPASS specs
299
+ │ ├── domains/ # Per-agent and per-workflow configs
300
+ │ ├── hooks/ # 6 Claude Code hooks
301
+ │ ├── context/ # Context files (deployed to .claude/rules/)
302
+ │ ├── frameworks/ # Decision heuristics
302
303
  │ ├── quality-gates/ # Planning & implementation gates
303
304
  │ ├── patterns/ # Elicitation patterns
304
- │ ├── data/ # Entity registry (50 artifacts)
305
+ │ ├── data/ # Entity registry
305
306
  │ ├── i18n/ # EN, PT, ES, FR translations
306
307
  │ ├── migrations/ # Version migration scripts
307
308
  │ ├── constitution.md # 17 Articles + Preamble
308
- ├── config.yaml # System configuration
309
- │ └── artifacts/ # Generated during pipeline
310
- │ ├── 0-WU/
311
- │ ├── 1-Brief/
312
- │ ├── 2-PRD/
313
- │ ├── 3-Architecture/
314
- │ ├── 4-UX/
315
- │ ├── 5-Phases/
316
- │ ├── 6-Tasks/
317
- │ ├── 7-QA-Planning/
318
- │ ├── 8-Validation/
319
- │ └── handoffs/
309
+ └── config.yaml # System configuration
320
310
  └── packages/
321
- └── chati-dev/ # CLI + runtime engine (npx chati-dev)
322
- └── src/terminal/ # Multi-terminal spawner, monitor, collector
311
+ └── chati-dev/ # CLI + runtime engine
323
312
  ```
324
313
 
325
314
  ---
@@ -353,15 +342,15 @@ Upgrades include automatic backup, migrations, validation, and config merging. R
353
342
 
354
343
  ## Contributing
355
344
 
356
- We welcome contributions from agents, templates, workflows, intelligence data, translations, and CLI improvements. Please see [CONTRIBUTING.md](.github/CONTRIBUTING.md) for guidelines.
345
+ We welcome contributions agents, templates, workflows, translations, and CLI improvements. See [CONTRIBUTING.md](.github/CONTRIBUTING.md) for guidelines.
357
346
 
358
347
  ## Security
359
348
 
360
- For security concerns, please see our [Security Policy](.github/SECURITY.md).
349
+ For security concerns, see our [Security Policy](.github/SECURITY.md).
361
350
 
362
351
  ## License
363
352
 
364
- This project is licensed under the Business Source License 1.1 — see [LICENSE](LICENSE) for details. Free for personal, educational, and evaluation use. Converts to Apache 2.0 on 2030-02-16.
353
+ [MIT](LICENSE)
365
354
 
366
355
  ---
367
356
 
@@ -14,6 +14,7 @@ You are the **Dev Agent**, responsible for implementing code based on the approv
14
14
  - **Ratio**: 20% Human / 80% AI (interactive) or 5% Human / 95% AI (autonomous)
15
15
  - **Absorbs**: Dev personas, self-validation patterns, Design System token enforcement, Ralph Wiggum autonomous mode, blocker taxonomy
16
16
  - **Model**: opus | no downgrade (code generation requires highest quality)
17
+ - **Provider**: claude (default) | gemini (when large codebase tasks)
17
18
 
18
19
  ## Required MCPs
19
20
  - context7 (library documentation)
@@ -13,6 +13,7 @@ You are the **DevOps Agent**, responsible for shipping the project: Git operatio
13
13
  - **Duration**: 15-30 min
14
14
  - **Ratio**: 30% Human / 70% AI
15
15
  - **Model**: sonnet | upgrade: opus if multi-environment or infrastructure-as-code
16
+ - **Provider**: claude (default)
16
17
  - **Absorbs**: Docs-gen (auto documentation generation)
17
18
 
18
19
  ## Required MCPs
@@ -13,6 +13,7 @@ You are the **Brief Agent**, responsible for extracting and structuring the core
13
13
  - **Duration**: 30-60 min
14
14
  - **Ratio**: 90% Human / 10% AI
15
15
  - **Model**: sonnet | upgrade: opus if enterprise or 10+ integrations
16
+ - **Provider**: claude (default)
16
17
 
17
18
  ## Required MCPs
18
19
  - None
@@ -13,6 +13,7 @@ You are the **Brownfield WU Agent**, responsible for comprehensive discovery of
13
13
  - **Duration**: 1-4h depending on codebase size
14
14
  - **Ratio**: 40% Human / 60% AI
15
15
  - **Model**: opus | no downgrade (codebase analysis requires deep reasoning)
16
+ - **Provider**: claude (default) | gemini (when codebase > 100K LOC)
16
17
 
17
18
  ## Required MCPs
18
19
  - git (read-only)
@@ -13,6 +13,7 @@ You are the **Greenfield WU Agent**, responsible for understanding HOW the user
13
13
  - **Duration**: 15-30 min
14
14
  - **Ratio**: 70% Human / 30% AI
15
15
  - **Model**: haiku | upgrade: sonnet if multi-stack or enterprise
16
+ - **Provider**: claude (default)
16
17
 
17
18
  ## Required MCPs
18
19
  - None
@@ -14,6 +14,7 @@ You are the **Architect Agent**, responsible for defining HOW the system will be
14
14
  - **Ratio**: 50% Human / 50% AI
15
15
  - **Absorbs**: Data Engineer (data modeling, DB audit, schema design, RLS policies)
16
16
  - **Model**: opus | no downgrade (architecture decisions require deep reasoning)
17
+ - **Provider**: claude (default)
17
18
 
18
19
  ## Required MCPs
19
20
  - context7 (library documentation search)
@@ -14,6 +14,7 @@ You are the **Detail Agent**, responsible for transforming the Brief into a form
14
14
  - **Ratio**: 70% Human / 30% AI
15
15
  - **Absorbs**: PM (PRD creation, product strategy), Analyst (market research, competitive analysis)
16
16
  - **Model**: opus | no downgrade (PRD traceability requires deep reasoning)
17
+ - **Provider**: claude (default)
17
18
 
18
19
  ## Required MCPs
19
20
  - None
@@ -14,6 +14,7 @@ You are the **Phases Agent**, responsible for breaking the PRD into development
14
14
  - **Ratio**: 60% Human / 40% AI
15
15
  - **Absorbs**: SM (sprint planning, prioritization, wave sequencing)
16
16
  - **Model**: sonnet | upgrade: opus if 20+ requirements or complex dependencies
17
+ - **Provider**: claude (default)
17
18
 
18
19
  ## Required MCPs
19
20
  - None
@@ -14,6 +14,7 @@ You are the **Tasks Agent**, responsible for breaking phases into atomic, execut
14
14
  - **Ratio**: 50% Human / 50% AI
15
15
  - **Absorbs**: SM (structured task creation, Given-When-Then criteria)
16
16
  - **Model**: sonnet | upgrade: opus if 50+ tasks or complex acceptance criteria
17
+ - **Provider**: claude (default)
17
18
 
18
19
  ## Required MCPs
19
20
  - None
@@ -14,6 +14,7 @@ You are the **UX Agent**, responsible for defining HOW the product will look and
14
14
  - **Ratio**: 60% Human / 40% AI
15
15
  - **Absorbs**: Design System init + audit (embedded workflow)
16
16
  - **Model**: sonnet | upgrade: opus if design system creation from scratch
17
+ - **Provider**: claude (default)
17
18
 
18
19
  ## Required MCPs
19
20
  - None
@@ -13,6 +13,7 @@ You are the **QA-Implementation Agent**, the quality gate between BUILD and DEPL
13
13
  - **Duration**: 15-45 min (mostly automated)
14
14
  - **Ratio**: 90% AI / 10% Human
15
15
  - **Model**: opus | no downgrade (code review and SAST require deep reasoning)
16
+ - **Provider**: claude (default)
16
17
  - **Absorbs**: Tests + SAST + CodeRabbit code review
17
18
 
18
19
  ## Required MCPs
@@ -13,6 +13,7 @@ You are the **QA-Planning Agent**, the quality gate between PLANNING (planning)
13
13
  - **Duration**: 15-30 min (automated validation)
14
14
  - **Ratio**: 95% AI / 5% Human
15
15
  - **Model**: opus | no downgrade (cross-artifact validation requires deep reasoning)
16
+ - **Provider**: claude (default)
16
17
  - **Absorbs**: Manager (cross-artifact validation), PO (quality gate validation, coherence checks)
17
18
 
18
19
  ## Required MCPs
@@ -1,8 +1,27 @@
1
1
  # chati.dev Configuration
2
- version: "2.1.0"
2
+ version: "3.0.0"
3
3
  installed_at: "2026-02-07T10:00:00Z"
4
4
  updated_at: "2026-02-17T00:00:00Z"
5
- installer_version: "2.1.0"
5
+ installer_version: "3.0.0"
6
6
  project_type: greenfield
7
7
  language: en
8
8
  ides: [claude-code]
9
+
10
+ # CLI providers — multi-CLI is opt-in (Article XIX)
11
+ providers:
12
+ claude:
13
+ enabled: true
14
+ primary: true
15
+ gemini:
16
+ enabled: false
17
+ model_default: pro
18
+ codex:
19
+ enabled: false
20
+ model_default: codex
21
+ copilot:
22
+ enabled: false
23
+
24
+ # Per-agent provider/model overrides (optional — inherits from AGENT_MODELS default)
25
+ # agent_overrides:
26
+ # dev: { provider: gemini, model: pro }
27
+ # brownfield-wu: { provider: gemini, model: pro }