chati-dev 1.3.2 → 1.3.3
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 +330 -0
- package/framework/constitution.md +1 -1
- package/package.json +7 -4
- package/scripts/bundle-framework.js +9 -0
package/README.md
ADDED
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
<br>
|
|
3
|
+
<img src="packages/chati-dev/assets/logo.svg" alt="chati.dev" width="380">
|
|
4
|
+
<br><br>
|
|
5
|
+
<strong>AI-Powered Multi-Agent Orchestration System</strong><br>
|
|
6
|
+
<em>13 agents. 15 articles. 6 IDEs. 4 languages. Structured vibe coding.</em>
|
|
7
|
+
</div>
|
|
8
|
+
|
|
9
|
+
<p align="center">
|
|
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-MIT-yellow.svg" alt="License: MIT"></a>
|
|
12
|
+
<a href="https://nodejs.org/"><img src="https://img.shields.io/badge/node-%3E%3D18.0.0-brightgreen.svg" alt="Node.js"></a>
|
|
13
|
+
<a href="#architecture"><img src="https://img.shields.io/badge/agents-13-purple.svg" alt="Agents"></a>
|
|
14
|
+
<a href="#supported-ides"><img src="https://img.shields.io/badge/IDEs-6-orange.svg" alt="IDEs"></a>
|
|
15
|
+
<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>
|
|
16
|
+
<a href="CONTRIBUTING.md"><img src="https://img.shields.io/badge/contributions-welcome-brightgreen.svg" alt="Contributions Welcome"></a>
|
|
17
|
+
</p>
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
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.
|
|
22
|
+
|
|
23
|
+
## Why chati.dev?
|
|
24
|
+
|
|
25
|
+
### The Problem
|
|
26
|
+
|
|
27
|
+
AI-assisted development today suffers from three critical issues:
|
|
28
|
+
|
|
29
|
+
1. **Context Loss** — AI forgets decisions across sessions, leading to inconsistent implementations
|
|
30
|
+
2. **Planning Gaps** — Jumping straight to code without structured requirements leads to rework
|
|
31
|
+
3. **System Leakage** — Users accidentally "fall out" of agent systems into generic AI mode
|
|
32
|
+
|
|
33
|
+
### The Solution
|
|
34
|
+
|
|
35
|
+
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.
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
CLARITY (planning) → Quality Gate → BUILD → Quality Gate → DEPLOY
|
|
39
|
+
8 agents QA-Planning Dev QA-Impl DevOps
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Key Innovations
|
|
43
|
+
|
|
44
|
+
| Innovation | Description |
|
|
45
|
+
|------------|-------------|
|
|
46
|
+
| **Structured Agent Pipeline** | 13 agents with defined missions, validated outputs, and handoff protocols |
|
|
47
|
+
| **Self-Validating Agents** | Binary pass/fail criteria per agent. Quality gates at planning and implementation |
|
|
48
|
+
| **Context Engine** | 4 context brackets (FRESH → CRITICAL) with 5 injection layers. Autonomous recovery |
|
|
49
|
+
| **Memory Layer** | 4 cognitive sectors. Persistent knowledge across sessions with attention scoring |
|
|
50
|
+
| **Framework Registry** | Entity catalog with decision engine (REUSE/ADAPT/CREATE) for brownfield analysis |
|
|
51
|
+
| **Session Lock** | Once activated, user stays in system until explicit exit. Zero accidental leakage |
|
|
52
|
+
| **IDE-Agnostic** | Works with 6 IDEs through a thin router pattern |
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## Quick Start
|
|
57
|
+
|
|
58
|
+
### Install
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
npx chati-dev init
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
The wizard guides you through language, project type, IDE selection, and MCP configuration.
|
|
65
|
+
|
|
66
|
+
### Activate
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
/chati
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
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.
|
|
73
|
+
|
|
74
|
+
### Monitor
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
npx chati-dev status # One-time snapshot
|
|
78
|
+
npx chati-dev status --watch # Auto-refresh every 5s
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### Exit & Resume
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
/chati exit # Save session and exit
|
|
85
|
+
/chati # Resume exactly where you left off
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
## Architecture
|
|
91
|
+
|
|
92
|
+
### 13 Agents, 4 Categories
|
|
93
|
+
|
|
94
|
+
| Category | Agents | Purpose |
|
|
95
|
+
|----------|--------|---------|
|
|
96
|
+
| **CLARITY** | Greenfield WU, Brownfield WU, Brief, Detail (PRD), Architect, UX, Phases, Tasks | Planning & Requirements |
|
|
97
|
+
| **Quality** | QA-Planning, QA-Implementation | Validation & Gates |
|
|
98
|
+
| **BUILD** | Dev | Implementation |
|
|
99
|
+
| **DEPLOY** | DevOps | Shipping |
|
|
100
|
+
|
|
101
|
+
### Pipeline Flow
|
|
102
|
+
|
|
103
|
+
```
|
|
104
|
+
User Request
|
|
105
|
+
│
|
|
106
|
+
▼
|
|
107
|
+
┌─────────────────────────────────────────────────┐
|
|
108
|
+
│ ORCHESTRATOR (/chati) │
|
|
109
|
+
│ Routes to correct agent, manages session │
|
|
110
|
+
│ Session Lock: user stays in system │
|
|
111
|
+
└─────────────────────────────────────────────────┘
|
|
112
|
+
│
|
|
113
|
+
▼
|
|
114
|
+
┌─────────────────── CLARITY ─────────────────────┐
|
|
115
|
+
│ │
|
|
116
|
+
│ WU → Brief → Detail(PRD) → Architect → UX │
|
|
117
|
+
│ → Phases → Tasks │
|
|
118
|
+
│ │
|
|
119
|
+
└──────────────────────────────────────────────────┘
|
|
120
|
+
│
|
|
121
|
+
▼
|
|
122
|
+
┌─────────────────── QUALITY ─────────────────────┐
|
|
123
|
+
│ QA-Planning (traceability validation, ≥95%) │
|
|
124
|
+
└──────────────────────────────────────────────────┘
|
|
125
|
+
│
|
|
126
|
+
▼
|
|
127
|
+
┌─────────────────── BUILD ───────────────────────┐
|
|
128
|
+
│ Dev (implementation + self-validation) │
|
|
129
|
+
└──────────────────────────────────────────────────┘
|
|
130
|
+
│
|
|
131
|
+
▼
|
|
132
|
+
┌─────────────────── QUALITY ─────────────────────┐
|
|
133
|
+
│ QA-Implementation (tests + SAST + code review) │
|
|
134
|
+
└──────────────────────────────────────────────────┘
|
|
135
|
+
│
|
|
136
|
+
▼
|
|
137
|
+
┌─────────────────── DEPLOY ──────────────────────┐
|
|
138
|
+
│ DevOps (git + deploy + docs) │
|
|
139
|
+
└──────────────────────────────────────────────────┘
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### Intelligence Layer (V7.1)
|
|
143
|
+
|
|
144
|
+
The Intelligence Layer operates transparently behind the pipeline:
|
|
145
|
+
|
|
146
|
+
| System | What it does |
|
|
147
|
+
|--------|-------------|
|
|
148
|
+
| **Context Engine** | Detects context depletion across 4 brackets. Reduces injection layers as context fills. Autonomous recovery via Smart Continuation or Session Spawn. |
|
|
149
|
+
| **Memory Layer** | Captures decisions, patterns, and lessons learned. Persists across sessions. 4 cognitive sectors (Episodic, Semantic, Procedural, Reflective). Attention scoring with natural decay. |
|
|
150
|
+
| **Framework Registry** | Catalogs all 48 system artifacts. Decision engine for brownfield analysis: REUSE existing artifacts, ADAPT with modifications, or CREATE new. |
|
|
151
|
+
| **Session Lock** | Locks the session on `/chati` activation. All messages routed through orchestrator. Exit only via `/chati exit`. Prevents accidental context leakage. |
|
|
152
|
+
|
|
153
|
+
### Universal Protocols
|
|
154
|
+
|
|
155
|
+
Every agent follows 8 universal protocols:
|
|
156
|
+
|
|
157
|
+
| Protocol | Purpose |
|
|
158
|
+
|----------|---------|
|
|
159
|
+
| 5.1 Dynamic Self-Validation | Binary pass/fail criteria per agent |
|
|
160
|
+
| 5.2 Loop Until Done | Iterate until quality threshold met |
|
|
161
|
+
| 5.3 Guided Options | Always present 1, 2, 3 choices |
|
|
162
|
+
| 5.4 Persistence | Session state survives restarts |
|
|
163
|
+
| 5.5 Two-Layer Handoff | Structured context transfer between agents |
|
|
164
|
+
| 5.6 Language Protocol | Interaction in user lang, artifacts in English |
|
|
165
|
+
| 5.7 Deviation Protocol | Handle scope changes mid-pipeline |
|
|
166
|
+
| 5.8 Interaction Model | Agent-driven with power user escape hatch |
|
|
167
|
+
|
|
168
|
+
### Constitution
|
|
169
|
+
|
|
170
|
+
The system is governed by a **15-article Constitution** that enforces agent behavior, quality standards, security, and system integrity. Key articles:
|
|
171
|
+
|
|
172
|
+
| Article | Governance |
|
|
173
|
+
|---------|-----------|
|
|
174
|
+
| I-IV | Agent governance, quality standards, memory & context, security |
|
|
175
|
+
| V-VII | Communication protocol, design system, English-only documentation |
|
|
176
|
+
| VIII-X | Two-layer handoff, agent-driven interaction, dynamic self-validation |
|
|
177
|
+
| XI | Mode governance (clarity/build/deploy) with autonomous transitions |
|
|
178
|
+
| XII-XIV | Context bracket governance, memory governance, framework registry |
|
|
179
|
+
| XV | Session lock governance — mandatory lock, explicit exit only |
|
|
180
|
+
|
|
181
|
+
---
|
|
182
|
+
|
|
183
|
+
## Supported IDEs
|
|
184
|
+
|
|
185
|
+
| IDE | Router Pattern |
|
|
186
|
+
|-----|---------------|
|
|
187
|
+
| **Claude Code** | `.claude/commands/chati.md` → orchestrator |
|
|
188
|
+
| **VS Code** | `.vscode/chati.md` → orchestrator |
|
|
189
|
+
| **AntiGravity** | Platform agent config → orchestrator |
|
|
190
|
+
| **Cursor** | `.cursor/rules/chati.md` → orchestrator |
|
|
191
|
+
| **Gemini CLI** | `.gemini/agents/chati.md` → orchestrator |
|
|
192
|
+
| **GitHub Copilot** | `.github/copilot/chati.md` → orchestrator |
|
|
193
|
+
|
|
194
|
+
---
|
|
195
|
+
|
|
196
|
+
## CLI Commands
|
|
197
|
+
|
|
198
|
+
| Command | Description |
|
|
199
|
+
|---------|-------------|
|
|
200
|
+
| `npx chati-dev init` | Initialize new project with wizard |
|
|
201
|
+
| `npx chati-dev install` | Install into existing project |
|
|
202
|
+
| `npx chati-dev status` | Show project dashboard |
|
|
203
|
+
| `npx chati-dev status --watch` | Auto-refresh dashboard every 5s |
|
|
204
|
+
| `npx chati-dev check-update` | Check for system updates |
|
|
205
|
+
| `npx chati-dev upgrade` | Upgrade to latest version |
|
|
206
|
+
| `npx chati-dev upgrade --version X.Y.Z` | Upgrade to specific version |
|
|
207
|
+
| `npx chati-dev memory stats` | Show memory statistics (total, by agent/sector/tier) |
|
|
208
|
+
| `npx chati-dev memory list` | List memories (--agent, --sector, --tier filters) |
|
|
209
|
+
| `npx chati-dev memory search <query>` | Search memories by tags or content |
|
|
210
|
+
| `npx chati-dev memory clean` | Clean expired/session memories (--dry-run) |
|
|
211
|
+
| `npx chati-dev context` | Show context bracket advisory |
|
|
212
|
+
| `npx chati-dev registry stats` | Show entity registry statistics |
|
|
213
|
+
| `npx chati-dev registry check` | Validate entity registry against filesystem |
|
|
214
|
+
| `npx chati-dev health` | Comprehensive system health check (5 checks) |
|
|
215
|
+
| `npx chati-dev changelog` | View changelog |
|
|
216
|
+
| `npx chati-dev --reconfigure` | Reconfigure installation |
|
|
217
|
+
|
|
218
|
+
### Orchestrator Commands (inside active session)
|
|
219
|
+
|
|
220
|
+
| Command | Description |
|
|
221
|
+
|---------|-------------|
|
|
222
|
+
| `/chati` | Start or resume session |
|
|
223
|
+
| `/chati status` | Show pipeline status |
|
|
224
|
+
| `/chati help` | Show available commands |
|
|
225
|
+
| `/chati resume` | Resume from continuation file |
|
|
226
|
+
| `/chati exit` | Save session and exit |
|
|
227
|
+
|
|
228
|
+
---
|
|
229
|
+
|
|
230
|
+
## Project Structure
|
|
231
|
+
|
|
232
|
+
```
|
|
233
|
+
your-project/
|
|
234
|
+
├── .chati/
|
|
235
|
+
│ ├── session.yaml # Session state (auto-managed)
|
|
236
|
+
│ ├── memories/ # Memory Layer storage (gitignored)
|
|
237
|
+
│ └── continuation/ # Context recovery files
|
|
238
|
+
├── .claude/
|
|
239
|
+
│ └── commands/
|
|
240
|
+
│ └── chati.md # Thin router → orchestrator
|
|
241
|
+
├── CLAUDE.md # IDE entry point (auto-updated)
|
|
242
|
+
├── chati.dev/
|
|
243
|
+
│ ├── orchestrator/ # Main orchestrator
|
|
244
|
+
│ ├── agents/ # 13 agent definitions
|
|
245
|
+
│ │ ├── clarity/ # 8 planning agents
|
|
246
|
+
│ │ ├── quality/ # 2 quality gate agents
|
|
247
|
+
│ │ ├── build/ # Dev agent
|
|
248
|
+
│ │ └── deploy/ # DevOps agent
|
|
249
|
+
│ ├── workflows/ # 5 workflow blueprints
|
|
250
|
+
│ ├── templates/ # 5 artifact templates
|
|
251
|
+
│ ├── schemas/ # JSON schemas for validation
|
|
252
|
+
│ ├── intelligence/ # Context Engine, Memory Layer, Decision Engine
|
|
253
|
+
│ ├── frameworks/ # Decision heuristics, quality dims
|
|
254
|
+
│ ├── quality-gates/ # Planning & implementation gates
|
|
255
|
+
│ ├── patterns/ # Elicitation patterns
|
|
256
|
+
│ ├── data/ # Entity registry
|
|
257
|
+
│ ├── i18n/ # EN, PT, ES, FR translations
|
|
258
|
+
│ ├── migrations/ # Version migration scripts
|
|
259
|
+
│ ├── constitution.md # 15 Articles + Preamble
|
|
260
|
+
│ └── config.yaml # System configuration
|
|
261
|
+
├── chati.dev/artifacts/ # Generated during pipeline
|
|
262
|
+
│ ├── 0-WU/
|
|
263
|
+
│ ├── 1-Brief/
|
|
264
|
+
│ ├── 2-PRD/
|
|
265
|
+
│ ├── 3-Architecture/
|
|
266
|
+
│ ├── 4-UX/
|
|
267
|
+
│ ├── 5-Phases/
|
|
268
|
+
│ ├── 6-Tasks/
|
|
269
|
+
│ ├── 7-QA-Planning/
|
|
270
|
+
│ ├── 8-Validation/
|
|
271
|
+
│ └── handoffs/
|
|
272
|
+
└── packages/
|
|
273
|
+
└── chati-dev/ # CLI installer (npx chati-dev)
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
---
|
|
277
|
+
|
|
278
|
+
## Internationalization
|
|
279
|
+
|
|
280
|
+
The installer and agent interactions support 4 languages:
|
|
281
|
+
|
|
282
|
+
| Language | Code | Status |
|
|
283
|
+
|----------|------|--------|
|
|
284
|
+
| **English** | `en` | Default |
|
|
285
|
+
| **Portugues** | `pt` | Full support |
|
|
286
|
+
| **Espanol** | `es` | Full support |
|
|
287
|
+
| **Francais** | `fr` | Full support |
|
|
288
|
+
|
|
289
|
+
Artifacts are always generated in English for portability and team collaboration.
|
|
290
|
+
|
|
291
|
+
---
|
|
292
|
+
|
|
293
|
+
## Upgrade System
|
|
294
|
+
|
|
295
|
+
```bash
|
|
296
|
+
npx chati-dev check-update # Check for updates
|
|
297
|
+
npx chati-dev upgrade # Upgrade to latest
|
|
298
|
+
npx chati-dev upgrade --version 1.2.1 # Specific version
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
Upgrades include automatic backup, migrations, validation, and config merging. Rollback on failure.
|
|
302
|
+
|
|
303
|
+
---
|
|
304
|
+
|
|
305
|
+
## Prerequisites
|
|
306
|
+
|
|
307
|
+
- **Node.js** >= 18.0.0
|
|
308
|
+
- **npm** >= 9.0.0
|
|
309
|
+
- A supported IDE with AI assistant capabilities
|
|
310
|
+
|
|
311
|
+
---
|
|
312
|
+
|
|
313
|
+
## Contributing
|
|
314
|
+
|
|
315
|
+
We welcome contributions from agents, templates, workflows, intelligence data, translations, and CLI improvements. Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
|
|
316
|
+
|
|
317
|
+
## Security
|
|
318
|
+
|
|
319
|
+
For security concerns, please see our [Security Policy](SECURITY.md).
|
|
320
|
+
|
|
321
|
+
## License
|
|
322
|
+
|
|
323
|
+
This project is licensed under the MIT License — see [LICENSE](LICENSE) for details.
|
|
324
|
+
|
|
325
|
+
---
|
|
326
|
+
|
|
327
|
+
<p align="center">
|
|
328
|
+
<sub>Built with structure, validated by agents, governed by constitution.</sub><br>
|
|
329
|
+
<sub>chati.dev © 2026</sub>
|
|
330
|
+
</p>
|
|
@@ -345,5 +345,5 @@ Once the orchestrator is activated via `/chati`, a session lock engages. All age
|
|
|
345
345
|
|
|
346
346
|
---
|
|
347
347
|
|
|
348
|
-
*chati.dev Constitution v1.3.
|
|
348
|
+
*chati.dev Constitution v1.3.3 — 15 Articles + Preamble*
|
|
349
349
|
*All agents are bound by this Constitution. Violations are enforced per article.*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chati-dev",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "AI-Powered Multi-Agent Orchestration System — 13 agents, 6 IDEs, 4 languages",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -8,6 +8,12 @@
|
|
|
8
8
|
"chati-dev": "bin/chati.js"
|
|
9
9
|
},
|
|
10
10
|
"main": "src/wizard/index.js",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": "./src/wizard/index.js",
|
|
13
|
+
"./installer": "./src/installer/core.js",
|
|
14
|
+
"./dashboard": "./src/dashboard/renderer.js",
|
|
15
|
+
"./upgrade": "./src/upgrade/checker.js"
|
|
16
|
+
},
|
|
11
17
|
"files": [
|
|
12
18
|
"bin/",
|
|
13
19
|
"src/",
|
|
@@ -48,10 +54,7 @@
|
|
|
48
54
|
},
|
|
49
55
|
"dependencies": {
|
|
50
56
|
"@clack/prompts": "^0.7.0",
|
|
51
|
-
"blessed": "^0.1.81",
|
|
52
57
|
"chalk": "^5.3.0",
|
|
53
|
-
"cli-progress": "^3.12.0",
|
|
54
|
-
"fs-extra": "^11.2.0",
|
|
55
58
|
"js-yaml": "^4.1.0",
|
|
56
59
|
"ora": "^8.0.1",
|
|
57
60
|
"semver": "^7.6.0"
|
|
@@ -55,4 +55,13 @@ for (const file of rootFiles) {
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
console.log('Framework bundled to:', DEST);
|
|
58
|
+
|
|
59
|
+
// Copy README from monorepo root so npm displays it
|
|
60
|
+
const readmeSrc = join(MONOREPO_ROOT, 'README.md');
|
|
61
|
+
const readmeDest = join(PACKAGE_ROOT, 'README.md');
|
|
62
|
+
if (existsSync(readmeSrc)) {
|
|
63
|
+
cpSync(readmeSrc, readmeDest);
|
|
64
|
+
console.log('README.md copied to package.');
|
|
65
|
+
}
|
|
66
|
+
|
|
58
67
|
console.log('Done.');
|