@jaguilar87/gaia-ops 3.0.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +159 -369
- package/README.en.md +29 -126
- package/README.md +45 -144
- package/agents/README.en.md +48 -254
- package/agents/README.md +50 -256
- package/agents/aws-troubleshooter.md +92 -515
- package/agents/devops-developer.md +103 -571
- package/agents/gcp-troubleshooter.md +95 -539
- package/agents/gitops-operator.md +94 -1115
- package/agents/terraform-architect.md +79 -812
- package/bin/README.en.md +40 -114
- package/bin/README.md +47 -305
- package/commands/README.en.md +23 -124
- package/commands/README.md +79 -180
- package/commands/gaia.md +0 -2
- package/config/README.md +60 -395
- package/config/context-contracts.md +1 -1
- package/hooks/README.en.md +48 -128
- package/hooks/README.md +83 -180
- package/hooks/pre_tool_use.py +0 -3
- package/hooks/subagent_stop.py +105 -501
- package/package.json +1 -1
- package/speckit/README.md +56 -308
- package/templates/README.md +42 -214
- package/tests/README.en.md +54 -196
- package/tests/README.md +46 -302
- package/tests/integration/test_hooks_integration.py +13 -6
- package/tests/system/test_agent_definitions.py +17 -2
- package/tests/test_agent_contract_integration.py +110 -345
- package/tests/tools/test_context_provider.py +127 -0
- package/tests/validators/test_commit_validator.py +29 -12
- package/tests/workflow/test_episodic_memory.py +68 -118
- package/tests/workflow/test_episodic_simple.py +45 -85
- package/tests/workflow/test_workflow_enforcement.py +76 -115
- package/tests/workflow/test_workflow_enforcer_integration.py +154 -212
- package/tests/workflow/test_workflow_metrics.py +111 -157
- package/tools/2-context/context_provider.py +166 -4
- package/tools/4-memory/episodic.py +100 -0
- package/tools/5-task-management/README.md +31 -39
- package/tools/fast-queries/appservices/quicktriage_devops_developer.sh +75 -0
- package/tools/fast-queries/cloud/aws/quicktriage_aws_troubleshooter.sh +32 -0
- package/commands/restore-session.md +0 -87
- package/commands/save-session.md +0 -88
- package/commands/session-status.md +0 -61
- package/hooks/session_start.py +0 -315
- package/tools/2-context/benchmark_results.json +0 -30
- package/tools/4-memory/demo.py +0 -94
- package/tools/5-task-management/create_current_session_bundle.py +0 -531
- package/tools/5-task-management/restore_session.py +0 -331
- package/tools/5-task-management/session-manager.py +0 -531
- package/tools/9-agent-framework/gitops_integration.py +0 -354
- package/tools/9-agent-framework/terraform_integration.py +0 -273
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,66 @@ All notable changes to the CLAUDE.md orchestrator instructions are documented in
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [3.1.0] - 2025-12-06
|
|
9
|
+
|
|
10
|
+
### Added - Token Optimization & Consolidation
|
|
11
|
+
|
|
12
|
+
- **NEW:** `docs/standards/` - Shared execution standards
|
|
13
|
+
- `security-tiers.md` - T0-T3 definitions
|
|
14
|
+
- `output-format.md` - Report structure
|
|
15
|
+
- `command-execution.md` - Execution pillars
|
|
16
|
+
- `anti-patterns.md` - Common mistakes by tool
|
|
17
|
+
|
|
18
|
+
- **NEW:** Hybrid pre-loading in `context_provider.py`
|
|
19
|
+
- Always loads: security-tiers, output-format
|
|
20
|
+
- On-demand: command-execution, anti-patterns
|
|
21
|
+
- **78% token reduction** per agent invocation
|
|
22
|
+
|
|
23
|
+
- **NEW:** QuickTriage scripts
|
|
24
|
+
- `tools/fast-queries/cloud/aws/quicktriage_aws_troubleshooter.sh`
|
|
25
|
+
- `tools/fast-queries/appservices/quicktriage_devops_developer.sh`
|
|
26
|
+
|
|
27
|
+
### Changed - Agent Optimization
|
|
28
|
+
|
|
29
|
+
- **agents/*.md** - All 5 agents reduced by 78%
|
|
30
|
+
- terraform-architect: 916 → 183 lines
|
|
31
|
+
- gitops-operator: 1,238 → 217 lines
|
|
32
|
+
- gcp-troubleshooter: 600 → 156 lines
|
|
33
|
+
- aws-troubleshooter: 565 → 142 lines
|
|
34
|
+
- devops-developer: 641 → 173 lines
|
|
35
|
+
|
|
36
|
+
### Removed - Session System Consolidation
|
|
37
|
+
|
|
38
|
+
- **REMOVED:** Session management system (consolidated into Episodic Memory)
|
|
39
|
+
- `commands/save-session.md`
|
|
40
|
+
- `commands/restore-session.md`
|
|
41
|
+
- `commands/session-status.md`
|
|
42
|
+
- `hooks/session_start.py`
|
|
43
|
+
- `tools/5-task-management/session-manager.py`
|
|
44
|
+
- `tools/5-task-management/create_current_session_bundle.py`
|
|
45
|
+
- `tools/5-task-management/restore_session.py`
|
|
46
|
+
|
|
47
|
+
### Changed - Episodic Memory Enhanced
|
|
48
|
+
|
|
49
|
+
- **tools/4-memory/episodic.py** - Added `capture_git_state()` migrated from session system
|
|
50
|
+
|
|
51
|
+
### Fixed - Test Suite
|
|
52
|
+
|
|
53
|
+
- **359 tests passing (100%)**
|
|
54
|
+
- Fixed import in `test_commit_validator.py`
|
|
55
|
+
- Fixed import in `test_episodic_memory.py`
|
|
56
|
+
- Updated `test_agent_definitions.py` for meta-agents
|
|
57
|
+
- Changed `test_hook_blocks_docker_ps` to `test_hook_default_permit_for_docker_ps`
|
|
58
|
+
- Fixed 11 warnings (return → assert)
|
|
59
|
+
|
|
60
|
+
### Changed - Documentation
|
|
61
|
+
|
|
62
|
+
- **README.md & README.en.md** - Updated to v3.1.0, reduced 41%
|
|
63
|
+
- **All subdirectory READMEs** - Reduced 63% total (~2,025 lines removed)
|
|
64
|
+
- Eliminated all references to session system
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
8
68
|
## [3.0.0] - 2025-12-05
|
|
9
69
|
|
|
10
70
|
### Added - Agent Intelligence System (MAJOR)
|
|
@@ -141,9 +201,48 @@ manager = EnhancedConversationManager()
|
|
|
141
201
|
|
|
142
202
|
---
|
|
143
203
|
|
|
204
|
+
## [2.6.2] - 2025-11-14
|
|
205
|
+
|
|
206
|
+
### Added - Absolute Paths Support
|
|
207
|
+
|
|
208
|
+
- **NEW:** `normalizePath()` function - Handles both absolute and relative paths transparently
|
|
209
|
+
- **NEW:** CLI option `--project-context-repo` - Specify git repository for project context in non-interactive mode
|
|
210
|
+
- **NEW:** Environment variable `CLAUDE_PROJECT_CONTEXT_REPO` - Alternative way to specify context repo
|
|
211
|
+
|
|
212
|
+
### Changed
|
|
213
|
+
|
|
214
|
+
- **`getConfiguration()`** - Now normalizes paths using `normalizePath()`
|
|
215
|
+
- **`validateAndSetupProjectPaths()`** - Enhanced to handle absolute paths correctly
|
|
216
|
+
- **CLI help and documentation** - Updated examples with absolute paths
|
|
217
|
+
|
|
218
|
+
### Improved
|
|
219
|
+
|
|
220
|
+
- Path handling is now more robust and user-friendly
|
|
221
|
+
- Better error messages for path-related issues
|
|
222
|
+
- Clearer documentation and examples
|
|
223
|
+
|
|
224
|
+
### Examples
|
|
225
|
+
|
|
226
|
+
```bash
|
|
227
|
+
# Absolute paths without context repo
|
|
228
|
+
npx gaia-init --non-interactive \
|
|
229
|
+
--gitops /home/user/project/gitops \
|
|
230
|
+
--terraform /home/user/project/terraform \
|
|
231
|
+
--app-services /home/user/project/services
|
|
232
|
+
|
|
233
|
+
# Absolute paths with context repo
|
|
234
|
+
npx gaia-init --non-interactive \
|
|
235
|
+
--gitops /path/to/gitops \
|
|
236
|
+
--terraform /path/to/terraform \
|
|
237
|
+
--project-context-repo git@bitbucket.org:org/repo.git
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
---
|
|
241
|
+
|
|
144
242
|
## [2.3.0] - 2025-11-11
|
|
145
243
|
|
|
146
244
|
### Added - Phase 0 Clarification Module
|
|
245
|
+
|
|
147
246
|
- **NEW:** `tools/clarification/` module for intelligent ambiguity detection before routing
|
|
148
247
|
- `clarification/engine.py`: Core clarification engine (refactored from clarify_engine.py)
|
|
149
248
|
- `clarification/patterns.py`: Ambiguity detection patterns (ServiceAmbiguityPattern, NamespaceAmbiguityPattern, etc.)
|
|
@@ -156,6 +255,7 @@ manager = EnhancedConversationManager()
|
|
|
156
255
|
- **Clarification metrics** to Key System Metrics (target: 20-30% clarification rate)
|
|
157
256
|
|
|
158
257
|
### Changed - Module Restructuring (BREAKING)
|
|
258
|
+
|
|
159
259
|
- **BREAKING:** `clarify_engine.py` and `clarify_patterns.py` moved to `clarification/` module
|
|
160
260
|
- **Old imports:** `from clarify_engine import request_clarification`
|
|
161
261
|
- **New imports:** `from clarification import execute_workflow, request_clarification`
|
|
@@ -166,17 +266,13 @@ manager = EnhancedConversationManager()
|
|
|
166
266
|
- Service metadata now shows only static information: `tech_stack | namespace | port`
|
|
167
267
|
|
|
168
268
|
### Fixed
|
|
269
|
+
|
|
169
270
|
- Import paths in `tests/tools/test_clarify_engine.py` updated to new module structure
|
|
170
271
|
- Service metadata test updated to reflect removal of dynamic status field
|
|
171
272
|
- All 20 unit tests passing with new module structure
|
|
172
273
|
|
|
173
|
-
### Documentation
|
|
174
|
-
- Added comprehensive Phase 0 implementation guide
|
|
175
|
-
- Added troubleshooting guide for clarification system
|
|
176
|
-
- Updated speckit.specify.md with Phase 0 workflow integration
|
|
177
|
-
- Added Protocol G diagnostic steps in gaia.md
|
|
178
|
-
|
|
179
274
|
### Migration Guide for v2.3.0
|
|
275
|
+
|
|
180
276
|
```python
|
|
181
277
|
# Before (v2.2.x)
|
|
182
278
|
from clarify_engine import request_clarification, process_clarification
|
|
@@ -189,41 +285,48 @@ result = execute_workflow(user_prompt)
|
|
|
189
285
|
enriched_prompt = result["enriched_prompt"]
|
|
190
286
|
```
|
|
191
287
|
|
|
288
|
+
---
|
|
289
|
+
|
|
192
290
|
## [2.2.3] - 2025-11-11
|
|
193
291
|
|
|
194
292
|
### Fixed - Deterministic Project Context Location
|
|
293
|
+
|
|
195
294
|
- **context_provider.py**
|
|
196
295
|
- Always reads `.claude/project-context/project-context.json` (no fallback to legacy paths)
|
|
197
296
|
- Removed legacy auto-detection logic and unused imports
|
|
198
|
-
- Prevents
|
|
297
|
+
- Prevents "Context file not found" errors when projects only use the new structure
|
|
199
298
|
- **templates/CLAUDE.template.md**
|
|
200
299
|
- Rule 1 clarifies when to delegate vs. self-execute
|
|
201
300
|
- Rule 2 explicitly documents the `context_provider.py --context-file .claude/project-context/project-context.json …` invocation
|
|
202
301
|
- Workflow summary now references orchestration docs after the table (cleaner render)
|
|
203
302
|
|
|
204
303
|
### Changed - CLI Documentation & Version Alignment
|
|
304
|
+
|
|
205
305
|
- **README.md / README.en.md**
|
|
206
306
|
- Documented the exact `npx` commands (`npx gaia-init` / `npx @jaguilar87/gaia-ops`) and clarified installation steps
|
|
207
|
-
- Updated
|
|
307
|
+
- Updated "Current version" badges to **2.2.3**
|
|
208
308
|
- **package.json**
|
|
209
309
|
- Bumped package version to `2.2.3`
|
|
210
310
|
|
|
211
311
|
### Benefits
|
|
212
|
-
|
|
213
|
-
-
|
|
214
|
-
-
|
|
312
|
+
|
|
313
|
+
- No manual tweaks needed to point `context_provider.py` at the correct project context
|
|
314
|
+
- CLAUDE template now tells the orchestrator exactly how to invoke the context provider
|
|
315
|
+
- README instructions reflect the real CLI entry points, reducing confusion for new installs
|
|
215
316
|
|
|
216
317
|
---
|
|
217
318
|
|
|
218
319
|
## [2.2.2] - 2025-11-11
|
|
219
320
|
|
|
220
321
|
### Added - Pre-generated Semantic Embeddings
|
|
322
|
+
|
|
221
323
|
- **NEW:** Included pre-generated intent embeddings in package (74KB total)
|
|
222
324
|
- `config/intent_embeddings.json` (55KB) - Semantic vectors for intent matching
|
|
223
325
|
- `config/intent_embeddings.npy` (19KB) - Binary embeddings for fast loading
|
|
224
326
|
- `config/embeddings_info.json` (371B) - Metadata about embeddings
|
|
225
327
|
|
|
226
328
|
### Changed - Semantic Routing Now Works Out-of-the-Box
|
|
329
|
+
|
|
227
330
|
- **Semantic matching enabled by default:** No manual setup required
|
|
228
331
|
- **Routing accuracy improved:** Ambiguous queries now route correctly using semantic similarity
|
|
229
332
|
- **Example improvement:**
|
|
@@ -234,6 +337,7 @@ enriched_prompt = result["enriched_prompt"]
|
|
|
234
337
|
```
|
|
235
338
|
|
|
236
339
|
### Fixed - Directory Structure Consistency
|
|
340
|
+
|
|
237
341
|
- **Consolidated `configs/` into `config/`:** All configuration and data files now in single directory
|
|
238
342
|
- **Updated tool references:**
|
|
239
343
|
- `tools/semantic_matcher.py`: Updated embeddings path (configs/ → config/)
|
|
@@ -241,6 +345,7 @@ enriched_prompt = result["enriched_prompt"]
|
|
|
241
345
|
- All documentation updated to reference correct paths
|
|
242
346
|
|
|
243
347
|
### Fixed - Test Suite (254 tests, 100% passing)
|
|
348
|
+
|
|
244
349
|
- **tests/system/test_configuration_files.py:**
|
|
245
350
|
- Updated to validate `templates/settings.template.json` (package contains template, not installed settings.json)
|
|
246
351
|
- Tests now reflect npm package structure instead of installed project structure
|
|
@@ -265,33 +370,20 @@ enriched_prompt = result["enriched_prompt"]
|
|
|
265
370
|
- Better error messages: "ERROR: Invalid agent" instead of "Warning: No contract found"
|
|
266
371
|
|
|
267
372
|
### Benefits
|
|
268
|
-
|
|
269
|
-
-
|
|
270
|
-
-
|
|
271
|
-
-
|
|
272
|
-
-
|
|
273
|
-
-
|
|
274
|
-
|
|
275
|
-
### Technical Details
|
|
276
|
-
```
|
|
277
|
-
config/ directory now contains:
|
|
278
|
-
├── Documentation (markdown)
|
|
279
|
-
│ ├── AGENTS.md, agent-catalog.md, context-contracts.md
|
|
280
|
-
│ ├── git-standards.md, orchestration-workflow.md
|
|
281
|
-
├── Provider Contracts (JSON)
|
|
282
|
-
│ ├── context-contracts.gcp.json, context-contracts.aws.json
|
|
283
|
-
│ └── git_standards.json
|
|
284
|
-
└── Semantic Embeddings (JSON + binary) ← NEW
|
|
285
|
-
├── intent_embeddings.json
|
|
286
|
-
├── intent_embeddings.npy
|
|
287
|
-
└── embeddings_info.json
|
|
288
|
-
```
|
|
373
|
+
|
|
374
|
+
- Zero configuration: Semantic routing works immediately after installation
|
|
375
|
+
- Better routing: Handles ambiguous queries with 6x higher confidence
|
|
376
|
+
- Consistent structure: All config files in one place (`config/`)
|
|
377
|
+
- Smaller package: Embeddings optimized for size (74KB vs 5MB unoptimized)
|
|
378
|
+
- Regeneration optional: Users can regenerate with `python3 .claude/tools/generate_embeddings.py` if needed
|
|
379
|
+
- Test coverage: 254 tests passing (0 failures)
|
|
289
380
|
|
|
290
381
|
---
|
|
291
382
|
|
|
292
383
|
## [2.2.1] - 2025-11-10
|
|
293
384
|
|
|
294
385
|
### Fixed - Documentation Consistency
|
|
386
|
+
|
|
295
387
|
- **README.md & README.en.md:**
|
|
296
388
|
- Updated version numbers from 2.1.0 → 2.2.0
|
|
297
389
|
- Corrected package structure (hooks/, templates/, commands/)
|
|
@@ -343,17 +435,19 @@ config/ directory now contains:
|
|
|
343
435
|
- Complete branding consistency: package name, agent name, and command name all use "gaia"
|
|
344
436
|
|
|
345
437
|
### Benefits
|
|
346
|
-
|
|
347
|
-
-
|
|
348
|
-
-
|
|
349
|
-
-
|
|
350
|
-
-
|
|
438
|
+
|
|
439
|
+
- Accurate documentation: All paths and structures match actual package contents
|
|
440
|
+
- No broken links: References point to existing files
|
|
441
|
+
- Clear API: Deprecated functions clearly marked
|
|
442
|
+
- User trust: Documentation matches reality
|
|
443
|
+
- npm test passes: No false failures
|
|
351
444
|
|
|
352
445
|
---
|
|
353
446
|
|
|
354
447
|
## [2.2.0] - 2025-11-10
|
|
355
448
|
|
|
356
449
|
### Added - Unified Settings Template & Auto-Installation
|
|
450
|
+
|
|
357
451
|
- **NEW:** Created unified `templates/settings.template.json` (214 lines)
|
|
358
452
|
- Merged functionality from `settings.json` + `settings.local.json`
|
|
359
453
|
- Includes all hooks (PreToolUse, PostToolUse, SubagentStop)
|
|
@@ -367,6 +461,7 @@ config/ directory now contains:
|
|
|
367
461
|
- Projects get complete settings from day 1
|
|
368
462
|
|
|
369
463
|
### Removed - Dead Code Elimination
|
|
464
|
+
|
|
370
465
|
- **CLAUDE.md** from package root (only template exists now)
|
|
371
466
|
- **templates/code-examples/** (321 lines - never imported or executed)
|
|
372
467
|
- `commit_validation.py`
|
|
@@ -377,6 +472,7 @@ config/ directory now contains:
|
|
|
377
472
|
- **package.json:** Removed `CLAUDE.md` from files array
|
|
378
473
|
|
|
379
474
|
### Changed - Package Consistency
|
|
475
|
+
|
|
380
476
|
- **templates/CLAUDE.template.md:**
|
|
381
477
|
- Updated all references: `.claude/docs/` → `.claude/config/`
|
|
382
478
|
- Updated package name: `@aaxis/claude-agents` → `@jaguilar87/gaia-ops`
|
|
@@ -395,30 +491,26 @@ config/ directory now contains:
|
|
|
395
491
|
- Clarified symlink architecture and layout
|
|
396
492
|
|
|
397
493
|
### Improved - Package Quality
|
|
494
|
+
|
|
398
495
|
- **Reduced template bloat by 57%:** 882 lines → 378 lines (504 lines removed)
|
|
399
496
|
- **Single source of truth:** One settings template instead of scattered config
|
|
400
497
|
- **Cleaner architecture:** Only actual templates remain in `templates/`
|
|
401
498
|
- **Better defaults:** Projects start with complete, production-ready settings
|
|
402
499
|
|
|
403
500
|
### Benefits
|
|
404
|
-
- ✅ **Unified configuration:** Everything in one settings.json file
|
|
405
|
-
- ✅ **Automatic setup:** No manual settings configuration needed
|
|
406
|
-
- ✅ **Smaller package:** 57% reduction in template code
|
|
407
|
-
- ✅ **Flexibility maintained:** Users can still create `settings.local.json` for overrides
|
|
408
|
-
- ✅ **Package consistency:** All references use correct package name
|
|
409
501
|
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
```
|
|
502
|
+
- Unified configuration: Everything in one settings.json file
|
|
503
|
+
- Automatic setup: No manual settings configuration needed
|
|
504
|
+
- Smaller package: 57% reduction in template code
|
|
505
|
+
- Flexibility maintained: Users can still create `settings.local.json` for overrides
|
|
506
|
+
- Package consistency: All references use correct package name
|
|
416
507
|
|
|
417
508
|
---
|
|
418
509
|
|
|
419
510
|
## [2.1.0] - 2025-11-10
|
|
420
511
|
|
|
421
512
|
### Added - Provider-Specific Context Contracts
|
|
513
|
+
|
|
422
514
|
- **NEW:** Created separate contract files per cloud provider
|
|
423
515
|
- `config/context-contracts.gcp.json` - GCP-specific contracts
|
|
424
516
|
- `config/context-contracts.aws.json` - AWS-specific contracts
|
|
@@ -435,6 +527,7 @@ templates/
|
|
|
435
527
|
- `tests/fixtures/project-context.aws.json`
|
|
436
528
|
|
|
437
529
|
### Changed
|
|
530
|
+
|
|
438
531
|
- **Context Provider:** Updated `tools/context_provider.py`
|
|
439
532
|
- Added `detect_cloud_provider()` function
|
|
440
533
|
- Added `load_provider_contracts()` function
|
|
@@ -457,33 +550,25 @@ templates/
|
|
|
457
550
|
- Version bumped to 2.1.0
|
|
458
551
|
|
|
459
552
|
### Benefits
|
|
460
|
-
- ✅ **Clarity:** Field names match cloud provider terminology
|
|
461
|
-
- ✅ **Simplicity:** No complex conditional validation logic in agents
|
|
462
|
-
- ✅ **Extensibility:** Adding Azure = create one JSON file (15 minutes)
|
|
463
|
-
- ✅ **Agents Stay Agnostic:** Agents use pattern discovery, don't need provider logic
|
|
464
|
-
- ✅ **Single Source of Truth:** Orchestrator selects the right contract
|
|
465
553
|
|
|
466
|
-
|
|
467
|
-
-
|
|
468
|
-
-
|
|
469
|
-
-
|
|
554
|
+
- Clarity: Field names match cloud provider terminology
|
|
555
|
+
- Simplicity: No complex conditional validation logic in agents
|
|
556
|
+
- Extensibility: Adding Azure = create one JSON file (15 minutes)
|
|
557
|
+
- Agents Stay Agnostic: Agents use pattern discovery, don't need provider logic
|
|
558
|
+
- Single Source of Truth: Orchestrator selects the right contract
|
|
470
559
|
|
|
471
|
-
###
|
|
472
|
-
```python
|
|
473
|
-
# Before (v2.0.0):
|
|
474
|
-
contract_keys = AGENT_CONTRACTS[agent_name] # Hardcoded
|
|
560
|
+
### Backward Compatibility
|
|
475
561
|
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
contract_keys = contracts["agents"][agent_name]["required"] # Provider-specific
|
|
480
|
-
```
|
|
562
|
+
- Legacy support maintained: If provider-specific contracts don't exist, falls back to hardcoded contracts
|
|
563
|
+
- Existing projects: Continue to work without changes
|
|
564
|
+
- Migration: Optional, but recommended for clarity
|
|
481
565
|
|
|
482
566
|
---
|
|
483
567
|
|
|
484
568
|
## [1.4.0] - 2025-11-10
|
|
485
569
|
|
|
486
570
|
### Changed - BREAKING: Complete Installer Redesign
|
|
571
|
+
|
|
487
572
|
- **NEW FLOW:** Directories first, context second (much more logical!)
|
|
488
573
|
1. Ask for directories (gitops, terraform, app-services) - ALWAYS
|
|
489
574
|
2. Ask for project context repo - OPTIONAL
|
|
@@ -491,75 +576,66 @@ contract_keys = contracts["agents"][agent_name]["required"] # Provider-specific
|
|
|
491
576
|
4. If YES context: Use that configuration and done!
|
|
492
577
|
|
|
493
578
|
### Improved
|
|
579
|
+
|
|
494
580
|
- **Clearer Purpose:** Context repo is now clearly optional
|
|
495
581
|
- **Better Fallback:** If no context exists, creates a basic one with minimal info
|
|
496
582
|
- **All Fields Optional:** Can leave everything empty if you don't know yet
|
|
497
583
|
- **Logical Order:** Ask for what you always need first (paths), then optional context
|
|
498
584
|
|
|
499
|
-
### Benefits
|
|
500
|
-
- Makes sense for new projects (no context yet)
|
|
501
|
-
- Makes sense for existing projects (have context)
|
|
502
|
-
- Directories are always the starting point (local to project)
|
|
503
|
-
- Context comes second (can be shared across projects)
|
|
504
|
-
|
|
505
585
|
---
|
|
506
586
|
|
|
507
587
|
## [1.3.6] - 2025-11-10
|
|
508
588
|
|
|
509
589
|
### Fixed
|
|
590
|
+
|
|
510
591
|
- **Installer:** Skip questions when project context already has the answers
|
|
511
592
|
- **Smart Detection:** Only ask what's missing or needs confirmation (paths)
|
|
512
593
|
- **User Experience:** Show config summary when context is loaded
|
|
513
594
|
- **Directory Creation:** Auto-create missing directories without prompting
|
|
514
595
|
|
|
515
596
|
### Changed
|
|
597
|
+
|
|
516
598
|
- When project context loads successfully, only asks to confirm/adjust paths
|
|
517
599
|
- Cloud provider, credentials, region, and cluster name auto-applied from context
|
|
518
600
|
- Clearer feedback showing what was loaded from project context
|
|
519
601
|
- Missing directories (gitops, terraform, app-services) now created automatically
|
|
520
602
|
|
|
521
|
-
### Improved
|
|
522
|
-
- Eliminates ALL redundant questions when context exists
|
|
523
|
-
- Better UX: "Here's what we loaded, just confirm the paths"
|
|
524
|
-
- Faster setup for teams with complete project contexts
|
|
525
|
-
- No interruptions for directory creation confirmations
|
|
526
|
-
|
|
527
603
|
---
|
|
528
604
|
|
|
529
605
|
## [1.3.5] - 2025-11-10
|
|
530
606
|
|
|
531
607
|
### Added
|
|
608
|
+
|
|
532
609
|
- **Smart Installer Flow:** Project context repo now asked FIRST, with auto-population of all config
|
|
533
610
|
- **Input Sanitization:** Handles "git clone <url>" pastes automatically (extracts just URL)
|
|
534
611
|
- **Auto-Configuration:** Parses project-context.json and pre-fills all wizard questions
|
|
535
612
|
- **Better Error Messages:** Clear troubleshooting tips for git clone failures (SSH keys, access, URL)
|
|
536
613
|
|
|
537
614
|
### Changed
|
|
615
|
+
|
|
538
616
|
- **Wizard Question Order:** Project context moved from last to first question
|
|
539
617
|
- **User Experience:** Reduced manual input when project context exists
|
|
540
618
|
- **Clone Strategy:** Validates project context early, then sets up in final location
|
|
541
619
|
- **Error Handling:** Installation continues even if project context clone fails
|
|
542
620
|
|
|
543
|
-
### Improved
|
|
544
|
-
- Eliminates typos and configuration errors by pre-filling from existing context
|
|
545
|
-
- Saves time for users with existing project-context repos
|
|
546
|
-
- Better guidance when git operations fail
|
|
547
|
-
|
|
548
621
|
---
|
|
549
622
|
|
|
550
623
|
## [1.3.4] - 2025-11-10
|
|
551
624
|
|
|
552
625
|
### Fixed
|
|
626
|
+
|
|
553
627
|
- **Installer:** Removed incorrect AGENTS.md symlink creation in project root during installation
|
|
554
628
|
- **Documentation:** AGENTS.md now only accessible via `.claude/config/AGENTS.md` as intended
|
|
555
629
|
- **Package Quality:** Excluded Python cache files (`__pycache__/`) from published package
|
|
556
630
|
|
|
557
631
|
### Changed
|
|
632
|
+
|
|
558
633
|
- **README.md:** Updated project structure documentation to reflect correct AGENTS.md location
|
|
559
634
|
- **README.en.md:** Updated project structure and corrected package references
|
|
560
635
|
- **Package Size:** Reduced from 911.7 kB (93 files) to 660.7 kB (77 files) - 27% reduction
|
|
561
636
|
|
|
562
637
|
### Added
|
|
638
|
+
|
|
563
639
|
- **Package Metadata:** Added `homepage` and `bugs` fields to package.json for better npm discovery
|
|
564
640
|
- **Badges:** Added npm version, license, and Node.js version badges to README files
|
|
565
641
|
- **CI/CD:** Created GitHub Actions workflow for automated npm publishing
|
|
@@ -567,242 +643,6 @@ contract_keys = contracts["agents"][agent_name]["required"] # Provider-specific
|
|
|
567
643
|
- **Cleanup Script:** Added `npm run clean` to remove Python cache files automatically
|
|
568
644
|
- **Pre-publish Hook:** Added `prepublishOnly` script for automatic cleanup before publishing
|
|
569
645
|
|
|
570
|
-
### Package Quality Improvements
|
|
571
|
-
- Better npm package metadata for discoverability
|
|
572
|
-
- Professional badges in documentation
|
|
573
|
-
- Automated publishing workflow
|
|
574
|
-
- Cleaner package distribution (no cache files)
|
|
575
|
-
- Improved documentation consistency
|
|
576
|
-
|
|
577
|
-
---
|
|
578
|
-
|
|
579
|
-
## [2.1.0] - 2025-11-07
|
|
580
|
-
|
|
581
|
-
### Changed
|
|
582
|
-
|
|
583
|
-
- **Optimized CLAUDE.md verbosity:** Further reduced from 195 lines to 154 lines (21% additional reduction)
|
|
584
|
-
- **Converted narrative to rules format:** All sections now use Rule X.Y [Priority] format for clarity
|
|
585
|
-
- **Implemented numeric priority system:** `[P0]` (critical), `[P1]` (important) for better emphasis
|
|
586
|
-
- **Reduced Python code blocks:** Removed verbose code examples, replaced with concise function references
|
|
587
|
-
- **Optimized sections:**
|
|
588
|
-
- Core Operating Principles: Narrative → Rules 1.0-4.0
|
|
589
|
-
- Orchestrator Workflow: Narrative → Rule 5.0-5.1 with table format
|
|
590
|
-
- Git Operations: Narrative → Rules 6.0-6.1 with table format
|
|
591
|
-
- Common Anti-Patterns: Lists → Rule 7.0 with comparison table
|
|
592
|
-
|
|
593
|
-
### Added
|
|
594
|
-
|
|
595
|
-
- **Code examples in templates:** Created `.claude/templates/code-examples/` with:
|
|
596
|
-
- `commit_validation.py` (86 lines) - Complete commit validation patterns
|
|
597
|
-
- `clarification_workflow.py` (94 lines) - Phase 0 clarification examples
|
|
598
|
-
- `approval_gate_workflow.py` (141 lines) - Phase 4 approval gate examples
|
|
599
|
-
- **Rule numbering system:** Rules 1.0-7.0 for easy reference and navigation
|
|
600
|
-
- **Priority indicators:** `[P0]` for critical rules, `[P1]` for important rules
|
|
601
|
-
|
|
602
|
-
### Improved
|
|
603
|
-
|
|
604
|
-
- **Token efficiency:** Additional 25% reduction (1,900 → ~1,450 tokens)
|
|
605
|
-
- **Scannability:** Table format for workflows, commit rules, anti-patterns
|
|
606
|
-
- **Conciseness:** Removed redundant explanations, kept essential info
|
|
607
|
-
- **Maintainability:** Code examples separate from core instructions
|
|
608
|
-
|
|
609
|
-
---
|
|
610
|
-
|
|
611
|
-
## [2.0.0] - 2025-11-07
|
|
612
|
-
|
|
613
|
-
### Changed (BREAKING)
|
|
614
|
-
|
|
615
|
-
- **Refactored to modular structure:** Split 380-line monolith into:
|
|
616
|
-
- `CLAUDE.md` (core instructions, 196 lines)
|
|
617
|
-
- `.claude/docs/orchestration-workflow.md` (phases 0-6, ~550 lines)
|
|
618
|
-
- `.claude/docs/git-standards.md` (complete git specification, ~450 lines)
|
|
619
|
-
- `.claude/docs/context-contracts.md` (agent contracts, ~400 lines)
|
|
620
|
-
- `.claude/docs/agent-catalog.md` (agent capabilities, ~550 lines)
|
|
621
|
-
|
|
622
|
-
- **Updated Core Operating Principles:**
|
|
623
|
-
- Changed Principle #1 from "ZERO Direct Execution" to "Selective Delegation (Context-Aware)"
|
|
624
|
-
- Clarified that orchestrator CAN execute SIMPLE operations (commits, file edits, queries)
|
|
625
|
-
- Clarified that orchestrator MUST delegate COMPLEX workflows (infrastructure, deployments)
|
|
626
|
-
|
|
627
|
-
### Added
|
|
628
|
-
|
|
629
|
-
- **Frontmatter with metadata:**
|
|
630
|
-
- Version: 2.0.0
|
|
631
|
-
- Last updated date
|
|
632
|
-
- Maintainer info
|
|
633
|
-
- Changelog reference
|
|
634
|
-
|
|
635
|
-
- **Git Operations section:**
|
|
636
|
-
- Clear distinction between orchestrator-level commits (simple, ad-hoc) and agent-level commits (complex workflows)
|
|
637
|
-
- Table of "Distinction Rules" showing which handler (orchestrator or agent) for each scenario
|
|
638
|
-
- Universal validation requirement (`commit_validator.py`) for both orchestrator and agents
|
|
639
|
-
|
|
640
|
-
- **References section:**
|
|
641
|
-
- Links to all modular docs (`.claude/docs/*.md`)
|
|
642
|
-
- Links to code examples (`.claude/templates/code-examples/`)
|
|
643
|
-
|
|
644
|
-
- **System Paths section:**
|
|
645
|
-
- Centralized list of all system paths (agent system, tools, logs, tests, project SSOT)
|
|
646
|
-
|
|
647
|
-
- **Common Anti-Patterns section:**
|
|
648
|
-
- DON'T list (skip approval gate, use context_provider for meta-agents, etc.)
|
|
649
|
-
- DO list (route tasks, use AskUserQuestion, update SSOT, etc.)
|
|
650
|
-
|
|
651
|
-
### Improved
|
|
652
|
-
|
|
653
|
-
- **Token efficiency:** Reduced from ~3,800 tokens to ~1,500 tokens (60% reduction)
|
|
654
|
-
- **Navigability:** Clear section structure with references to detailed docs
|
|
655
|
-
- **Mantenibility:** Changes to git standards, workflows, or contracts don't require editing CLAUDE.md
|
|
656
|
-
- **Clarity:** Explicit distinction between project agents and meta-agents
|
|
657
|
-
|
|
658
|
-
### Removed
|
|
659
|
-
|
|
660
|
-
- **Detailed Phase 0-6 workflows:** Moved to `.claude/docs/orchestration-workflow.md`
|
|
661
|
-
- **Complete git standards:** Moved to `.claude/docs/git-standards.md`
|
|
662
|
-
- **Full context contracts:** Moved to `.claude/docs/context-contracts.md`
|
|
663
|
-
- **Detailed agent capabilities:** Moved to `.claude/docs/agent-catalog.md`
|
|
664
|
-
- **Code examples:** Moved to `.claude/templates/code-examples/`
|
|
665
|
-
|
|
666
|
-
---
|
|
667
|
-
|
|
668
|
-
## [1.4.x] - 2025-11-01 to 2025-11-06
|
|
669
|
-
|
|
670
|
-
### Added
|
|
671
|
-
|
|
672
|
-
- **Phase 0: Intelligent Clarification** (NEW)
|
|
673
|
-
- `clarify_engine.py` integration for ambiguity detection
|
|
674
|
-
- Dynamic questions with options from `project-context.json`
|
|
675
|
-
- Enriched prompt generation for better routing accuracy
|
|
676
|
-
|
|
677
|
-
- **Phase 6: System State Update**
|
|
678
|
-
- Mandatory SSOT updates after realization
|
|
679
|
-
- `TaskManager` integration for `tasks.md` updates (handles >25K tokens)
|
|
680
|
-
- Infrastructure state updates (`project-context.json`)
|
|
681
|
-
|
|
682
|
-
### Changed
|
|
683
|
-
|
|
684
|
-
- **Phase 4: Approval Gate** made MANDATORY (enforced with validation logic)
|
|
685
|
-
- **Phase 5: Realization** requires `validation["approved"] == True` (cannot skip)
|
|
686
|
-
|
|
687
|
-
---
|
|
688
|
-
|
|
689
|
-
## [1.3.x] - 2025-10-15 to 2025-10-31
|
|
690
|
-
|
|
691
|
-
### Added
|
|
692
|
-
|
|
693
|
-
- **Git Commit Standards:**
|
|
694
|
-
- `commit_validator.py` integration (mandatory validation)
|
|
695
|
-
- Conventional Commits format enforcement
|
|
696
|
-
- Forbidden footers (Claude Code attribution)
|
|
697
|
-
- Violations logging to `.claude/logs/commit-violations.jsonl`
|
|
698
|
-
|
|
699
|
-
- **Context Contracts:**
|
|
700
|
-
- Defined minimum context payload for each agent
|
|
701
|
-
- `context_provider.py` as SSOT for context generation
|
|
702
|
-
|
|
703
|
-
### Changed
|
|
704
|
-
|
|
705
|
-
- **Core Principle #4:** Clarified two-phase workflow (Planning → Approval → Realization)
|
|
706
|
-
|
|
707
|
-
---
|
|
708
|
-
|
|
709
|
-
## [1.2.x] - 2025-09-20 to 2025-10-14
|
|
710
|
-
|
|
711
|
-
### Added
|
|
712
|
-
|
|
713
|
-
- **Agent System Overview:**
|
|
714
|
-
- Distinction between Project Agents (use `context_provider.py`) and Meta-Agents (manual context)
|
|
715
|
-
- Security tiers (T0-T3) for operations
|
|
716
|
-
- Agent capabilities and tools
|
|
717
|
-
|
|
718
|
-
### Changed
|
|
719
|
-
|
|
720
|
-
- **Orchestrator Workflow:** Simplified to 5 phases (before Phase 0 was added later)
|
|
721
|
-
|
|
722
|
-
---
|
|
723
|
-
|
|
724
|
-
## [1.1.x] - 2025-08-15 to 2025-09-19
|
|
725
|
-
|
|
726
|
-
### Added
|
|
727
|
-
|
|
728
|
-
- **Execution Standards:**
|
|
729
|
-
- Use native tools over bash redirections
|
|
730
|
-
- Execute simple commands (not chained with `&&`)
|
|
731
|
-
- Permission priority rules
|
|
732
|
-
|
|
733
|
-
### Changed
|
|
734
|
-
|
|
735
|
-
- **Language Policy:** Separated technical docs (English) from chat interactions (Spanish)
|
|
736
|
-
|
|
737
|
-
---
|
|
738
|
-
|
|
739
|
-
## [1.0.0] - 2025-08-01
|
|
740
|
-
|
|
741
|
-
### Added
|
|
742
|
-
|
|
743
|
-
- **Initial CLAUDE.md structure:**
|
|
744
|
-
- Language Policy
|
|
745
|
-
- Core Operating Principles (ZERO Direct Execution, Delegate to Specialists, Master of Context)
|
|
746
|
-
- Basic workflow (Analysis → Context → Invocation → Verification)
|
|
747
|
-
- Agent list with roles
|
|
748
|
-
|
|
749
|
-
---
|
|
750
|
-
|
|
751
|
-
## Future (Planned)
|
|
752
|
-
|
|
753
|
-
### Version 2.1.0 (Planned Q1 2026)
|
|
754
|
-
|
|
755
|
-
- **Improved routing:** Machine learning-based agent selection
|
|
756
|
-
- **Enhanced clarification:** Proactive clarification based on user history
|
|
757
|
-
- **Performance metrics:** Track token usage, latency, success rates per agent
|
|
758
|
-
|
|
759
|
-
### Version 2.2.0 (Planned Q2 2026)
|
|
760
|
-
|
|
761
|
-
- **Multi-agent coordination:** Support for workflows requiring multiple agents (e.g., terraform + gitops)
|
|
762
|
-
- **Rollback automation:** Automatic rollback on failed verifications
|
|
763
|
-
- **Enhanced observability:** Real-time workflow visualization
|
|
764
|
-
|
|
765
|
-
### Version 3.0.0 (Planned Q3 2026 - BREAKING)
|
|
766
|
-
|
|
767
|
-
- **Agent auto-discovery:** Agents register themselves via manifest files
|
|
768
|
-
- **Dynamic contract negotiation:** Agents specify required context dynamically
|
|
769
|
-
- **Plugin system:** Third-party agents can be added without modifying CLAUDE.md
|
|
770
|
-
|
|
771
|
-
---
|
|
772
|
-
|
|
773
|
-
## Migration Guide
|
|
774
|
-
|
|
775
|
-
### Migrating from 1.x to 2.0
|
|
776
|
-
|
|
777
|
-
**What changed:**
|
|
778
|
-
|
|
779
|
-
1. **CLAUDE.md is now modular:**
|
|
780
|
-
- The file is 196 lines instead of 380 lines
|
|
781
|
-
- Detailed docs moved to `.claude/docs/*.md`
|
|
782
|
-
|
|
783
|
-
2. **Core Principle #1 updated:**
|
|
784
|
-
- OLD: "ZERO Direct Execution" (orchestrator never executes technical work)
|
|
785
|
-
- NEW: "Selective Delegation" (orchestrator executes SIMPLE ops, delegates COMPLEX workflows)
|
|
786
|
-
|
|
787
|
-
3. **Git operations clarified:**
|
|
788
|
-
- Orchestrator CAN do ad-hoc commits ("commitea los cambios")
|
|
789
|
-
- Agents do commits as part of realization workflows
|
|
790
|
-
- Both MUST use `commit_validator.py`
|
|
791
|
-
|
|
792
|
-
**Breaking changes:**
|
|
793
|
-
|
|
794
|
-
- None (backward compatible). Orchestrator behavior remains the same, only documentation structure changed.
|
|
795
|
-
|
|
796
|
-
**Action required:**
|
|
797
|
-
|
|
798
|
-
- None. System continues to work as before.
|
|
799
|
-
|
|
800
|
-
**Recommended:**
|
|
801
|
-
|
|
802
|
-
- Read `.claude/config/orchestration-workflow.md` to understand full Phase 0-6 workflow
|
|
803
|
-
- Review `.claude/config/git-standards.md` for complete commit standards
|
|
804
|
-
- Check `.claude/config/agent-catalog.md` for detailed agent capabilities
|
|
805
|
-
|
|
806
646
|
---
|
|
807
647
|
|
|
808
648
|
## Versioning Policy
|
|
@@ -822,56 +662,6 @@ contract_keys = contracts["agents"][agent_name]["required"] # Provider-specific
|
|
|
822
662
|
|
|
823
663
|
---
|
|
824
664
|
|
|
825
|
-
## Contributing
|
|
826
|
-
|
|
827
|
-
### How to Update CLAUDE.md
|
|
828
|
-
|
|
829
|
-
1. **For small changes (typos, clarifications):**
|
|
830
|
-
- Edit `CLAUDE.md` directly
|
|
831
|
-
- Increment PATCH version in frontmatter
|
|
832
|
-
- Add entry to this CHANGELOG under "Unreleased"
|
|
833
|
-
|
|
834
|
-
2. **For new sections or features:**
|
|
835
|
-
- Decide if belongs in `CLAUDE.md` (core instructions) or `.claude/config/*.md` (details)
|
|
836
|
-
- If modular doc, create/update appropriate file in `.claude/config/`
|
|
837
|
-
- If core instruction, update `CLAUDE.md` and add reference to modular doc
|
|
838
|
-
- Increment MINOR version in frontmatter
|
|
839
|
-
- Add entry to this CHANGELOG under "Unreleased"
|
|
840
|
-
|
|
841
|
-
3. **For breaking changes:**
|
|
842
|
-
- Discuss with team first (impacts orchestrator behavior)
|
|
843
|
-
- Update `CLAUDE.md` and related docs
|
|
844
|
-
- Increment MAJOR version in frontmatter
|
|
845
|
-
- Add entry to this CHANGELOG under "Unreleased" with **BREAKING** tag
|
|
846
|
-
- Create migration guide if needed
|
|
847
|
-
|
|
848
|
-
### Testing Changes
|
|
849
|
-
|
|
850
|
-
Before committing changes to CLAUDE.md:
|
|
851
|
-
|
|
852
|
-
1. **Run validation script:**
|
|
853
|
-
```bash
|
|
854
|
-
python3 .claude/scripts/validate-claude-md.py
|
|
855
|
-
```
|
|
856
|
-
|
|
857
|
-
2. **Check line count:**
|
|
858
|
-
```bash
|
|
859
|
-
wc -l CLAUDE.md
|
|
860
|
-
# Should be < 250 lines
|
|
861
|
-
```
|
|
862
|
-
|
|
863
|
-
3. **Test with orchestrator:**
|
|
864
|
-
- Start Claude Code session
|
|
865
|
-
- Verify CLAUDE.md is loaded correctly
|
|
866
|
-
- Test sample workflows (routing, clarification, approval)
|
|
867
|
-
|
|
868
|
-
4. **Run test suite:**
|
|
869
|
-
```bash
|
|
870
|
-
pytest .claude/tests/ -v
|
|
871
|
-
```
|
|
872
|
-
|
|
873
|
-
---
|
|
874
|
-
|
|
875
665
|
## Maintainers
|
|
876
666
|
|
|
877
667
|
- **Primary:** Jorge Aguilar (jaguilar@aaxis.com)
|