chati-dev 2.0.9 → 2.1.2
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 +167 -176
- package/assets/logo - co/314/201pia.png +0 -0
- package/assets/logo - co/314/201pia.svg" +42 -0
- package/bin/chati.js +3 -3
- package/framework/agents/{planning → discover}/brief.md +24 -2
- package/framework/agents/{planning → discover}/brownfield-wu.md +1 -1
- package/framework/agents/{planning → discover}/greenfield-wu.md +1 -1
- package/framework/agents/{planning → plan}/architect.md +1 -1
- package/framework/agents/{planning → plan}/detail.md +1 -1
- package/framework/agents/{planning → plan}/phases.md +1 -1
- package/framework/agents/{planning → plan}/tasks.md +1 -1
- package/framework/agents/{planning → plan}/ux.md +1 -1
- package/framework/agents/quality/qa-implementation.md +53 -4
- package/framework/agents/quality/qa-planning.md +53 -2
- package/framework/config.yaml +3 -3
- package/framework/constitution.md +4 -4
- package/framework/context/quality.md +1 -1
- package/framework/context/root.md +5 -4
- package/framework/data/entity-registry.yaml +35 -11
- package/framework/domains/agents/brief.yaml +14 -0
- package/framework/domains/agents/qa-implementation.yaml +16 -0
- package/framework/domains/agents/qa-planning.yaml +16 -0
- package/framework/domains/constitution.yaml +6 -2
- package/framework/domains/workflows/brownfield-discovery.yaml +5 -4
- package/framework/domains/workflows/quick-flow.yaml +23 -0
- package/framework/hooks/mode-governance.js +14 -2
- package/framework/hooks/model-governance.js +5 -1
- package/framework/hooks/prism-engine.js +1 -1
- package/framework/hooks/session-digest.js +6 -2
- package/framework/hooks/settings.json +11 -0
- package/framework/i18n/en.yaml +3 -3
- package/framework/i18n/es.yaml +3 -3
- package/framework/i18n/fr.yaml +3 -3
- package/framework/i18n/pt.yaml +3 -3
- package/framework/intelligence/context-engine.md +2 -2
- package/framework/intelligence/decision-engine.md +2 -2
- package/framework/manifest.json +5 -0
- package/framework/manifest.sig +1 -0
- package/framework/orchestrator/chati.md +68 -20
- package/framework/patterns/elicitation-library.yaml +592 -0
- package/framework/patterns/elicitation.md +2 -0
- package/framework/quality-gates/planning-gate.md +1 -1
- package/framework/schemas/session.schema.json +36 -3
- package/framework/tasks/architect-api-design.md +1 -1
- package/framework/tasks/architect-consolidate.md +1 -1
- package/framework/tasks/architect-db-design.md +1 -1
- package/framework/tasks/architect-design.md +1 -1
- package/framework/tasks/architect-security-review.md +1 -1
- package/framework/tasks/architect-stack-selection.md +1 -1
- package/framework/tasks/brief-consolidate.md +1 -1
- package/framework/tasks/brief-constraint-identify.md +1 -1
- package/framework/tasks/brief-extract-requirements.md +1 -1
- package/framework/tasks/brief-stakeholder-map.md +1 -1
- package/framework/tasks/brief-validate-completeness.md +1 -1
- package/framework/tasks/brownfield-wu-architecture-map.md +1 -1
- package/framework/tasks/brownfield-wu-deep-discovery.md +1 -1
- package/framework/tasks/brownfield-wu-dependency-scan.md +1 -1
- package/framework/tasks/brownfield-wu-migration-plan.md +1 -1
- package/framework/tasks/brownfield-wu-report.md +1 -1
- package/framework/tasks/brownfield-wu-risk-assess.md +1 -1
- package/framework/tasks/detail-acceptance-criteria.md +1 -1
- package/framework/tasks/detail-consolidate.md +1 -1
- package/framework/tasks/detail-edge-case-analysis.md +1 -1
- package/framework/tasks/detail-expand-prd.md +1 -1
- package/framework/tasks/detail-nfr-extraction.md +1 -1
- package/framework/tasks/greenfield-wu-analyze-empty.md +1 -1
- package/framework/tasks/greenfield-wu-report.md +1 -1
- package/framework/tasks/greenfield-wu-scaffold-detection.md +1 -1
- package/framework/tasks/greenfield-wu-tech-stack-assess.md +1 -1
- package/framework/tasks/orchestrator-deviation.md +2 -2
- package/framework/tasks/orchestrator-escalate.md +1 -1
- package/framework/tasks/orchestrator-handoff.md +3 -3
- package/framework/tasks/orchestrator-mode-switch.md +16 -5
- package/framework/tasks/orchestrator-preview.md +181 -0
- package/framework/tasks/orchestrator-resume.md +2 -2
- package/framework/tasks/orchestrator-route.md +5 -4
- package/framework/tasks/orchestrator-status.md +4 -4
- package/framework/tasks/orchestrator-suggest-mode.md +7 -7
- package/framework/tasks/phases-breakdown.md +1 -1
- package/framework/tasks/phases-dependency-mapping.md +1 -1
- package/framework/tasks/phases-mvp-scoping.md +1 -1
- package/framework/tasks/qa-impl-consolidate.md +2 -2
- package/framework/tasks/qa-impl-verdict.md +2 -2
- package/framework/tasks/qa-planning-consolidate.md +1 -1
- package/framework/tasks/qa-planning-coverage-plan.md +2 -2
- package/framework/tasks/qa-planning-gate-define.md +1 -1
- package/framework/tasks/qa-planning-risk-matrix.md +1 -1
- package/framework/tasks/qa-planning-test-strategy.md +1 -1
- package/framework/tasks/tasks-acceptance-write.md +1 -1
- package/framework/tasks/tasks-consolidate.md +1 -1
- package/framework/tasks/tasks-decompose.md +1 -1
- package/framework/tasks/tasks-estimate.md +1 -1
- package/framework/tasks/ux-a11y-check.md +1 -1
- package/framework/tasks/ux-component-map.md +1 -1
- package/framework/tasks/ux-consolidate.md +1 -1
- package/framework/tasks/ux-user-flow.md +1 -1
- package/framework/tasks/ux-wireframe.md +1 -1
- package/framework/templates/quick-brief-tmpl.yaml +90 -0
- package/framework/workflows/brownfield-discovery.yaml +7 -7
- package/framework/workflows/brownfield-fullstack.yaml +24 -10
- package/framework/workflows/brownfield-service.yaml +41 -5
- package/framework/workflows/brownfield-ui.yaml +41 -5
- package/framework/workflows/greenfield-fullstack.yaml +24 -10
- package/framework/workflows/quick-flow.yaml +125 -0
- package/package.json +2 -2
- package/scripts/bundle-framework.js +1 -1
- package/scripts/populate-entity-registry.js +1 -1
- package/scripts/semantic-lint.js +2 -2
- package/scripts/validate-agents.js +2 -1
- package/scripts/validate-package.js +1 -1
- package/scripts/validate-tasks.js +1 -1
- package/src/autonomy/progress-reporter.js +26 -19
- package/src/context/engine.js +1 -1
- package/src/context/layers/l1-global.js +17 -5
- package/src/dashboard/layout.js +2 -1
- package/src/gates/g1-planning-complete.js +10 -10
- package/src/installer/core.js +14 -12
- package/src/installer/templates.js +1 -1
- package/src/installer/validator.js +8 -8
- package/src/intelligence/registry-manager.js +4 -4
- package/src/memory/session-digest.js +1 -1
- package/src/orchestrator/agent-selector.js +11 -11
- package/src/orchestrator/intent-classifier.js +12 -8
- package/src/orchestrator/pipeline-manager.js +100 -3
- package/src/orchestrator/pipeline-state.js +1 -1
- package/src/orchestrator/session-manager.js +13 -4
- package/src/preview/detector.js +238 -0
- package/src/preview/index.js +20 -0
- package/src/preview/launcher.js +235 -0
- package/src/preview/log-buffer.js +103 -0
- package/src/tasks/executor.js +1 -1
- package/src/tasks/loader.js +1 -1
- package/src/terminal/prompt-builder.js +10 -10
- package/src/wizard/i18n.js +3 -3
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-
|
|
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
|
-
|
|
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
|
|
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
|
|
34
|
-
|
|
35
|
-
```
|
|
36
|
-
PLANNING (planning) → Quality Gate → BUILD → Quality Gate → DEPLOY
|
|
37
|
-
8 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
|
-
##
|
|
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
|
|
67
|
+
The wizard asks your language and project type, then auto-configures everything.
|
|
78
68
|
|
|
79
|
-
### 2.
|
|
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.
|
|
79
|
+
### 3. Follow the pipeline
|
|
90
80
|
|
|
91
|
-
|
|
81
|
+
The agents guide you through each phase:
|
|
92
82
|
|
|
93
|
-
|
|
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,155 +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, 4
|
|
126
|
+
### 13 Agents, 4 Pipeline Phases
|
|
112
127
|
|
|
113
|
-
|
|
|
114
|
-
|
|
115
|
-
| **
|
|
116
|
-
| **
|
|
117
|
-
| **BUILD** | Dev |
|
|
118
|
-
| **DEPLOY** | DevOps |
|
|
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 |
|
|
119
135
|
|
|
120
|
-
### Pipeline
|
|
136
|
+
### How the Pipeline Works
|
|
121
137
|
|
|
122
138
|
```
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
│ ORCHESTRATOR
|
|
128
|
-
│ Routes to
|
|
129
|
-
│
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
│
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
│
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
│
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
│
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
│ DevOps (sonnet) — git + deploy + docs │
|
|
169
|
-
└──────────────────────────────────────────┘
|
|
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 │
|
|
170
184
|
```
|
|
171
185
|
|
|
172
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.
|
|
173
187
|
|
|
174
188
|
### Intelligence Layer
|
|
175
189
|
|
|
176
|
-
|
|
190
|
+
Three systems operate transparently behind the pipeline:
|
|
177
191
|
|
|
178
192
|
| System | What it does |
|
|
179
193
|
|--------|-------------|
|
|
180
|
-
| **Context Engine PRISM** | 5
|
|
181
|
-
| **Memory System RECALL** |
|
|
182
|
-
| **Decision Engine COMPASS** |
|
|
183
|
-
| **Session Lock** | Locks the session on `/chati` activation. All messages routed through orchestrator. Exit only via `/chati exit`. Prevents accidental context leakage. |
|
|
184
|
-
|
|
185
|
-
### Universal Protocols
|
|
186
|
-
|
|
187
|
-
Every agent follows 8 universal protocols:
|
|
188
|
-
|
|
189
|
-
| Protocol | Purpose |
|
|
190
|
-
|----------|---------|
|
|
191
|
-
| 5.1 Dynamic Self-Validation | Binary pass/fail criteria per agent |
|
|
192
|
-
| 5.2 Loop Until Done | Iterate until quality threshold met |
|
|
193
|
-
| 5.3 Guided Options | Always present 1, 2, 3 choices |
|
|
194
|
-
| 5.4 Persistence | Session state survives restarts |
|
|
195
|
-
| 5.5 Two-Layer Handoff | Structured context transfer between agents |
|
|
196
|
-
| 5.6 Language Protocol | Interaction in user lang, artifacts in English |
|
|
197
|
-
| 5.7 Deviation Protocol | Handle scope changes mid-pipeline |
|
|
198
|
-
| 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. |
|
|
199
197
|
|
|
200
198
|
### Constitution
|
|
201
199
|
|
|
202
|
-
The system is governed by a **17-article Constitution** that enforces agent behavior, quality standards, security, and system integrity
|
|
200
|
+
The system is governed by a **17-article Constitution** that enforces agent behavior, quality standards, security, and system integrity:
|
|
203
201
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
| XV | Session lock governance — mandatory lock, explicit exit only |
|
|
212
|
-
| XVI | Model governance — opus/sonnet/haiku per agent, no downgrade rule |
|
|
213
|
-
| 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
|
|
214
209
|
|
|
215
210
|
---
|
|
216
211
|
|
|
217
212
|
## Supported IDEs
|
|
218
213
|
|
|
219
|
-
| IDE |
|
|
220
|
-
|
|
214
|
+
| IDE | How it connects |
|
|
215
|
+
|-----|----------------|
|
|
221
216
|
| **Claude Code** | `.claude/commands/chati.md` → orchestrator |
|
|
222
217
|
| **VS Code** | `.vscode/chati.md` → orchestrator |
|
|
223
|
-
| **AntiGravity** | Platform agent config → orchestrator |
|
|
224
218
|
| **Cursor** | `.cursor/rules/chati.md` → orchestrator |
|
|
225
219
|
| **Gemini CLI** | `.gemini/agents/chati.md` → orchestrator |
|
|
226
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.
|
|
227
224
|
|
|
228
225
|
---
|
|
229
226
|
|
|
230
227
|
## CLI Commands
|
|
231
228
|
|
|
229
|
+
### Setup & Maintenance
|
|
230
|
+
|
|
232
231
|
| Command | Description |
|
|
233
232
|
|---------|-------------|
|
|
234
|
-
| `npx chati-dev init` | Initialize new project with wizard |
|
|
233
|
+
| `npx chati-dev init` | Initialize new project with guided wizard |
|
|
235
234
|
| `npx chati-dev install` | Install into existing project |
|
|
236
235
|
| `npx chati-dev status` | Show project dashboard |
|
|
237
236
|
| `npx chati-dev status --watch` | Auto-refresh dashboard every 5s |
|
|
238
|
-
| `npx chati-dev
|
|
237
|
+
| `npx chati-dev health` | Run system health check (5 checks) |
|
|
238
|
+
| `npx chati-dev check-update` | Check for updates |
|
|
239
239
|
| `npx chati-dev upgrade` | Upgrade to latest version |
|
|
240
240
|
| `npx chati-dev upgrade --version X.Y.Z` | Upgrade to specific version |
|
|
241
|
-
| `npx chati-dev
|
|
242
|
-
| `npx chati-dev
|
|
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) |
|
|
243
250
|
| `npx chati-dev memory search <query>` | Search memories by tags or content |
|
|
244
|
-
| `npx chati-dev memory clean` | Clean expired
|
|
245
|
-
| `npx chati-dev context` | Show context bracket
|
|
251
|
+
| `npx chati-dev memory clean` | Clean expired memories (--dry-run to preview) |
|
|
252
|
+
| `npx chati-dev context` | Show context bracket status |
|
|
246
253
|
| `npx chati-dev registry stats` | Show entity registry statistics |
|
|
247
|
-
| `npx chati-dev registry check` | Validate
|
|
248
|
-
| `npx chati-dev health` | Comprehensive system health check (5 checks) |
|
|
249
|
-
| `npx chati-dev changelog` | View changelog |
|
|
250
|
-
| `npx chati-dev --reconfigure` | Reconfigure installation |
|
|
254
|
+
| `npx chati-dev registry check` | Validate registry against filesystem |
|
|
251
255
|
|
|
252
|
-
###
|
|
256
|
+
### Inside an Active Session
|
|
253
257
|
|
|
254
258
|
| Command | Description |
|
|
255
259
|
|---------|-------------|
|
|
256
260
|
| `/chati` | Start or resume session |
|
|
257
|
-
| `/chati status` | Show pipeline
|
|
261
|
+
| `/chati status` | Show pipeline progress |
|
|
258
262
|
| `/chati help` | Show available commands |
|
|
259
263
|
| `/chati resume` | Resume from continuation file |
|
|
260
264
|
| `/chati exit` | Save session and exit |
|
|
@@ -267,57 +271,44 @@ The system is governed by a **17-article Constitution** that enforces agent beha
|
|
|
267
271
|
your-project/
|
|
268
272
|
├── .chati/
|
|
269
273
|
│ ├── session.yaml # Session state (auto-managed, gitignored)
|
|
270
|
-
│ └── memories/ # Memory
|
|
274
|
+
│ └── memories/ # Memory storage (gitignored)
|
|
271
275
|
├── .claude/
|
|
272
276
|
│ ├── commands/
|
|
273
277
|
│ │ └── chati.md # Thin router → orchestrator
|
|
274
278
|
│ └── rules/
|
|
275
|
-
│ └── chati/ # Framework context (auto-loaded
|
|
276
|
-
│ ├── root.md # System overview
|
|
277
|
-
│ ├── governance.md # Constitution
|
|
278
|
-
│ ├── protocols.md #
|
|
279
|
+
│ └── chati/ # Framework context (auto-loaded)
|
|
280
|
+
│ ├── root.md # System overview
|
|
281
|
+
│ ├── governance.md # Constitution rules
|
|
282
|
+
│ ├── protocols.md # Universal protocols
|
|
279
283
|
│ └── quality.md # Quality standards
|
|
280
|
-
├── CLAUDE.md #
|
|
281
|
-
├── CLAUDE.local.md # Runtime state
|
|
282
|
-
├── docs/
|
|
283
|
-
│ └── CHANGELOG.md # Version history
|
|
284
|
+
├── CLAUDE.md # Project context (auto-generated)
|
|
285
|
+
├── CLAUDE.local.md # Runtime state (gitignored)
|
|
284
286
|
├── chati.dev/
|
|
285
287
|
│ ├── orchestrator/ # Main orchestrator
|
|
286
288
|
│ ├── agents/ # 13 agent definitions
|
|
287
|
-
│ │ ├──
|
|
288
|
-
│ │ ├──
|
|
289
|
-
│ │ ├──
|
|
290
|
-
│ │
|
|
291
|
-
│
|
|
292
|
-
│ ├──
|
|
293
|
-
│ ├──
|
|
294
|
-
│ ├──
|
|
295
|
-
│ ├──
|
|
296
|
-
│ ├──
|
|
297
|
-
│ ├──
|
|
298
|
-
│ ├──
|
|
299
|
-
│ ├──
|
|
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
|
|
295
|
+
│ ├── workflows/ # 6 workflow blueprints
|
|
296
|
+
│ ├── templates/ # 6 artifact templates
|
|
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
|
|
300
303
|
│ ├── quality-gates/ # Planning & implementation gates
|
|
301
304
|
│ ├── patterns/ # Elicitation patterns
|
|
302
|
-
│ ├── data/ # Entity registry
|
|
305
|
+
│ ├── data/ # Entity registry
|
|
303
306
|
│ ├── i18n/ # EN, PT, ES, FR translations
|
|
304
307
|
│ ├── migrations/ # Version migration scripts
|
|
305
308
|
│ ├── constitution.md # 17 Articles + Preamble
|
|
306
|
-
│
|
|
307
|
-
│ └── artifacts/ # Generated during pipeline
|
|
308
|
-
│ ├── 0-WU/
|
|
309
|
-
│ ├── 1-Brief/
|
|
310
|
-
│ ├── 2-PRD/
|
|
311
|
-
│ ├── 3-Architecture/
|
|
312
|
-
│ ├── 4-UX/
|
|
313
|
-
│ ├── 5-Phases/
|
|
314
|
-
│ ├── 6-Tasks/
|
|
315
|
-
│ ├── 7-QA-Planning/
|
|
316
|
-
│ ├── 8-Validation/
|
|
317
|
-
│ └── handoffs/
|
|
309
|
+
│ └── config.yaml # System configuration
|
|
318
310
|
└── packages/
|
|
319
|
-
└── chati-dev/ # CLI + runtime engine
|
|
320
|
-
└── src/terminal/ # Multi-terminal spawner, monitor, collector
|
|
311
|
+
└── chati-dev/ # CLI + runtime engine
|
|
321
312
|
```
|
|
322
313
|
|
|
323
314
|
---
|
|
@@ -351,15 +342,15 @@ Upgrades include automatic backup, migrations, validation, and config merging. R
|
|
|
351
342
|
|
|
352
343
|
## Contributing
|
|
353
344
|
|
|
354
|
-
We welcome contributions
|
|
345
|
+
We welcome contributions — agents, templates, workflows, translations, and CLI improvements. See [CONTRIBUTING.md](.github/CONTRIBUTING.md) for guidelines.
|
|
355
346
|
|
|
356
347
|
## Security
|
|
357
348
|
|
|
358
|
-
For security concerns,
|
|
349
|
+
For security concerns, see our [Security Policy](.github/SECURITY.md).
|
|
359
350
|
|
|
360
351
|
## License
|
|
361
352
|
|
|
362
|
-
|
|
353
|
+
[MIT](LICENSE)
|
|
363
354
|
|
|
364
355
|
---
|
|
365
356
|
|
|
Binary file
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 620 200">
|
|
2
|
+
<defs>
|
|
3
|
+
<clipPath id="c">
|
|
4
|
+
<path d="M100,8 C155,8 190,40 190,90 C190,140 155,172 100,172 C82,172 66,167 52,159 L22,192 L34,155 C18,140 10,118 10,90 C10,40 45,8 100,8 Z"/>
|
|
5
|
+
</clipPath>
|
|
6
|
+
<radialGradient id="g" cx="38%" cy="30%" r="68%">
|
|
7
|
+
<stop offset="0%" stop-color="#8EC5F5"/>
|
|
8
|
+
<stop offset="40%" stop-color="#5DA2E2"/>
|
|
9
|
+
<stop offset="75%" stop-color="#4A90D9"/>
|
|
10
|
+
<stop offset="100%" stop-color="#2D6BAF"/>
|
|
11
|
+
</radialGradient>
|
|
12
|
+
<linearGradient id="r" x1="0" y1="0" x2="0" y2="1">
|
|
13
|
+
<stop offset="0%" stop-color="rgba(255,255,255,0.5)"/>
|
|
14
|
+
<stop offset="30%" stop-color="rgba(255,255,255,0.15)"/>
|
|
15
|
+
<stop offset="100%" stop-color="rgba(0,0,0,0)"/>
|
|
16
|
+
</linearGradient>
|
|
17
|
+
<linearGradient id="bs" x1="0" y1="0" x2="0" y2="1">
|
|
18
|
+
<stop offset="0%" stop-color="rgba(0,0,0,0)"/>
|
|
19
|
+
<stop offset="65%" stop-color="rgba(0,0,0,0)"/>
|
|
20
|
+
<stop offset="100%" stop-color="rgba(15,30,60,0.25)"/>
|
|
21
|
+
</linearGradient>
|
|
22
|
+
</defs>
|
|
23
|
+
|
|
24
|
+
<!-- Chat bubble -->
|
|
25
|
+
<path d="M100,8 C155,8 190,40 190,90 C190,140 155,172 100,172 C82,172 66,167 52,159 L22,192 L34,155 C18,140 10,118 10,90 C10,40 45,8 100,8 Z" fill="url(#g)"/>
|
|
26
|
+
<ellipse cx="82" cy="38" rx="52" ry="25" fill="rgba(255,255,255,0.18)" clip-path="url(#c)"/>
|
|
27
|
+
<path d="M100,8 C155,8 190,40 190,90 C190,140 155,172 100,172 C82,172 66,167 52,159 L22,192 L34,155 C18,140 10,118 10,90 C10,40 45,8 100,8 Z" fill="url(#bs)" clip-path="url(#c)"/>
|
|
28
|
+
<path d="M100,8 C155,8 190,40 190,90 C190,140 155,172 100,172 C82,172 66,167 52,159 L22,192 L34,155 C18,140 10,118 10,90 C10,40 45,8 100,8 Z" fill="none" stroke="url(#r)" stroke-width="1.5"/>
|
|
29
|
+
|
|
30
|
+
<!-- Eyes -->
|
|
31
|
+
<ellipse cx="72" cy="95" rx="18" ry="20" fill="#1a1a2e"/>
|
|
32
|
+
<ellipse cx="128" cy="95" rx="18" ry="20" fill="#1a1a2e"/>
|
|
33
|
+
<ellipse cx="65" cy="86" rx="7" ry="5" fill="rgba(255,255,255,0.55)"/>
|
|
34
|
+
<ellipse cx="121" cy="86" rx="7" ry="5" fill="rgba(255,255,255,0.55)"/>
|
|
35
|
+
<ellipse cx="77" cy="100" rx="3.5" ry="2.5" fill="rgba(255,255,255,0.3)"/>
|
|
36
|
+
<ellipse cx="133" cy="100" rx="3.5" ry="2.5" fill="rgba(255,255,255,0.3)"/>
|
|
37
|
+
|
|
38
|
+
<!-- "Chati.dev" text inline -->
|
|
39
|
+
<text x="210" y="122" font-family="ui-monospace,'SF Mono','Menlo','Consolas','Liberation Mono',monospace" font-weight="700" font-size="68" letter-spacing="-1">
|
|
40
|
+
<tspan fill="#e6edf3">Chati</tspan><tspan fill="#4A90D9">.</tspan><tspan fill="#e6edf3">dev</tspan>
|
|
41
|
+
</text>
|
|
42
|
+
</svg>
|
package/bin/chati.js
CHANGED
|
@@ -253,9 +253,9 @@ async function main() {
|
|
|
253
253
|
console.log();
|
|
254
254
|
console.log('v1.0.0 - Initial Release');
|
|
255
255
|
console.log(' - 13 agents (orchestrator + 12 specialized)');
|
|
256
|
-
console.log(' -
|
|
257
|
-
console.log(' -
|
|
258
|
-
console.log(' - Constitution (
|
|
256
|
+
console.log(' - 6 workflow blueprints');
|
|
257
|
+
console.log(' - 6 templates');
|
|
258
|
+
console.log(' - Constitution (17 Articles + Preamble)');
|
|
259
259
|
console.log(' - Dashboard TUI');
|
|
260
260
|
console.log(' - Upgrade system with migrations');
|
|
261
261
|
console.log(' - 6 IDE support');
|
|
@@ -8,7 +8,7 @@ You are the **Brief Agent**, responsible for extracting and structuring the core
|
|
|
8
8
|
|
|
9
9
|
- **Role**: Problem Extraction Specialist
|
|
10
10
|
- **Pipeline Position**: 2nd agent (after WU)
|
|
11
|
-
- **Category**:
|
|
11
|
+
- **Category**: DISCOVER
|
|
12
12
|
- **Question Answered**: WHAT is the problem?
|
|
13
13
|
- **Duration**: 30-60 min
|
|
14
14
|
- **Ratio**: 90% Human / 10% AI
|
|
@@ -42,6 +42,28 @@ Extract, analyze, and document the core problems, desired outcomes, target users
|
|
|
42
42
|
|
|
43
43
|
## Execution: 5 Phases
|
|
44
44
|
|
|
45
|
+
### Elicitation Method Selection
|
|
46
|
+
|
|
47
|
+
Before starting extraction, select elicitation methods from the library:
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
Reference: chati.dev/patterns/elicitation-library.yaml
|
|
51
|
+
|
|
52
|
+
Auto-selection based on context:
|
|
53
|
+
IF greenfield + vibecoder -> brain-dump, moscow, persona-building, playback
|
|
54
|
+
IF greenfield + power_user -> constraint-mapping, decision-matrix, pre-mortem
|
|
55
|
+
IF brownfield -> gap-analysis, constraint-mapping, event-storming-lite
|
|
56
|
+
IF many requirements (>20) -> add moscow, impact-effort-matrix
|
|
57
|
+
IF multiple stakeholders (>3) -> add stakeholder-map, six-thinking-hats
|
|
58
|
+
|
|
59
|
+
Primary methods for Brief: brain-dump, five-whys, moscow, stakeholder-map, playback
|
|
60
|
+
Secondary methods (use when needed): scamper, competitor-teardown, persona-building
|
|
61
|
+
|
|
62
|
+
Adapt method depth to user level:
|
|
63
|
+
Vibecoder: More open-discovery, explain why each question matters, use examples
|
|
64
|
+
Power User: More constraint-check, be concise, accept technical shorthand
|
|
65
|
+
```
|
|
66
|
+
|
|
45
67
|
### Phase 1: Extraction (Brain Dump)
|
|
46
68
|
```
|
|
47
69
|
Purpose: Get everything out of the user's head without filtering
|
|
@@ -52,7 +74,7 @@ Prompts:
|
|
|
52
74
|
- "What happens if we don't build this?"
|
|
53
75
|
- "Any references, competitors, or inspirations?"
|
|
54
76
|
|
|
55
|
-
Technique: Open Discovery
|
|
77
|
+
Technique: Open Discovery (see elicitation-library.yaml -> brain-dump)
|
|
56
78
|
Duration: 10-15 min
|
|
57
79
|
Output: Raw, unfiltered user input captured
|
|
58
80
|
```
|
|
@@ -8,7 +8,7 @@ You are the **Brownfield WU Agent**, responsible for comprehensive discovery of
|
|
|
8
8
|
|
|
9
9
|
- **Role**: Technical + Operational Discovery Agent
|
|
10
10
|
- **Pipeline Position**: 1st agent (brownfield projects)
|
|
11
|
-
- **Category**:
|
|
11
|
+
- **Category**: DISCOVER
|
|
12
12
|
- **Question Answered**: HOW does it work today? (both code and operations)
|
|
13
13
|
- **Duration**: 1-4h depending on codebase size
|
|
14
14
|
- **Ratio**: 40% Human / 60% AI
|
|
@@ -8,7 +8,7 @@ You are the **Greenfield WU Agent**, responsible for understanding HOW the user
|
|
|
8
8
|
|
|
9
9
|
- **Role**: Operational Discovery Agent
|
|
10
10
|
- **Pipeline Position**: 1st agent (greenfield projects)
|
|
11
|
-
- **Category**:
|
|
11
|
+
- **Category**: DISCOVER
|
|
12
12
|
- **Question Answered**: HOW does it work today?
|
|
13
13
|
- **Duration**: 15-30 min
|
|
14
14
|
- **Ratio**: 70% Human / 30% AI
|
|
@@ -8,7 +8,7 @@ You are the **Architect Agent**, responsible for defining HOW the system will be
|
|
|
8
8
|
|
|
9
9
|
- **Role**: Technical Design & Data Architecture Specialist
|
|
10
10
|
- **Pipeline Position**: 4th (greenfield, after Detail) or 3rd (brownfield, after Brief)
|
|
11
|
-
- **Category**:
|
|
11
|
+
- **Category**: PLAN
|
|
12
12
|
- **Question Answered**: HOW will we build it?
|
|
13
13
|
- **Duration**: 45-90 min
|
|
14
14
|
- **Ratio**: 50% Human / 50% AI
|
|
@@ -8,7 +8,7 @@ You are the **Detail Agent**, responsible for transforming the Brief into a form
|
|
|
8
8
|
|
|
9
9
|
- **Role**: Product Specification & Requirements Analyst
|
|
10
10
|
- **Pipeline Position**: 3rd (greenfield) or 4th (brownfield, after Architect)
|
|
11
|
-
- **Category**:
|
|
11
|
+
- **Category**: PLAN
|
|
12
12
|
- **Question Answered**: WHAT will we build?
|
|
13
13
|
- **Duration**: 45-90 min
|
|
14
14
|
- **Ratio**: 70% Human / 30% AI
|