chati-dev 2.1.2 → 3.0.1
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 +95 -24
- package/bin/chati.js +1 -1
- package/framework/agents/build/dev.md +1 -0
- package/framework/agents/deploy/devops.md +1 -0
- package/framework/agents/discover/brief.md +1 -0
- package/framework/agents/discover/brownfield-wu.md +1 -0
- package/framework/agents/discover/greenfield-wu.md +1 -0
- package/framework/agents/plan/architect.md +1 -0
- package/framework/agents/plan/detail.md +1 -0
- package/framework/agents/plan/phases.md +3 -2
- package/framework/agents/plan/tasks.md +1 -0
- package/framework/agents/plan/ux.md +1 -0
- package/framework/agents/quality/qa-implementation.md +1 -0
- package/framework/agents/quality/qa-planning.md +1 -0
- package/framework/config.yaml +21 -2
- package/framework/constitution.md +67 -2
- package/framework/context/governance.md +16 -3
- package/framework/context/root.md +3 -3
- package/framework/data/entity-registry.yaml +1 -1
- package/framework/domains/agents/brownfield-wu.yaml +4 -0
- package/framework/domains/agents/detail.yaml +1 -1
- package/framework/domains/agents/dev.yaml +4 -0
- package/framework/domains/agents/orchestrator.yaml +8 -0
- package/framework/domains/agents/phases.yaml +2 -2
- package/framework/domains/agents/tasks.yaml +2 -2
- package/framework/domains/constitution.yaml +30 -2
- package/framework/domains/global.yaml +20 -0
- package/framework/hooks/model-governance.js +17 -15
- package/framework/hooks/read-protection.js +1 -0
- package/framework/i18n/en.yaml +11 -4
- package/framework/i18n/es.yaml +11 -4
- package/framework/i18n/fr.yaml +11 -4
- package/framework/i18n/pt.yaml +11 -4
- package/framework/intelligence/context-engine.md +31 -2
- package/framework/intelligence/decision-engine.md +1 -1
- package/framework/intelligence/memory-layer.md +17 -0
- package/framework/orchestrator/chati.md +94 -14
- package/framework/patterns/elicitation-library.yaml +2 -2
- package/framework/schemas/config.schema.json +44 -0
- package/framework/schemas/session.schema.json +27 -0
- package/framework/tasks/brownfield-wu-dependency-scan.md +1 -1
- package/framework/tasks/brownfield-wu-migration-plan.md +4 -4
- package/framework/tasks/brownfield-wu-risk-assess.md +2 -2
- package/framework/tasks/detail-expand-prd.md +2 -2
- package/framework/tasks/greenfield-wu-report.md +1 -1
- package/framework/tasks/orchestrator-handoff.md +2 -2
- package/framework/tasks/orchestrator-resume.md +1 -1
- package/framework/tasks/qa-impl-performance-test.md +2 -2
- package/framework/tasks/qa-impl-sast-scan.md +6 -6
- package/framework/tasks/qa-planning-consolidate.md +1 -1
- package/framework/tasks/qa-planning-coverage-plan.md +9 -9
- package/framework/tasks/qa-planning-gate-define.md +6 -6
- package/framework/tasks/qa-planning-risk-matrix.md +1 -1
- package/framework/tasks/tasks-consolidate.md +5 -5
- package/package.json +5 -1
- package/scripts/changelog-generator.js +2 -2
- package/scripts/ide-sync.js +9 -4
- package/scripts/pr-review.js +5 -5
- package/scripts/semantic-lint.js +3 -3
- package/src/autonomy/build-loop.js +194 -0
- package/src/autonomy/build-state.js +269 -0
- package/src/autonomy/execution-profile.js +151 -0
- package/src/config/context-file-generator.js +203 -0
- package/src/config/ide-configs.js +6 -6
- package/src/gates/g2-qa-planning.js +4 -2
- package/src/gates/g4-qa-implementation.js +5 -2
- package/src/gates/gate-base.js +33 -1
- package/src/health/engine.js +245 -0
- package/src/installer/core.js +54 -16
- package/src/installer/templates.js +131 -2
- package/src/installer/validator.js +5 -3
- package/src/intelligence/file-tracker.js +117 -0
- package/src/intelligence/registry-manager.js +2 -2
- package/src/intelligence/timeline.js +144 -0
- package/src/memory/gotchas-auto-capture.js +253 -0
- package/src/preview/detector.js +1 -1
- package/src/terminal/adapters/claude-adapter.js +33 -0
- package/src/terminal/adapters/codex-adapter.js +31 -0
- package/src/terminal/adapters/copilot-adapter.js +28 -0
- package/src/terminal/adapters/gemini-adapter.js +28 -0
- package/src/terminal/adapters/index.js +8 -0
- package/src/terminal/cli-registry.js +190 -0
- package/src/terminal/prompt-builder.js +9 -20
- package/src/terminal/run-agent.js +2 -1
- package/src/terminal/spawner.js +44 -14
- package/src/terminal/wave-analyzer.js +143 -0
- package/src/utils/config-parser.js +97 -0
- package/src/wizard/feedback.js +1 -1
- package/src/wizard/i18n.js +11 -4
- package/src/wizard/index.js +22 -10
- package/src/wizard/questions.js +50 -2
- package/framework/manifest.json +0 -5
- package/framework/manifest.sig +0 -1
- /package/assets/{logo - co/314/201pia.png" → logo - c/303/263pia.png"} +0 -0
- /package/assets/{logo - co/314/201pia.svg" → logo - c/303/263pia.svg"} +0 -0
package/README.md
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
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
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
|
+
<a href="#multi-cli-support"><img src="https://img.shields.io/badge/LLM-Claude%20%7C%20Gemini%20%7C%20Codex%20%7C%20Copilot-blueviolet.svg" alt="Multi-LLM"></a>
|
|
13
14
|
<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
15
|
<a href=".github/CONTRIBUTING.md"><img src="https://img.shields.io/badge/contributions-welcome-brightgreen.svg" alt="Contributions Welcome"></a>
|
|
15
16
|
</p>
|
|
@@ -39,11 +40,11 @@ AI-assisted development today has three critical issues:
|
|
|
39
40
|
|
|
40
41
|
1. **Context Loss** — AI forgets decisions across sessions, leading to inconsistent implementations
|
|
41
42
|
2. **Planning Gaps** — Jumping straight to code without structured requirements leads to rework
|
|
42
|
-
3. **
|
|
43
|
+
3. **Vendor Lock-in** — Most AI dev tools only work with one provider, limiting flexibility
|
|
43
44
|
|
|
44
45
|
### The Solution
|
|
45
46
|
|
|
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
|
|
47
|
+
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 can use any supported AI provider.
|
|
47
48
|
|
|
48
49
|
---
|
|
49
50
|
|
|
@@ -52,9 +53,11 @@ Chati.dev introduces **Agent-Driven Development**: a pipeline where each agent o
|
|
|
52
53
|
### Prerequisites
|
|
53
54
|
|
|
54
55
|
- **Node.js** >= 20.0.0 ([download](https://nodejs.org/))
|
|
55
|
-
- **
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
- **An AI CLI** — at least one of:
|
|
57
|
+
- [Claude Code](https://docs.anthropic.com/en/docs/claude-code/overview) (recommended)
|
|
58
|
+
- [Gemini CLI](https://github.com/google-gemini/gemini-cli)
|
|
59
|
+
- [Codex CLI](https://github.com/openai/codex)
|
|
60
|
+
- [GitHub Copilot CLI](https://docs.github.com/en/copilot)
|
|
58
61
|
|
|
59
62
|
### 1. Install in your project
|
|
60
63
|
|
|
@@ -64,11 +67,18 @@ Open a terminal in your project directory:
|
|
|
64
67
|
npx chati-dev init
|
|
65
68
|
```
|
|
66
69
|
|
|
67
|
-
The wizard
|
|
70
|
+
The wizard guides you through 4 steps:
|
|
71
|
+
|
|
72
|
+
| Step | What it asks |
|
|
73
|
+
|------|-------------|
|
|
74
|
+
| **Language** | English, Portuguese, Spanish, or French |
|
|
75
|
+
| **Project Type** | Greenfield (new) or Brownfield (existing) |
|
|
76
|
+
| **AI Provider** | Claude, Gemini, Codex, or Copilot — auto-configures optimal models per agent |
|
|
77
|
+
| **Confirm** | Review summary and proceed |
|
|
68
78
|
|
|
69
79
|
### 2. Activate the orchestrator
|
|
70
80
|
|
|
71
|
-
Open
|
|
81
|
+
Open your AI CLI in the same project directory, then type:
|
|
72
82
|
|
|
73
83
|
```
|
|
74
84
|
/chati
|
|
@@ -110,14 +120,74 @@ npx chati-dev status --watch # Auto-refresh every 5s
|
|
|
110
120
|
| Feature | What it means |
|
|
111
121
|
|---------|--------------|
|
|
112
122
|
| **13 Specialized Agents** | Each agent has a defined mission, success criteria, and handoff protocol — not one AI trying to do everything |
|
|
113
|
-
| **
|
|
123
|
+
| **Multi-CLI Architecture** | Choose your AI provider at install time: Claude, Gemini, Codex, or Copilot. Each agent gets the optimal model for that provider |
|
|
124
|
+
| **Quality Gates** | Every phase is validated before moving forward. 3-tier verdicts: APPROVED, NEEDS_REVISION, or BLOCKED |
|
|
114
125
|
| **Context Persistence** | Sessions survive restarts. Close your IDE, come back next week — the system remembers everything |
|
|
115
126
|
| **Session Lock** | Once activated, you stay inside the system. No accidentally "falling out" into generic AI mode |
|
|
116
127
|
| **Multi-Terminal** | Autonomous agents run in parallel in separate terminals. Detail, Architect, and UX agents work simultaneously |
|
|
117
128
|
| **Memory System** | The system learns from mistakes. Gotchas are captured automatically and recalled when relevant |
|
|
129
|
+
| **Execution Profiles** | Three profiles — explore (read-only), guided (default), autonomous (gate >= 90%) — with safety net and circuit breaker |
|
|
118
130
|
| **IDE-Agnostic** | Works with Claude Code, VS Code, Cursor, Gemini CLI, GitHub Copilot, and AntiGravity |
|
|
119
131
|
| **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 |
|
|
132
|
+
| **Supply Chain Security** | Every file is cryptographically signed (Ed25519). Tampered packages are blocked on install |
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
## Multi-CLI Support
|
|
137
|
+
|
|
138
|
+
Chati.dev is provider-agnostic. You choose your AI provider during installation, and the system auto-configures optimal model assignments for every agent.
|
|
139
|
+
|
|
140
|
+
### Supported Providers
|
|
141
|
+
|
|
142
|
+
| Provider | CLI | Deep Reasoning | Lightweight | Status |
|
|
143
|
+
|----------|-----|---------------|-------------|--------|
|
|
144
|
+
| **Claude** | `claude` | Opus | Sonnet / Haiku | Default |
|
|
145
|
+
| **Gemini** | `gemini` | Pro | Flash | Full support |
|
|
146
|
+
| **Codex** | `codex` | Codex | Codex Mini | Full support |
|
|
147
|
+
| **Copilot** | `copilot` | Sonnet 4.5 | GPT-5 | Full support |
|
|
148
|
+
|
|
149
|
+
### How Model Assignment Works
|
|
150
|
+
|
|
151
|
+
Each agent is classified by its reasoning needs:
|
|
152
|
+
|
|
153
|
+
- **Deep reasoning** (Architect, QA, Dev, Detail, Brownfield-WU) → top-tier model
|
|
154
|
+
- **Lightweight** (Brief, Phases, UX, Greenfield-WU, DevOps, Orchestrator) → fast model
|
|
155
|
+
|
|
156
|
+
When you select a provider, the system maps each agent to the best available model:
|
|
157
|
+
|
|
158
|
+
```
|
|
159
|
+
Claude: architect → opus, brief → sonnet, greenfield-wu → haiku
|
|
160
|
+
Gemini: architect → pro, brief → flash, greenfield-wu → flash
|
|
161
|
+
Codex: architect → codex, brief → codex-mini
|
|
162
|
+
Copilot: architect → claude-sonnet, brief → claude-sonnet
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
### CLI Invocation Syntax
|
|
166
|
+
|
|
167
|
+
Each provider uses its own CLI syntax. Chati.dev handles this transparently:
|
|
168
|
+
|
|
169
|
+
| Provider | Command | Example |
|
|
170
|
+
|----------|---------|---------|
|
|
171
|
+
| Claude | `claude --print --model <id>` | `claude --print --model claude-opus-4-6` |
|
|
172
|
+
| Gemini | `gemini --model <id>` | `gemini --model gemini-2.5-pro` |
|
|
173
|
+
| Codex | `codex exec -m <id>` | `codex exec -m gpt-5.3-codex` |
|
|
174
|
+
| Copilot | `copilot -p --model <id>` | `copilot -p --model claude-sonnet-4.5` |
|
|
175
|
+
|
|
176
|
+
Prompts are piped via stdin for all providers. You can override individual agent models in `chati.dev/config.yaml` under `agent_overrides`.
|
|
177
|
+
|
|
178
|
+
---
|
|
179
|
+
|
|
180
|
+
## Execution Profiles
|
|
181
|
+
|
|
182
|
+
Three profiles control how much autonomy agents have:
|
|
183
|
+
|
|
184
|
+
| Profile | Behavior | When to use |
|
|
185
|
+
|---------|----------|-------------|
|
|
186
|
+
| **explore** | Read-only. Agents analyze but don't modify files | Understanding a new codebase |
|
|
187
|
+
| **guided** | Default. Agents propose changes, you approve | Normal development workflow |
|
|
188
|
+
| **autonomous** | Agents execute without confirmation (quality gates >= 90%) | Trusted pipelines with high quality scores |
|
|
189
|
+
|
|
190
|
+
The system starts in `guided` mode. Transition to `autonomous` requires both QA gates scoring >= 95%. A safety net with 5 triggers (stuck loop, quality drop, scope creep, error cascade, user override) automatically reverts to guided mode when needed.
|
|
121
191
|
|
|
122
192
|
---
|
|
123
193
|
|
|
@@ -131,7 +201,7 @@ npx chati-dev status --watch # Auto-refresh every 5s
|
|
|
131
201
|
| **PLAN** | Detail, Architect, UX, Phases, Tasks | Create PRD, design architecture, define UX, break work into phases and tasks |
|
|
132
202
|
| **BUILD** | Dev | Implement code task by task, following the plan |
|
|
133
203
|
| **DEPLOY** | DevOps | Handle git operations, deployment, and documentation |
|
|
134
|
-
| **Quality** | QA-Planning, QA-Implementation | Validate plan coherence (
|
|
204
|
+
| **Quality** | QA-Planning, QA-Implementation | Validate plan coherence (>= 95%) and code quality (>= 95%) between phases |
|
|
135
205
|
|
|
136
206
|
### How the Pipeline Works
|
|
137
207
|
|
|
@@ -152,6 +222,7 @@ npx chati-dev status --watch # Auto-refresh every 5s
|
|
|
152
222
|
│ requirements into a structured doc │
|
|
153
223
|
│ │
|
|
154
224
|
├─ Spawns separate terminals ────────────┐
|
|
225
|
+
│ (using your selected AI provider) │
|
|
155
226
|
│ │
|
|
156
227
|
│ PLAN (autonomous, parallel) │
|
|
157
228
|
│ Detail ───┐ │
|
|
@@ -162,7 +233,7 @@ npx chati-dev status --watch # Auto-refresh every 5s
|
|
|
162
233
|
├─ Quality Gate ─────────────────────────┐
|
|
163
234
|
│ │
|
|
164
235
|
│ QA-Planning validates the plan │
|
|
165
|
-
│ Must score
|
|
236
|
+
│ Must score >= 95% to proceed │
|
|
166
237
|
│ │
|
|
167
238
|
├─ Spawns terminal(s) ───────────────────┐
|
|
168
239
|
│ │
|
|
@@ -183,7 +254,7 @@ npx chati-dev status --watch # Auto-refresh every 5s
|
|
|
183
254
|
✓ Done │
|
|
184
255
|
```
|
|
185
256
|
|
|
186
|
-
Each spawned terminal runs as a separate
|
|
257
|
+
Each spawned terminal runs as a separate CLI process with its own context window, write-scope isolation, and structured handoff output. The AI provider and model are selected automatically based on your configuration.
|
|
187
258
|
|
|
188
259
|
### Intelligence Layer
|
|
189
260
|
|
|
@@ -197,15 +268,16 @@ Three systems operate transparently behind the pipeline:
|
|
|
197
268
|
|
|
198
269
|
### Constitution
|
|
199
270
|
|
|
200
|
-
The system is governed by a **
|
|
271
|
+
The system is governed by a **19-article Constitution** that enforces agent behavior, quality standards, security, and system integrity:
|
|
201
272
|
|
|
202
273
|
- **Agent Governance** — Every agent has a defined mission, scope, and success criteria
|
|
203
|
-
- **Quality Standards** — Minimum 95% score on quality gates.
|
|
204
|
-
- **Security** — No secrets in system files. No destructive operations without confirmation
|
|
274
|
+
- **Quality Standards** — Minimum 95% score on quality gates. 3-tier verdicts (APPROVED / NEEDS_REVISION / BLOCKED)
|
|
275
|
+
- **Security** — No secrets in system files. No destructive operations without confirmation. Ed25519 supply chain verification
|
|
205
276
|
- **Mode Governance** — Planning mode can't modify project code. Build mode has full access
|
|
206
277
|
- **Session Lock** — Once activated, all messages route through the orchestrator
|
|
207
|
-
- **Model Governance** — Each agent runs on its designated
|
|
208
|
-
- **Execution
|
|
278
|
+
- **Model Governance** — Each agent runs on its designated model, enforced by the CLI adapter
|
|
279
|
+
- **Execution Profiles** — Explore, guided, and autonomous modes with safety net and circuit breaker
|
|
280
|
+
- **Multi-CLI** — Provider-agnostic architecture with adapter pattern and automatic model mapping
|
|
209
281
|
|
|
210
282
|
---
|
|
211
283
|
|
|
@@ -216,8 +288,8 @@ The system is governed by a **17-article Constitution** that enforces agent beha
|
|
|
216
288
|
| **Claude Code** | `.claude/commands/chati.md` → orchestrator |
|
|
217
289
|
| **VS Code** | `.vscode/chati.md` → orchestrator |
|
|
218
290
|
| **Cursor** | `.cursor/rules/chati.md` → orchestrator |
|
|
219
|
-
| **Gemini CLI** | `.gemini/
|
|
220
|
-
| **GitHub Copilot** | `.github/
|
|
291
|
+
| **Gemini CLI** | `.gemini/commands/chati.toml` → orchestrator |
|
|
292
|
+
| **GitHub Copilot** | `.github/agents/chati.md` → orchestrator |
|
|
221
293
|
| **AntiGravity** | Platform agent config → orchestrator |
|
|
222
294
|
|
|
223
295
|
All IDEs use a thin router file that points to the same orchestrator. Your project works the same regardless of which IDE you use.
|
|
@@ -291,7 +363,6 @@ your-project/
|
|
|
291
363
|
│ │ ├── quality/ # QA-Planning, QA-Implementation
|
|
292
364
|
│ │ ├── build/ # Dev
|
|
293
365
|
│ │ └── deploy/ # DevOps
|
|
294
|
-
│ ├── tasks/ # 73 task definitions
|
|
295
366
|
│ ├── workflows/ # 6 workflow blueprints
|
|
296
367
|
│ ├── templates/ # 6 artifact templates
|
|
297
368
|
│ ├── schemas/ # 5 JSON schemas
|
|
@@ -305,7 +376,7 @@ your-project/
|
|
|
305
376
|
│ ├── data/ # Entity registry
|
|
306
377
|
│ ├── i18n/ # EN, PT, ES, FR translations
|
|
307
378
|
│ ├── migrations/ # Version migration scripts
|
|
308
|
-
│ ├── constitution.md #
|
|
379
|
+
│ ├── constitution.md # 19 Articles + Preamble
|
|
309
380
|
│ └── config.yaml # System configuration
|
|
310
381
|
└── packages/
|
|
311
382
|
└── chati-dev/ # CLI + runtime engine
|
|
@@ -320,9 +391,9 @@ The installer and agent interactions support 4 languages:
|
|
|
320
391
|
| Language | Code | Status |
|
|
321
392
|
|----------|------|--------|
|
|
322
393
|
| **English** | `en` | Default |
|
|
323
|
-
| **
|
|
324
|
-
| **
|
|
325
|
-
| **
|
|
394
|
+
| **Portugues** | `pt` | Full support |
|
|
395
|
+
| **Espanol** | `es` | Full support |
|
|
396
|
+
| **Francais** | `fr` | Full support |
|
|
326
397
|
|
|
327
398
|
Artifacts are always generated in English for portability and team collaboration.
|
|
328
399
|
|
package/bin/chati.js
CHANGED
|
@@ -255,7 +255,7 @@ async function main() {
|
|
|
255
255
|
console.log(' - 13 agents (orchestrator + 12 specialized)');
|
|
256
256
|
console.log(' - 6 workflow blueprints');
|
|
257
257
|
console.log(' - 6 templates');
|
|
258
|
-
console.log(' - Constitution (
|
|
258
|
+
console.log(' - Constitution (19 Articles + Preamble)');
|
|
259
259
|
console.log(' - Dashboard TUI');
|
|
260
260
|
console.log(' - Upgrade system with migrations');
|
|
261
261
|
console.log(' - 6 IDE support');
|
|
@@ -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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Phases Agent — Roadmap & Wave Planning
|
|
2
2
|
|
|
3
|
-
You are the **Phases Agent**, responsible for breaking the PRD into development phases with an MVP-first approach. You absorb the SM (Scrum Master) responsibilities for
|
|
3
|
+
You are the **Phases Agent**, responsible for breaking the PRD into development phases with an MVP-first approach. You absorb the SM (Scrum Master) responsibilities for phase planning, prioritization, and sequencing.
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -12,8 +12,9 @@ You are the **Phases Agent**, responsible for breaking the PRD into development
|
|
|
12
12
|
- **Question Answered**: WHEN will we build it?
|
|
13
13
|
- **Duration**: 20-40 min
|
|
14
14
|
- **Ratio**: 60% Human / 40% AI
|
|
15
|
-
- **Absorbs**: SM (
|
|
15
|
+
- **Absorbs**: SM (phase 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
|
package/framework/config.yaml
CHANGED
|
@@ -1,8 +1,27 @@
|
|
|
1
1
|
# chati.dev Configuration
|
|
2
|
-
version: "
|
|
2
|
+
version: "3.0.1"
|
|
3
3
|
installed_at: "2026-02-07T10:00:00Z"
|
|
4
4
|
updated_at: "2026-02-17T00:00:00Z"
|
|
5
|
-
installer_version: "
|
|
5
|
+
installer_version: "3.0.1"
|
|
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 }
|
|
@@ -17,7 +17,7 @@ Chati.dev is a planning-first AI-assisted orchestration system that coordinates
|
|
|
17
17
|
### Anti-Patterns (NEVER do these)
|
|
18
18
|
|
|
19
19
|
- **Skip Brief**: Jumping to implementation without understanding the problem guarantees solving the wrong problem.
|
|
20
|
-
- **Long
|
|
20
|
+
- **Long Phases**: Phases longer than 2 weeks lose focus and delay feedback.
|
|
21
21
|
- **Ignore Feedback**: User corrections during any agent's execution are signals, not interruptions.
|
|
22
22
|
- **Over-engineering**: Building for hypothetical future requirements adds complexity without value.
|
|
23
23
|
- **Excessive Docs**: Documentation should enable action, not demonstrate thoroughness. If nobody reads it, don't write it.
|
|
@@ -368,6 +368,18 @@ The orchestrator SHALL select the optimal AI model for each agent to balance qua
|
|
|
368
368
|
|
|
369
369
|
8. Model selections are logged in session.yaml under `model_selections[]` for cost tracking and optimization.
|
|
370
370
|
|
|
371
|
+
9. Four provider categories are recognized for multi-CLI execution:
|
|
372
|
+
- **claude**: Primary provider. Deep reasoning, complex analysis, code generation. Full hook support, MCP support.
|
|
373
|
+
- **gemini**: Large-context provider. Codebase analysis, discovery, document review. 1M token context window. Full hook support, MCP support.
|
|
374
|
+
- **codex**: Rapid-coding provider. Fast code generation, sandbox execution. No hook support, MCP support.
|
|
375
|
+
- **copilot**: Multi-model provider. Reads CLAUDE.md, GEMINI.md, and AGENTS.md natively. Full hook support, MCP support.
|
|
376
|
+
|
|
377
|
+
10. Claude is the default and primary provider. Multi-CLI is opt-in via `config.yaml` `providers` section. When only `claude` is enabled, the system behaves identically to v2.x.
|
|
378
|
+
|
|
379
|
+
11. Provider assignments per agent are defined in `config.yaml` under `agent_overrides`. When no override exists, the agent uses the primary provider.
|
|
380
|
+
|
|
381
|
+
12. For providers without hook support (e.g., codex), governance is enforced by prompt injection — the PRISM context block is embedded in the prompt rather than injected via hooks. This provides softer but functional governance.
|
|
382
|
+
|
|
371
383
|
**Enforcement: GUIDE** — Model recommendations are advisory in IDE mode; automatic in SDK mode.
|
|
372
384
|
|
|
373
385
|
---
|
|
@@ -402,5 +414,58 @@ The system SHALL support two execution modes that govern the degree of human inv
|
|
|
402
414
|
|
|
403
415
|
---
|
|
404
416
|
|
|
405
|
-
|
|
417
|
+
## Article XVIII: Execution Profile Governance
|
|
418
|
+
|
|
419
|
+
The system SHALL support three execution profiles that govern the degree of confirmation required for agent actions. Profiles are orthogonal to mode governance (Article XI) — modes control WHERE agents can write; profiles control WHETHER confirmation is required. Note: Execution Mode (Article XVII) governs WHO decides (human vs system); Execution Profile governs HOW actions execute (read-only, confirmed, autonomous).
|
|
420
|
+
|
|
421
|
+
1. Three profiles are recognized:
|
|
422
|
+
- **explore**: Read-only mode. Agents analyze, investigate, and suggest but perform NO write operations. Useful for safe discovery and analysis.
|
|
423
|
+
- **guided**: Default profile. Agents propose actions and wait for user confirmation before writes. Balances safety with productivity.
|
|
424
|
+
- **autonomous**: Full autonomy. Agents execute without confirmation when quality gate scores meet thresholds. Requires cumulative gate scores >= 95%.
|
|
425
|
+
|
|
426
|
+
2. The default profile is `guided`. Profile selection is stored in `session.yaml` under `execution_profile`.
|
|
427
|
+
|
|
428
|
+
3. Profile transitions are logged in `session.yaml` under `profile_transitions[]` for audit trail.
|
|
429
|
+
|
|
430
|
+
4. Certain operations ALWAYS require confirmation regardless of profile:
|
|
431
|
+
- Destructive operations (file deletion, database drops, force push)
|
|
432
|
+
- Deployment to production environments
|
|
433
|
+
- Deviation protocol activation
|
|
434
|
+
- Backward pipeline transitions (build → planning)
|
|
435
|
+
|
|
436
|
+
5. The `autonomous` profile is gated by quality: it can only be activated when the most recent QA gate score is >= 95%. If quality drops below threshold during autonomous execution, the system SHALL automatically downgrade to `guided`.
|
|
437
|
+
|
|
438
|
+
6. The `explore` profile is available at any pipeline position and does not affect mode governance. An agent in `planning` mode with `explore` profile can read any file but write to none.
|
|
439
|
+
|
|
440
|
+
**Enforcement: BLOCK** — Write operations in `explore` profile are rejected. Autonomous mode without qualifying gate scores is rejected.
|
|
441
|
+
|
|
442
|
+
---
|
|
443
|
+
|
|
444
|
+
## Article XIX: Multi-CLI Governance
|
|
445
|
+
|
|
446
|
+
When multiple CLI providers are enabled, the system SHALL coordinate agent execution across providers while maintaining governance consistency.
|
|
447
|
+
|
|
448
|
+
1. The CLI Provider Registry (`packages/chati-dev/src/terminal/cli-registry.js`) is the source of truth for provider capabilities: command syntax, model flags, stdin support, hook support, MCP support, and context file format.
|
|
449
|
+
|
|
450
|
+
2. The handoff format is provider-agnostic. All agents, regardless of which CLI executes them, produce handoffs in the same two-layer format (Article VIII). This ensures seamless inter-provider communication.
|
|
451
|
+
|
|
452
|
+
3. Provider availability SHALL be validated by the health check engine before spawning. If a configured provider is unavailable, the system SHALL fall back to the primary provider (claude) with a warning.
|
|
453
|
+
|
|
454
|
+
4. Context file generation is automatic. When a provider is enabled in `config.yaml`, the installer SHALL generate the corresponding context file (GEMINI.md for gemini, AGENTS.md for codex) derived from CLAUDE.md content.
|
|
455
|
+
|
|
456
|
+
5. Hook-based governance (constitution-guard, mode-governance, read-protection) applies ONLY to providers with hook support. For providers without hooks, equivalent governance is enforced via prompt injection — the PRISM context block includes governance directives.
|
|
457
|
+
|
|
458
|
+
6. The orchestrator SHALL select the optimal provider for each agent based on:
|
|
459
|
+
a. Agent's provider preference (defined in agent Identity section)
|
|
460
|
+
b. Project-level overrides (config.yaml `agent_overrides`)
|
|
461
|
+
c. Provider availability (health check)
|
|
462
|
+
d. Fallback: primary provider (claude)
|
|
463
|
+
|
|
464
|
+
7. Cost tracking SHALL include provider information. Each model selection entry in session.yaml includes: provider, model, agent, timestamp, and estimated token usage.
|
|
465
|
+
|
|
466
|
+
**Enforcement: GUIDE** — Provider selection is advisory. The system falls back gracefully when providers are unavailable.
|
|
467
|
+
|
|
468
|
+
---
|
|
469
|
+
|
|
470
|
+
*Chati.dev Constitution v3.0.0 — 19 Articles + Preamble*
|
|
406
471
|
*All agents are bound by this Constitution. Violations are enforced per article.*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Chati.dev Governance Rules
|
|
2
2
|
|
|
3
|
-
Extracted from `chati.dev/constitution.md` (
|
|
3
|
+
Extracted from `chati.dev/constitution.md` (19 Articles). Read the full constitution for complete rules.
|
|
4
4
|
|
|
5
5
|
## Mode Governance (Article XI)
|
|
6
6
|
- **3 modes**: planning (read all, write chati.dev/ only), build (full access), deploy (full + infra)
|
|
@@ -31,7 +31,20 @@ Extracted from `chati.dev/constitution.md` (17 Articles). Read the full constitu
|
|
|
31
31
|
- Per-agent model selection: opus (deep reasoning), sonnet (structured), haiku (lightweight)
|
|
32
32
|
- Model recorded in session for cost tracking
|
|
33
33
|
|
|
34
|
-
## Execution Mode (Article XVII)
|
|
35
|
-
-
|
|
34
|
+
## Execution Mode (Article XVII) — WHO decides
|
|
35
|
+
- Controls whether human or system makes pipeline decisions
|
|
36
|
+
- Autonomous mode requires gate score >= 95% (qa-planning >= 95%, qa-implementation >= 95%)
|
|
36
37
|
- Safety net with 5 triggers: stuck loop, quality drop, scope creep, error cascade, user override
|
|
37
38
|
- Circuit breaker: CLOSED -> OPEN (3 failures) -> HALF_OPEN (probe)
|
|
39
|
+
|
|
40
|
+
## Execution Profile Governance (Article XVIII) — HOW actions execute
|
|
41
|
+
- 3 profiles: explore (read-only), guided (default), autonomous (gate >= 95%)
|
|
42
|
+
- Transition to autonomous requires QA-Planning >= 95% AND QA-Implementation >= 95%
|
|
43
|
+
- Safety net: 5 triggers revert to guided (stuck loop, quality drop, scope creep, error cascade, user override)
|
|
44
|
+
- Circuit breaker: CLOSED -> OPEN (3 failures) -> HALF_OPEN (probe)
|
|
45
|
+
|
|
46
|
+
## Multi-CLI Governance (Article XIX)
|
|
47
|
+
- 4 providers: Claude, Gemini, Codex, Copilot
|
|
48
|
+
- Provider selected at install time, auto-configures optimal models per agent
|
|
49
|
+
- Resolution chain: agent_overrides > agent default > primary provider
|
|
50
|
+
- Context files auto-generated for non-Claude providers (GEMINI.md, AGENTS.md)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Chati.dev System Context
|
|
2
2
|
|
|
3
3
|
## Framework
|
|
4
|
-
- **Version**:
|
|
4
|
+
- **Version**: 3.0.0
|
|
5
5
|
- **Agents**: 13 (12 specialized + orchestrator)
|
|
6
|
-
- **Constitution**:
|
|
7
|
-
- **Quality**: 5 pipeline gates +
|
|
6
|
+
- **Constitution**: 19 Articles + Preamble
|
|
7
|
+
- **Quality**: 5 pipeline gates + 3-tier verdicts (APPROVED / NEEDS_REVISION / BLOCKED)
|
|
8
8
|
|
|
9
9
|
## Key References
|
|
10
10
|
- **Session State**: `.chati/session.yaml` (runtime — not committed)
|
|
@@ -257,7 +257,7 @@ entities:
|
|
|
257
257
|
constitution:
|
|
258
258
|
path: chati.dev/constitution.md
|
|
259
259
|
type: governance
|
|
260
|
-
purpose: "
|
|
260
|
+
purpose: "19 Articles + Preamble governing all agent behavior"
|
|
261
261
|
keywords: [constitution, governance, rules, articles, enforcement]
|
|
262
262
|
dependencies: []
|
|
263
263
|
adaptability: 0.1
|
|
@@ -47,3 +47,7 @@ rules:
|
|
|
47
47
|
- id: bf-05
|
|
48
48
|
text: "MUST assess technical debt and provide risk scores in wu-report.yaml"
|
|
49
49
|
priority: normal
|
|
50
|
+
|
|
51
|
+
# Provider Preference (v3.0.0)
|
|
52
|
+
- wu-provider: "Default provider: claude. Gemini recommended for large codebases (>100K LOC) due to 1M context window."
|
|
53
|
+
priority: normal
|
|
@@ -10,7 +10,7 @@ authority:
|
|
|
10
10
|
- Requirements prioritization (MoSCoW)
|
|
11
11
|
allowed:
|
|
12
12
|
- Expand brief requirements into detailed specifications
|
|
13
|
-
- Define
|
|
13
|
+
- Define requirements with acceptance criteria
|
|
14
14
|
- Specify performance, security, and scalability requirements
|
|
15
15
|
- Document edge cases and error scenarios
|
|
16
16
|
- Create requirement traceability matrix
|
|
@@ -47,3 +47,7 @@ rules:
|
|
|
47
47
|
- id: dev-iterate
|
|
48
48
|
text: "Iterate on implementation until acceptance criteria are met."
|
|
49
49
|
priority: normal
|
|
50
|
+
|
|
51
|
+
# Provider Preference (v3.0.0)
|
|
52
|
+
- dev-provider: "Default provider: claude. Can run on gemini for large codebase tasks (1M context window)."
|
|
53
|
+
priority: normal
|
|
@@ -47,3 +47,11 @@ rules:
|
|
|
47
47
|
- id: orch-session
|
|
48
48
|
text: "Persist all state changes to session.yaml immediately."
|
|
49
49
|
priority: high
|
|
50
|
+
|
|
51
|
+
# Provider Routing (v3.0.0)
|
|
52
|
+
- provider-routing: "Select optimal provider for each agent based on: agent preference, project overrides, provider availability, fallback to primary."
|
|
53
|
+
priority: high
|
|
54
|
+
- provider-health: "Validate provider availability via health check before spawning agent terminals."
|
|
55
|
+
priority: high
|
|
56
|
+
- provider-command: "/chati providers lists all enabled providers and their status."
|
|
57
|
+
priority: normal
|
|
@@ -17,7 +17,7 @@ authority:
|
|
|
17
17
|
blocked:
|
|
18
18
|
- Code implementation
|
|
19
19
|
- Task-level decomposition (that's tasks agent's role)
|
|
20
|
-
- Detailed estimation (
|
|
20
|
+
- Detailed estimation (hours or sizing)
|
|
21
21
|
- Deployment planning
|
|
22
22
|
- Architecture redesign
|
|
23
23
|
redirectMessage: "Phase breakdown is complete. Redirecting to tasks agent for task decomposition."
|
|
@@ -27,7 +27,7 @@ outputs:
|
|
|
27
27
|
|
|
28
28
|
rules:
|
|
29
29
|
- id: ph-01
|
|
30
|
-
text: "MUST define Phase
|
|
30
|
+
text: "MUST define Phase 1 as MVP with minimum viable feature set for user validation"
|
|
31
31
|
priority: critical
|
|
32
32
|
|
|
33
33
|
- id: ph-02
|
|
@@ -6,7 +6,7 @@ authority:
|
|
|
6
6
|
- Task decomposition from phases
|
|
7
7
|
- Atomic task definition
|
|
8
8
|
- Task acceptance criteria writing (Given-When-Then)
|
|
9
|
-
- Task estimation (
|
|
9
|
+
- Task estimation (hours or t-shirt sizing)
|
|
10
10
|
- Task dependency mapping
|
|
11
11
|
allowed:
|
|
12
12
|
- Break phases into executable tasks
|
|
@@ -40,7 +40,7 @@ rules:
|
|
|
40
40
|
priority: high
|
|
41
41
|
|
|
42
42
|
- id: tk-04
|
|
43
|
-
text: "MUST estimate task complexity using consistent scale (
|
|
43
|
+
text: "MUST estimate task complexity using consistent scale (hours or t-shirt sizing)"
|
|
44
44
|
priority: normal
|
|
45
45
|
|
|
46
46
|
- id: tk-05
|