@thierrynakoa/fire-flow 10.0.0 → 12.2.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/.claude-plugin/plugin.json +9 -9
- package/ARCHITECTURE-DIAGRAM.md +7 -4
- package/COMMAND-REFERENCE.md +33 -13
- package/DOMINION-FLOW-OVERVIEW.md +581 -421
- package/QUICK-START.md +3 -3
- package/README.md +102 -45
- package/TROUBLESHOOTING.md +264 -264
- package/agents/fire-executor.md +200 -116
- package/agents/fire-fact-checker.md +276 -276
- package/agents/fire-phoenix-analyst.md +394 -0
- package/agents/fire-planner.md +145 -53
- package/agents/fire-project-researcher.md +155 -155
- package/agents/fire-research-synthesizer.md +166 -166
- package/agents/fire-researcher.md +144 -59
- package/agents/fire-roadmapper.md +215 -203
- package/agents/fire-verifier.md +247 -65
- package/agents/fire-vision-architect.md +381 -0
- package/commands/fire-0-orient.md +476 -476
- package/commands/fire-1a-new.md +216 -0
- package/commands/fire-1b-research.md +210 -0
- package/commands/fire-1c-setup.md +254 -0
- package/commands/{fire-1a-discuss.md → fire-1d-discuss.md} +35 -7
- package/commands/fire-3-execute.md +55 -2
- package/commands/fire-4-verify.md +61 -0
- package/commands/fire-5-handoff.md +2 -2
- package/commands/fire-6-resume.md +37 -2
- package/commands/fire-add-new-skill.md +2 -2
- package/commands/fire-autonomous.md +20 -3
- package/commands/fire-brainstorm.md +1 -1
- package/commands/fire-complete-milestone.md +2 -2
- package/commands/fire-cost.md +183 -0
- package/commands/fire-dashboard.md +2 -2
- package/commands/fire-debug.md +663 -663
- package/commands/fire-loop-resume.md +2 -2
- package/commands/fire-loop-stop.md +1 -1
- package/commands/fire-loop.md +1168 -1168
- package/commands/fire-map-codebase.md +3 -3
- package/commands/fire-new-milestone.md +356 -356
- package/commands/fire-phoenix.md +603 -0
- package/commands/fire-reflect.md +235 -235
- package/commands/fire-research.md +246 -246
- package/commands/fire-search.md +1 -1
- package/commands/fire-skills-diff.md +3 -3
- package/commands/fire-skills-history.md +3 -3
- package/commands/fire-skills-rollback.md +7 -7
- package/commands/fire-skills-sync.md +5 -5
- package/commands/fire-test.md +9 -9
- package/commands/fire-todos.md +1 -1
- package/commands/fire-update.md +5 -5
- package/hooks/hooks.json +16 -16
- package/hooks/run-hook.sh +8 -8
- package/hooks/run-session-end.sh +7 -7
- package/hooks/session-end.sh +90 -90
- package/hooks/session-start.sh +1 -1
- package/package.json +2 -2
- package/plugin.json +7 -7
- package/references/metrics-and-trends.md +1 -1
- package/skills-library/SKILLS-INDEX.md +588 -588
- package/skills-library/_general/methodology/AUTONOMOUS_ORCHESTRATION.md +182 -0
- package/skills-library/_general/methodology/BACKWARD_PLANNING_INTERVIEW.md +307 -0
- package/skills-library/_general/methodology/CIRCUIT_BREAKER_INTELLIGENCE.md +163 -0
- package/skills-library/_general/methodology/CONTEXT_ROTATION.md +151 -0
- package/skills-library/_general/methodology/DEAD_ENDS_SHELF.md +188 -0
- package/skills-library/_general/methodology/DESIGN_PHILOSOPHY_ENFORCEMENT.md +152 -0
- package/skills-library/_general/methodology/INTERNAL_CONSISTENCY_AUDIT.md +212 -0
- package/skills-library/_general/methodology/LIVE_BREADCRUMB_PROTOCOL.md +242 -0
- package/skills-library/_general/methodology/PHOENIX_REBUILD_METHODOLOGY.md +251 -0
- package/skills-library/_general/methodology/QUALITY_GATES_AND_VERIFICATION.md +157 -0
- package/skills-library/_general/methodology/RELIABILITY_PREDICTION.md +104 -0
- package/skills-library/_general/methodology/REQUIREMENTS_DECOMPOSITION.md +155 -0
- package/skills-library/_general/methodology/SELF_TESTING_FEEDBACK_LOOP.md +143 -0
- package/skills-library/_general/methodology/STACK_COMPATIBILITY_MATRIX.md +178 -0
- package/skills-library/_general/methodology/TIERED_CONTEXT_ARCHITECTURE.md +118 -0
- package/skills-library/_general/methodology/ZERO_FRICTION_CLI_SETUP.md +312 -0
- package/skills-library/_general/methodology/autonomous-multi-phase-build.md +133 -0
- package/skills-library/_general/methodology/claude-md-archival.md +280 -0
- package/skills-library/_general/methodology/debug-swarm-researcher-escape-hatch.md +240 -240
- package/skills-library/_general/methodology/git-worktrees-parallel.md +232 -0
- package/skills-library/_general/methodology/llm-judge-memory-crud.md +241 -0
- package/skills-library/_general/methodology/multi-project-autonomous-build.md +360 -0
- package/skills-library/_general/methodology/shell-autonomous-loop-fixplan.md +238 -238
- package/skills-library/_general/patterns-standards/GOF_DESIGN_PATTERNS_FOR_AI_AGENTS.md +358 -0
- package/skills-library/methodology/BREATH_BASED_PARALLEL_EXECUTION.md +1 -1
- package/skills-library/methodology/RESEARCH_BACKED_WORKFLOW_UPGRADE.md +1 -1
- package/skills-library/methodology/SABBATH_REST_PATTERN.md +1 -1
- package/templates/ASSUMPTIONS.md +1 -1
- package/templates/BLOCKERS.md +1 -1
- package/templates/DECISION_LOG.md +1 -1
- package/templates/phase-prompt.md +1 -1
- package/templates/phoenix-comparison.md +80 -0
- package/version.json +2 -2
- package/workflows/handoff-session.md +1 -1
- package/workflows/new-project.md +2 -2
- package/commands/fire-1-new.md +0 -281
package/commands/fire-test.md
CHANGED
|
@@ -37,7 +37,7 @@ End-to-end tests verify each command works in isolation:
|
|
|
37
37
|
|
|
38
38
|
| Test | Command | Verification |
|
|
39
39
|
|------|---------|--------------|
|
|
40
|
-
| 1 | `/fire-
|
|
40
|
+
| 1 | `/fire-1a-new` | Creates correct .planning/ structure with all required files |
|
|
41
41
|
| 2 | `/fire-2-plan` | Generates valid BLUEPRINT.md with skills references and must-haves |
|
|
42
42
|
| 3 | `/fire-3-execute` | Completes breath execution with RECORD.md output |
|
|
43
43
|
| 4 | `/fire-4-verify` | Runs all Must-Haves + WARRIOR validation checks |
|
|
@@ -65,7 +65,7 @@ Step 1: Parse Arguments
|
|
|
65
65
|
└── Validate command name if --command specified
|
|
66
66
|
|
|
67
67
|
Step 2: Create Temp Test Directory
|
|
68
|
-
├── Create isolated test directory: $TEMP/
|
|
68
|
+
├── Create isolated test directory: $TEMP/fire-flow-test-{timestamp}/
|
|
69
69
|
├── Initialize minimal project structure
|
|
70
70
|
├── Copy test fixtures from tests/fixtures/
|
|
71
71
|
└── Set up clean environment variables
|
|
@@ -136,7 +136,7 @@ Step 7: Return Status
|
|
|
136
136
|
|
|
137
137
|
| Status | Test | Duration | Notes |
|
|
138
138
|
|--------|------|----------|-------|
|
|
139
|
-
| [x] | /fire-
|
|
139
|
+
| [x] | /fire-1a-new creates correct structure | 0.5s | |
|
|
140
140
|
| [x] | /fire-2-plan generates valid plans | 0.8s | |
|
|
141
141
|
| [x] | /fire-3-execute completes breaths | 1.2s | |
|
|
142
142
|
| [x] | /fire-4-verify runs all checks | 0.6s | |
|
|
@@ -181,7 +181,7 @@ Fix: [recommended action]
|
|
|
181
181
|
**Test Environment:**
|
|
182
182
|
- OS: [Windows/macOS/Linux]
|
|
183
183
|
- Shell: [PowerShell/Bash/Zsh]
|
|
184
|
-
- Plugin Path: ~/.claude/plugins/
|
|
184
|
+
- Plugin Path: ~/.claude/plugins/fire-flow/
|
|
185
185
|
- Temp Directory: [path]
|
|
186
186
|
```
|
|
187
187
|
|
|
@@ -258,7 +258,7 @@ tests/fixtures/
|
|
|
258
258
|
- No existing .planning/ folder
|
|
259
259
|
|
|
260
260
|
**Execute:**
|
|
261
|
-
- Run /fire-
|
|
261
|
+
- Run /fire-1a-new with test project name
|
|
262
262
|
|
|
263
263
|
**Verify:**
|
|
264
264
|
- .planning/ directory exists
|
|
@@ -429,7 +429,7 @@ tests/fixtures/
|
|
|
429
429
|
|
|
430
430
|
| Error | Cause | Fix |
|
|
431
431
|
|-------|-------|-----|
|
|
432
|
-
| "Plugin not found" |
|
|
432
|
+
| "Plugin not found" | fire-flow not installed | Install plugin to ~/.claude/plugins/fire-flow/ |
|
|
433
433
|
| "Skills library empty" | Skills not copied | Copy skills from WARRIOR to skills-library/ |
|
|
434
434
|
| "Hook not firing" | hooks.json misconfigured | Check hooks/hooks.json syntax |
|
|
435
435
|
| "Permission denied" | File permissions | Check write permissions on test directory |
|
|
@@ -445,7 +445,7 @@ tests/fixtures/
|
|
|
445
445
|
## Running Tests
|
|
446
446
|
|
|
447
447
|
### Prerequisites:
|
|
448
|
-
1. Dominion Flow plugin installed at ~/.claude/plugins/
|
|
448
|
+
1. Dominion Flow plugin installed at ~/.claude/plugins/fire-flow/
|
|
449
449
|
2. Skills library populated (or will use fixtures)
|
|
450
450
|
3. Write access to temp directory
|
|
451
451
|
4. Write access to ~/.claude/warrior-handoffs/
|
|
@@ -484,7 +484,7 @@ When `/fire-test` is invoked:
|
|
|
484
484
|
2. **Set up test environment**:
|
|
485
485
|
```bash
|
|
486
486
|
# Create temp directory
|
|
487
|
-
TEST_DIR="$TEMP/
|
|
487
|
+
TEST_DIR="$TEMP/fire-flow-test-$(date +%s)"
|
|
488
488
|
mkdir -p "$TEST_DIR"
|
|
489
489
|
|
|
490
490
|
# Copy fixtures
|
|
@@ -494,7 +494,7 @@ When `/fire-test` is invoked:
|
|
|
494
494
|
3. **Execute tests sequentially**, capturing output:
|
|
495
495
|
```
|
|
496
496
|
Running E2E Tests...
|
|
497
|
-
[1/8] Testing /fire-
|
|
497
|
+
[1/8] Testing /fire-1a-new... PASS (0.5s)
|
|
498
498
|
[2/8] Testing /fire-2-plan... PASS (0.8s)
|
|
499
499
|
...
|
|
500
500
|
```
|
package/commands/fire-todos.md
CHANGED
package/commands/fire-update.md
CHANGED
|
@@ -56,7 +56,7 @@ The plugin must have a GitHub repository configured in `plugin.json`:
|
|
|
56
56
|
|
|
57
57
|
```json
|
|
58
58
|
{
|
|
59
|
-
"repository": "https://github.com/username/
|
|
59
|
+
"repository": "https://github.com/username/fire-flow"
|
|
60
60
|
}
|
|
61
61
|
```
|
|
62
62
|
|
|
@@ -66,7 +66,7 @@ If repository is not configured:
|
|
|
66
66
|
|
|
67
67
|
To enable updates, add repository URL to plugin.json:
|
|
68
68
|
{
|
|
69
|
-
"repository": "https://github.com/username/
|
|
69
|
+
"repository": "https://github.com/username/fire-flow"
|
|
70
70
|
}
|
|
71
71
|
```
|
|
72
72
|
|
|
@@ -77,7 +77,7 @@ To enable updates, add repository URL to plugin.json:
|
|
|
77
77
|
### Step 1: Validate Environment
|
|
78
78
|
|
|
79
79
|
```bash
|
|
80
|
-
PLUGIN_DIR="$HOME/.claude/plugins/
|
|
80
|
+
PLUGIN_DIR="$HOME/.claude/plugins/fire-flow"
|
|
81
81
|
VERSION_FILE="$PLUGIN_DIR/version.json"
|
|
82
82
|
PLUGIN_JSON="$PLUGIN_DIR/.claude-plugin/plugin.json"
|
|
83
83
|
```
|
|
@@ -300,8 +300,8 @@ git reset --hard "$TARGET_COMMIT"
|
|
|
300
300
|
```bash
|
|
301
301
|
# Generate token at: https://github.com/settings/tokens
|
|
302
302
|
# Set token in git remote
|
|
303
|
-
cd ~/.claude/plugins/
|
|
304
|
-
git remote set-url origin https://YOUR_TOKEN@github.com/username/
|
|
303
|
+
cd ~/.claude/plugins/fire-flow
|
|
304
|
+
git remote set-url origin https://YOUR_TOKEN@github.com/username/fire-flow.git
|
|
305
305
|
```
|
|
306
306
|
|
|
307
307
|
---
|
package/hooks/hooks.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
{
|
|
2
|
-
"hooks": [
|
|
3
|
-
{
|
|
4
|
-
"event": "SessionStart",
|
|
5
|
-
"triggers": ["startup", "resume", "clear", "compact"],
|
|
6
|
-
"type": "command",
|
|
7
|
-
"command": ["bash", "${CLAUDE_PLUGIN_ROOT}/hooks/run-hook.sh"]
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
"event": "SessionEnd",
|
|
11
|
-
"triggers": ["logout", "prompt_input_exit", "other"],
|
|
12
|
-
"type": "command",
|
|
13
|
-
"command": ["bash", "${CLAUDE_PLUGIN_ROOT}/hooks/run-session-end.sh"]
|
|
14
|
-
}
|
|
15
|
-
]
|
|
16
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"hooks": [
|
|
3
|
+
{
|
|
4
|
+
"event": "SessionStart",
|
|
5
|
+
"triggers": ["startup", "resume", "clear", "compact"],
|
|
6
|
+
"type": "command",
|
|
7
|
+
"command": ["bash", "${CLAUDE_PLUGIN_ROOT}/hooks/run-hook.sh"]
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"event": "SessionEnd",
|
|
11
|
+
"triggers": ["logout", "prompt_input_exit", "other"],
|
|
12
|
+
"type": "command",
|
|
13
|
+
"command": ["bash", "${CLAUDE_PLUGIN_ROOT}/hooks/run-session-end.sh"]
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
}
|
package/hooks/run-hook.sh
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# MIT License - Copyright (c) 2026 ThierryN - https://github.com/ThierryN/
|
|
3
|
-
#
|
|
4
|
-
# Universal hook launcher — works on macOS, Linux, and Windows (Git Bash / WSL)
|
|
5
|
-
# Resolves the actual session-start.sh relative to this script's location.
|
|
6
|
-
|
|
7
|
-
HOOK_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
8
|
-
exec bash "$HOOK_DIR/session-start.sh"
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# MIT License - Copyright (c) 2026 ThierryN - https://github.com/ThierryN/fire-flow
|
|
3
|
+
#
|
|
4
|
+
# Universal hook launcher — works on macOS, Linux, and Windows (Git Bash / WSL)
|
|
5
|
+
# Resolves the actual session-start.sh relative to this script's location.
|
|
6
|
+
|
|
7
|
+
HOOK_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
8
|
+
exec bash "$HOOK_DIR/session-start.sh"
|
package/hooks/run-session-end.sh
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# MIT License - Copyright (c) 2026 ThierryN - https://github.com/ThierryN/
|
|
3
|
-
#
|
|
4
|
-
# Universal hook launcher — works on macOS, Linux, and Windows (Git Bash / WSL)
|
|
5
|
-
|
|
6
|
-
HOOK_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
7
|
-
exec bash "$HOOK_DIR/session-end.sh"
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# MIT License - Copyright (c) 2026 ThierryN - https://github.com/ThierryN/fire-flow
|
|
3
|
+
#
|
|
4
|
+
# Universal hook launcher — works on macOS, Linux, and Windows (Git Bash / WSL)
|
|
5
|
+
|
|
6
|
+
HOOK_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
7
|
+
exec bash "$HOOK_DIR/session-end.sh"
|
package/hooks/session-end.sh
CHANGED
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# MIT License - Copyright (c) 2026 ThierryN - https://github.com/ThierryN/
|
|
3
|
-
#
|
|
4
|
-
# Dominion Flow Plugin - Session End Hook
|
|
5
|
-
#
|
|
6
|
-
# WHAT THIS DOES:
|
|
7
|
-
# When a Claude Code session ends, this script runs automatically.
|
|
8
|
-
# It tries to consolidate session memory into a vector database (Qdrant)
|
|
9
|
-
# so future sessions can search past experiences semantically.
|
|
10
|
-
#
|
|
11
|
-
# HOW IT WORKS:
|
|
12
|
-
# 1. Checks if the your-memory-repo project exists on this machine
|
|
13
|
-
# 2. Checks if Qdrant (vector database) is running on port 6335
|
|
14
|
-
# 3. Checks if Ollama (local embedding model) is running on port 11434
|
|
15
|
-
# 4. If all three are ready, runs "npm run consolidate" to index new files
|
|
16
|
-
#
|
|
17
|
-
# THIS IS OPTIONAL:
|
|
18
|
-
# If Qdrant or Ollama are not running, this script exits silently (no error).
|
|
19
|
-
# The flat .md handoff files in ~/.claude/warrior-handoffs/ are always intact
|
|
20
|
-
# and used as the fallback. Memory consolidation is a bonus, not a requirement.
|
|
21
|
-
#
|
|
22
|
-
# NOTE FOR NEW USERS:
|
|
23
|
-
# The MEMORY_PROJECT path below points to a local project that handles
|
|
24
|
-
# vector indexing. If you do not have this project set up, this hook
|
|
25
|
-
# will skip silently — your session will still work normally.
|
|
26
|
-
# To set up vector memory, see: https://github.com/ThierryN/
|
|
27
|
-
|
|
28
|
-
echo "=============================================="
|
|
29
|
-
echo " DOMINION FLOW - Session End Consolidation"
|
|
30
|
-
echo "=============================================="
|
|
31
|
-
echo ""
|
|
32
|
-
|
|
33
|
-
MEMORY_PROJECT="$HOME/repos/your-memory-repo"
|
|
34
|
-
|
|
35
|
-
# =============================================
|
|
36
|
-
# 1. Check if your-memory-repo project exists
|
|
37
|
-
# =============================================
|
|
38
|
-
if [ ! -d "$MEMORY_PROJECT" ]; then
|
|
39
|
-
echo "[SKIP] your-memory-repo project not found at $MEMORY_PROJECT"
|
|
40
|
-
echo " Memory consolidation skipped."
|
|
41
|
-
exit 0
|
|
42
|
-
fi
|
|
43
|
-
|
|
44
|
-
# =============================================
|
|
45
|
-
# 2. Check if Qdrant is running (port 6335)
|
|
46
|
-
# =============================================
|
|
47
|
-
if ! curl -s http://localhost:6335/healthz > /dev/null 2>&1; then
|
|
48
|
-
echo "[SKIP] Qdrant not running on port 6335."
|
|
49
|
-
echo " Memory consolidation skipped (no vector DB)."
|
|
50
|
-
echo " Flat .md files are still available."
|
|
51
|
-
exit 0
|
|
52
|
-
fi
|
|
53
|
-
|
|
54
|
-
# =============================================
|
|
55
|
-
# 3. Check if Ollama is running
|
|
56
|
-
# =============================================
|
|
57
|
-
if ! curl -s http://localhost:11434/api/tags > /dev/null 2>&1; then
|
|
58
|
-
echo "[SKIP] Ollama not running."
|
|
59
|
-
echo " Memory consolidation skipped (no embeddings)."
|
|
60
|
-
exit 0
|
|
61
|
-
fi
|
|
62
|
-
|
|
63
|
-
# =============================================
|
|
64
|
-
# 4. Run light consolidation (index new files only)
|
|
65
|
-
# =============================================
|
|
66
|
-
echo ">>> Running light memory consolidation..."
|
|
67
|
-
echo " (Index new/changed files only — fast, <30s)"
|
|
68
|
-
echo ""
|
|
69
|
-
|
|
70
|
-
cd "$MEMORY_PROJECT" || exit 0
|
|
71
|
-
|
|
72
|
-
# Run the consolidate command (indexes new files + extracts facts)
|
|
73
|
-
npm run consolidate 2>&1 | tail -20
|
|
74
|
-
|
|
75
|
-
CONSOLIDATE_EXIT=$?
|
|
76
|
-
|
|
77
|
-
if [ $CONSOLIDATE_EXIT -eq 0 ]; then
|
|
78
|
-
echo ""
|
|
79
|
-
echo ">>> Memory consolidation complete."
|
|
80
|
-
else
|
|
81
|
-
echo ""
|
|
82
|
-
echo "[WARN] Consolidation exited with code $CONSOLIDATE_EXIT"
|
|
83
|
-
echo " This is non-fatal. Memory files are still intact."
|
|
84
|
-
fi
|
|
85
|
-
|
|
86
|
-
echo ""
|
|
87
|
-
echo "=============================================="
|
|
88
|
-
echo " SESSION END CONSOLIDATION COMPLETE"
|
|
89
|
-
echo "=============================================="
|
|
90
|
-
echo ""
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# MIT License - Copyright (c) 2026 ThierryN - https://github.com/ThierryN/fire-flow
|
|
3
|
+
#
|
|
4
|
+
# Dominion Flow Plugin - Session End Hook
|
|
5
|
+
#
|
|
6
|
+
# WHAT THIS DOES:
|
|
7
|
+
# When a Claude Code session ends, this script runs automatically.
|
|
8
|
+
# It tries to consolidate session memory into a vector database (Qdrant)
|
|
9
|
+
# so future sessions can search past experiences semantically.
|
|
10
|
+
#
|
|
11
|
+
# HOW IT WORKS:
|
|
12
|
+
# 1. Checks if the your-memory-repo project exists on this machine
|
|
13
|
+
# 2. Checks if Qdrant (vector database) is running on port 6335
|
|
14
|
+
# 3. Checks if Ollama (local embedding model) is running on port 11434
|
|
15
|
+
# 4. If all three are ready, runs "npm run consolidate" to index new files
|
|
16
|
+
#
|
|
17
|
+
# THIS IS OPTIONAL:
|
|
18
|
+
# If Qdrant or Ollama are not running, this script exits silently (no error).
|
|
19
|
+
# The flat .md handoff files in ~/.claude/warrior-handoffs/ are always intact
|
|
20
|
+
# and used as the fallback. Memory consolidation is a bonus, not a requirement.
|
|
21
|
+
#
|
|
22
|
+
# NOTE FOR NEW USERS:
|
|
23
|
+
# The MEMORY_PROJECT path below points to a local project that handles
|
|
24
|
+
# vector indexing. If you do not have this project set up, this hook
|
|
25
|
+
# will skip silently — your session will still work normally.
|
|
26
|
+
# To set up vector memory, see: https://github.com/ThierryN/fire-flow
|
|
27
|
+
|
|
28
|
+
echo "=============================================="
|
|
29
|
+
echo " DOMINION FLOW - Session End Consolidation"
|
|
30
|
+
echo "=============================================="
|
|
31
|
+
echo ""
|
|
32
|
+
|
|
33
|
+
MEMORY_PROJECT="$HOME/repos/your-memory-repo"
|
|
34
|
+
|
|
35
|
+
# =============================================
|
|
36
|
+
# 1. Check if your-memory-repo project exists
|
|
37
|
+
# =============================================
|
|
38
|
+
if [ ! -d "$MEMORY_PROJECT" ]; then
|
|
39
|
+
echo "[SKIP] your-memory-repo project not found at $MEMORY_PROJECT"
|
|
40
|
+
echo " Memory consolidation skipped."
|
|
41
|
+
exit 0
|
|
42
|
+
fi
|
|
43
|
+
|
|
44
|
+
# =============================================
|
|
45
|
+
# 2. Check if Qdrant is running (port 6335)
|
|
46
|
+
# =============================================
|
|
47
|
+
if ! curl -s http://localhost:6335/healthz > /dev/null 2>&1; then
|
|
48
|
+
echo "[SKIP] Qdrant not running on port 6335."
|
|
49
|
+
echo " Memory consolidation skipped (no vector DB)."
|
|
50
|
+
echo " Flat .md files are still available."
|
|
51
|
+
exit 0
|
|
52
|
+
fi
|
|
53
|
+
|
|
54
|
+
# =============================================
|
|
55
|
+
# 3. Check if Ollama is running
|
|
56
|
+
# =============================================
|
|
57
|
+
if ! curl -s http://localhost:11434/api/tags > /dev/null 2>&1; then
|
|
58
|
+
echo "[SKIP] Ollama not running."
|
|
59
|
+
echo " Memory consolidation skipped (no embeddings)."
|
|
60
|
+
exit 0
|
|
61
|
+
fi
|
|
62
|
+
|
|
63
|
+
# =============================================
|
|
64
|
+
# 4. Run light consolidation (index new files only)
|
|
65
|
+
# =============================================
|
|
66
|
+
echo ">>> Running light memory consolidation..."
|
|
67
|
+
echo " (Index new/changed files only — fast, <30s)"
|
|
68
|
+
echo ""
|
|
69
|
+
|
|
70
|
+
cd "$MEMORY_PROJECT" || exit 0
|
|
71
|
+
|
|
72
|
+
# Run the consolidate command (indexes new files + extracts facts)
|
|
73
|
+
npm run consolidate 2>&1 | tail -20
|
|
74
|
+
|
|
75
|
+
CONSOLIDATE_EXIT=$?
|
|
76
|
+
|
|
77
|
+
if [ $CONSOLIDATE_EXIT -eq 0 ]; then
|
|
78
|
+
echo ""
|
|
79
|
+
echo ">>> Memory consolidation complete."
|
|
80
|
+
else
|
|
81
|
+
echo ""
|
|
82
|
+
echo "[WARN] Consolidation exited with code $CONSOLIDATE_EXIT"
|
|
83
|
+
echo " This is non-fatal. Memory files are still intact."
|
|
84
|
+
fi
|
|
85
|
+
|
|
86
|
+
echo ""
|
|
87
|
+
echo "=============================================="
|
|
88
|
+
echo " SESSION END CONSOLIDATION COMPLETE"
|
|
89
|
+
echo "=============================================="
|
|
90
|
+
echo ""
|
package/hooks/session-start.sh
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thierrynakoa/fire-flow",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Structured workflow orchestration for Claude Code —
|
|
3
|
+
"version": "12.2.0",
|
|
4
|
+
"description": "Structured workflow orchestration for Claude Code — 46 commands, 15 agents, 478+ skills. Plan → Execute → Verify → Handoff with parallel execution, session memory, circuit breaker safety, Phoenix Rebuild, and learning mode.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude-code",
|
|
7
7
|
"plugin",
|
package/plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Dominion Flow is a comprehensive orchestration platform that empowers your Claude agent. It gives Claude a complete, structured workflow for taking projects from idea to production — with parallel execution,
|
|
5
|
-
"commands": "commands/",
|
|
6
|
-
"agents": "agents/"
|
|
7
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "fire-flow",
|
|
3
|
+
"version": "12.2.0",
|
|
4
|
+
"description": "Dominion Flow is a comprehensive orchestration platform that empowers your Claude agent. It gives Claude a complete, structured workflow for taking projects from idea to production — with parallel execution, session memory across handoffs, 70-point quality verification, autonomous mode, Phoenix Rebuild (messy-to-clean), E2E testing, and a circuit breaker to prevent stuck loops. Includes 46 slash commands organized into 8 tiers covering planning, execution, verification, debugging, skills management, milestone tracking, and learning mode.",
|
|
5
|
+
"commands": "commands/",
|
|
6
|
+
"agents": "agents/"
|
|
7
|
+
}
|
|
@@ -60,7 +60,7 @@ metrics:
|
|
|
60
60
|
> enabling fine-grained learning signals beyond binary success/fail.
|
|
61
61
|
|
|
62
62
|
```yaml
|
|
63
|
-
## Turn-Level Metrics (collected in
|
|
63
|
+
## Turn-Level Metrics (collected in fire-flow.local.md per loop session)
|
|
64
64
|
iteration_rewards:
|
|
65
65
|
- iteration: 1
|
|
66
66
|
reward: 4.2
|