@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-reflect.md
CHANGED
|
@@ -1,235 +1,235 @@
|
|
|
1
|
-
# /fire-reflect
|
|
2
|
-
|
|
3
|
-
> Capture, search, and review failure reflections. Reflexion-style self-reflection for cross-session learning.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Purpose
|
|
8
|
-
|
|
9
|
-
After any failure (debug resolution, test failure, approach rotation, stalled loop), capture **what was tried, why it failed, and what actually worked** as a persistent reflection. Future sessions search these before investigating.
|
|
10
|
-
|
|
11
|
-
**Research basis:** Reflexion (NeurIPS 2023) — 91% pass@1 via verbal self-reflection stored as linguistic memory.
|
|
12
|
-
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
## Arguments
|
|
16
|
-
|
|
17
|
-
```yaml
|
|
18
|
-
arguments:
|
|
19
|
-
action:
|
|
20
|
-
required: false
|
|
21
|
-
type: string
|
|
22
|
-
description: "Action to perform: capture (default), search, list, review"
|
|
23
|
-
example: "/fire-reflect capture"
|
|
24
|
-
|
|
25
|
-
optional_flags:
|
|
26
|
-
--from debug: "Auto-extract from most recent resolved debug session"
|
|
27
|
-
--from session: "Extract from current session context"
|
|
28
|
-
--project <name>: "Tag with project name"
|
|
29
|
-
--severity <level>: "minor | moderate | critical (default: moderate)"
|
|
30
|
-
--search <query>: "Search reflections by keyword/symptom"
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
---
|
|
34
|
-
|
|
35
|
-
## Process
|
|
36
|
-
|
|
37
|
-
### Step 1: Determine Action
|
|
38
|
-
|
|
39
|
-
```
|
|
40
|
-
IF args contain "search" or --search:
|
|
41
|
-
→ Go to Search Mode (Step 5)
|
|
42
|
-
IF args contain "list":
|
|
43
|
-
→ Go to List Mode (Step 6)
|
|
44
|
-
IF args contain "review":
|
|
45
|
-
→ Go to Review Mode (Step 7)
|
|
46
|
-
ELSE:
|
|
47
|
-
→ Capture Mode (Step 2)
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
### Step 2: Gather Reflection Content
|
|
51
|
-
|
|
52
|
-
**If `--from debug`:**
|
|
53
|
-
- Read most recent file in `.planning/debug/resolved/`
|
|
54
|
-
- Extract: symptoms, eliminated hypotheses, root cause, fix applied
|
|
55
|
-
- Auto-fill reflection fields
|
|
56
|
-
|
|
57
|
-
**If `--from session`:**
|
|
58
|
-
- Review current conversation context
|
|
59
|
-
- Identify: failed approaches, what was tried, what worked
|
|
60
|
-
- Auto-fill reflection fields
|
|
61
|
-
|
|
62
|
-
**If interactive (default):**
|
|
63
|
-
Ask using AskUserQuestion:
|
|
64
|
-
|
|
65
|
-
1. **What was the problem?** — Brief symptom description
|
|
66
|
-
2. **What did you try that failed?** — Each approach and why it didn't work
|
|
67
|
-
3. **What actually worked?** — The solution that resolved it
|
|
68
|
-
4. **The lesson** — One-sentence takeaway for future self
|
|
69
|
-
5. **Search triggers** — When should future agents find this?
|
|
70
|
-
|
|
71
|
-
### Step 3: Generate Reflection File
|
|
72
|
-
|
|
73
|
-
Create file at `~/.claude/reflections/{date}_{slug}.md`:
|
|
74
|
-
|
|
75
|
-
```markdown
|
|
76
|
-
---
|
|
77
|
-
type: reflection
|
|
78
|
-
date: {YYYY-MM-DD}
|
|
79
|
-
project: {project-name}
|
|
80
|
-
trigger: debug-resolution | test-failure | approach-rotation | stalled-loop
|
|
81
|
-
severity: minor | moderate | critical
|
|
82
|
-
tags: [{technology}, {pattern}, {symptom}]
|
|
83
|
-
---
|
|
84
|
-
# What I tried and why it failed
|
|
85
|
-
|
|
86
|
-
## The Problem
|
|
87
|
-
{Brief description of symptoms — what went wrong, what was observed}
|
|
88
|
-
|
|
89
|
-
## What I Tried (and why each failed)
|
|
90
|
-
1. **{Approach 1}** — {Why it didn't work. What was the evidence?}
|
|
91
|
-
2. **{Approach 2}** — {Why it didn't work. What disproved it?}
|
|
92
|
-
|
|
93
|
-
## What Actually Worked
|
|
94
|
-
{The solution. Be specific — include the code pattern, command, or insight.}
|
|
95
|
-
|
|
96
|
-
## The Lesson
|
|
97
|
-
{One-sentence takeaway. This is what a future agent reads first.}
|
|
98
|
-
|
|
99
|
-
## Future Self: Search For This When
|
|
100
|
-
- {Symptom 1 that should trigger finding this reflection}
|
|
101
|
-
- {Symptom 2}
|
|
102
|
-
- {Error message pattern}
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
### Step 4: Save and Confirm
|
|
106
|
-
|
|
107
|
-
```
|
|
108
|
-
Save to: ~/.claude/reflections/{date}_{slug}.md
|
|
109
|
-
|
|
110
|
-
Display:
|
|
111
|
-
+----------------------------------------------------------------------+
|
|
112
|
-
| REFLECTION CAPTURED |
|
|
113
|
-
+----------------------------------------------------------------------+
|
|
114
|
-
| |
|
|
115
|
-
| File: ~/.claude/reflections/{date}_{slug}.md |
|
|
116
|
-
| Project: {project} |
|
|
117
|
-
| Severity: {severity} |
|
|
118
|
-
| Tags: {tags} |
|
|
119
|
-
| |
|
|
120
|
-
| Lesson: {one-sentence lesson} |
|
|
121
|
-
| |
|
|
122
|
-
| This reflection will be searchable via: |
|
|
123
|
-
| /fire-remember "{symptom}" --type reflection |
|
|
124
|
-
| /fire-reflect --search "{keyword}" |
|
|
125
|
-
| |
|
|
126
|
-
+----------------------------------------------------------------------+
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
### Step 5: Search Mode
|
|
130
|
-
|
|
131
|
-
When called with `--search` or `search` action:
|
|
132
|
-
|
|
133
|
-
```
|
|
134
|
-
1. Search ~/.claude/reflections/ for matching files
|
|
135
|
-
2. Use keyword matching on: tags, problem description, lesson, search triggers
|
|
136
|
-
3. If vector memory available:
|
|
137
|
-
/fire-remember "{query}" --type reflection
|
|
138
|
-
4. Display matching reflections ranked by relevance
|
|
139
|
-
|
|
140
|
-
Output:
|
|
141
|
-
1. [{date}] {slug} — Severity: {severity}
|
|
142
|
-
Lesson: {one-sentence lesson}
|
|
143
|
-
Tags: {tags}
|
|
144
|
-
Match: {what matched}
|
|
145
|
-
|
|
146
|
-
2. ...
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
### Step 6: List Mode
|
|
150
|
-
|
|
151
|
-
```
|
|
152
|
-
List all reflections sorted by date (newest first):
|
|
153
|
-
|
|
154
|
-
# | Date | Project | Severity | Lesson
|
|
155
|
-
1 | 2026-02-20 | voice-bridge | critical | VK codes stable, char corrupted by Ctrl
|
|
156
|
-
2 | 2026-02-19 |
|
|
157
|
-
...
|
|
158
|
-
|
|
159
|
-
Total: {N} reflections across {M} projects
|
|
160
|
-
```
|
|
161
|
-
|
|
162
|
-
### Step 7: Review Mode
|
|
163
|
-
|
|
164
|
-
Read a specific reflection and display it formatted:
|
|
165
|
-
|
|
166
|
-
```
|
|
167
|
-
/fire-reflect review {slug-or-number}
|
|
168
|
-
```
|
|
169
|
-
|
|
170
|
-
---
|
|
171
|
-
|
|
172
|
-
## Auto-Trigger Integration
|
|
173
|
-
|
|
174
|
-
Reflections are auto-generated by other commands:
|
|
175
|
-
|
|
176
|
-
| Trigger | Command | When |
|
|
177
|
-
|---------|---------|------|
|
|
178
|
-
| Debug resolution | `/fire-debug` Step 7.5 | After root cause found and fix verified |
|
|
179
|
-
| Stalled loop | `/fire-loop` Step 9 | On STALLED → SPINNING transition |
|
|
180
|
-
| Approach rotation | `/fire-loop` Step 9 | On SPINNING state (forced rotation) |
|
|
181
|
-
|
|
182
|
-
Auto-generated reflections use `--from debug` or `--from session` to extract context automatically.
|
|
183
|
-
|
|
184
|
-
---
|
|
185
|
-
|
|
186
|
-
## Pre-Investigation Search
|
|
187
|
-
|
|
188
|
-
Before starting any debug or complex task, search reflections:
|
|
189
|
-
|
|
190
|
-
```
|
|
191
|
-
Search reflections for: "[error symptoms]"
|
|
192
|
-
If match found with relevant lesson:
|
|
193
|
-
"I've encountered this before — {lesson}. Applying directly instead of re-investigating."
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
This is wired into:
|
|
197
|
-
- `/fire-debug` Step 2.5 — Search before investigating
|
|
198
|
-
- `/fire-loop` iteration start — Check for known failure patterns
|
|
199
|
-
|
|
200
|
-
---
|
|
201
|
-
|
|
202
|
-
## Reflection Quality Guidelines
|
|
203
|
-
|
|
204
|
-
**Good reflection:**
|
|
205
|
-
- Specific symptoms (error messages, behaviors)
|
|
206
|
-
- Multiple failed approaches with reasons
|
|
207
|
-
- Concrete solution (code, command, config change)
|
|
208
|
-
- One-sentence lesson that's useful without context
|
|
209
|
-
- Search triggers that match how you'd describe the problem
|
|
210
|
-
|
|
211
|
-
**Bad reflection:**
|
|
212
|
-
- Vague ("something was wrong")
|
|
213
|
-
- Only records the solution without the journey
|
|
214
|
-
- No search triggers
|
|
215
|
-
- Lesson is too abstract ("be more careful")
|
|
216
|
-
|
|
217
|
-
---
|
|
218
|
-
|
|
219
|
-
## Success Criteria
|
|
220
|
-
|
|
221
|
-
- [ ] Reflection file created with all sections filled
|
|
222
|
-
- [ ] Tags extracted from problem domain
|
|
223
|
-
- [ ] Severity classified correctly
|
|
224
|
-
- [ ] Search triggers are realistic symptom descriptions
|
|
225
|
-
- [ ] Lesson is a single actionable sentence
|
|
226
|
-
- [ ] File saved to `~/.claude/reflections/`
|
|
227
|
-
|
|
228
|
-
---
|
|
229
|
-
|
|
230
|
-
## References
|
|
231
|
-
|
|
232
|
-
- **Research:** Reflexion (NeurIPS 2023) — verbal self-reflection, 91% pass@1
|
|
233
|
-
- **Storage:** `~/.claude/reflections/` — searchable via vector memory
|
|
234
|
-
- **Index:** Qdrant sourceType: `reflection` — auto-indexed by your-memory-repo
|
|
235
|
-
- **Related:** `/fire-debug`, `/fire-loop`, `/fire-remember`
|
|
1
|
+
# /fire-reflect
|
|
2
|
+
|
|
3
|
+
> Capture, search, and review failure reflections. Reflexion-style self-reflection for cross-session learning.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Purpose
|
|
8
|
+
|
|
9
|
+
After any failure (debug resolution, test failure, approach rotation, stalled loop), capture **what was tried, why it failed, and what actually worked** as a persistent reflection. Future sessions search these before investigating.
|
|
10
|
+
|
|
11
|
+
**Research basis:** Reflexion (NeurIPS 2023) — 91% pass@1 via verbal self-reflection stored as linguistic memory.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Arguments
|
|
16
|
+
|
|
17
|
+
```yaml
|
|
18
|
+
arguments:
|
|
19
|
+
action:
|
|
20
|
+
required: false
|
|
21
|
+
type: string
|
|
22
|
+
description: "Action to perform: capture (default), search, list, review"
|
|
23
|
+
example: "/fire-reflect capture"
|
|
24
|
+
|
|
25
|
+
optional_flags:
|
|
26
|
+
--from debug: "Auto-extract from most recent resolved debug session"
|
|
27
|
+
--from session: "Extract from current session context"
|
|
28
|
+
--project <name>: "Tag with project name"
|
|
29
|
+
--severity <level>: "minor | moderate | critical (default: moderate)"
|
|
30
|
+
--search <query>: "Search reflections by keyword/symptom"
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## Process
|
|
36
|
+
|
|
37
|
+
### Step 1: Determine Action
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
IF args contain "search" or --search:
|
|
41
|
+
→ Go to Search Mode (Step 5)
|
|
42
|
+
IF args contain "list":
|
|
43
|
+
→ Go to List Mode (Step 6)
|
|
44
|
+
IF args contain "review":
|
|
45
|
+
→ Go to Review Mode (Step 7)
|
|
46
|
+
ELSE:
|
|
47
|
+
→ Capture Mode (Step 2)
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### Step 2: Gather Reflection Content
|
|
51
|
+
|
|
52
|
+
**If `--from debug`:**
|
|
53
|
+
- Read most recent file in `.planning/debug/resolved/`
|
|
54
|
+
- Extract: symptoms, eliminated hypotheses, root cause, fix applied
|
|
55
|
+
- Auto-fill reflection fields
|
|
56
|
+
|
|
57
|
+
**If `--from session`:**
|
|
58
|
+
- Review current conversation context
|
|
59
|
+
- Identify: failed approaches, what was tried, what worked
|
|
60
|
+
- Auto-fill reflection fields
|
|
61
|
+
|
|
62
|
+
**If interactive (default):**
|
|
63
|
+
Ask using AskUserQuestion:
|
|
64
|
+
|
|
65
|
+
1. **What was the problem?** — Brief symptom description
|
|
66
|
+
2. **What did you try that failed?** — Each approach and why it didn't work
|
|
67
|
+
3. **What actually worked?** — The solution that resolved it
|
|
68
|
+
4. **The lesson** — One-sentence takeaway for future self
|
|
69
|
+
5. **Search triggers** — When should future agents find this?
|
|
70
|
+
|
|
71
|
+
### Step 3: Generate Reflection File
|
|
72
|
+
|
|
73
|
+
Create file at `~/.claude/reflections/{date}_{slug}.md`:
|
|
74
|
+
|
|
75
|
+
```markdown
|
|
76
|
+
---
|
|
77
|
+
type: reflection
|
|
78
|
+
date: {YYYY-MM-DD}
|
|
79
|
+
project: {project-name}
|
|
80
|
+
trigger: debug-resolution | test-failure | approach-rotation | stalled-loop
|
|
81
|
+
severity: minor | moderate | critical
|
|
82
|
+
tags: [{technology}, {pattern}, {symptom}]
|
|
83
|
+
---
|
|
84
|
+
# What I tried and why it failed
|
|
85
|
+
|
|
86
|
+
## The Problem
|
|
87
|
+
{Brief description of symptoms — what went wrong, what was observed}
|
|
88
|
+
|
|
89
|
+
## What I Tried (and why each failed)
|
|
90
|
+
1. **{Approach 1}** — {Why it didn't work. What was the evidence?}
|
|
91
|
+
2. **{Approach 2}** — {Why it didn't work. What disproved it?}
|
|
92
|
+
|
|
93
|
+
## What Actually Worked
|
|
94
|
+
{The solution. Be specific — include the code pattern, command, or insight.}
|
|
95
|
+
|
|
96
|
+
## The Lesson
|
|
97
|
+
{One-sentence takeaway. This is what a future agent reads first.}
|
|
98
|
+
|
|
99
|
+
## Future Self: Search For This When
|
|
100
|
+
- {Symptom 1 that should trigger finding this reflection}
|
|
101
|
+
- {Symptom 2}
|
|
102
|
+
- {Error message pattern}
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### Step 4: Save and Confirm
|
|
106
|
+
|
|
107
|
+
```
|
|
108
|
+
Save to: ~/.claude/reflections/{date}_{slug}.md
|
|
109
|
+
|
|
110
|
+
Display:
|
|
111
|
+
+----------------------------------------------------------------------+
|
|
112
|
+
| REFLECTION CAPTURED |
|
|
113
|
+
+----------------------------------------------------------------------+
|
|
114
|
+
| |
|
|
115
|
+
| File: ~/.claude/reflections/{date}_{slug}.md |
|
|
116
|
+
| Project: {project} |
|
|
117
|
+
| Severity: {severity} |
|
|
118
|
+
| Tags: {tags} |
|
|
119
|
+
| |
|
|
120
|
+
| Lesson: {one-sentence lesson} |
|
|
121
|
+
| |
|
|
122
|
+
| This reflection will be searchable via: |
|
|
123
|
+
| /fire-remember "{symptom}" --type reflection |
|
|
124
|
+
| /fire-reflect --search "{keyword}" |
|
|
125
|
+
| |
|
|
126
|
+
+----------------------------------------------------------------------+
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
### Step 5: Search Mode
|
|
130
|
+
|
|
131
|
+
When called with `--search` or `search` action:
|
|
132
|
+
|
|
133
|
+
```
|
|
134
|
+
1. Search ~/.claude/reflections/ for matching files
|
|
135
|
+
2. Use keyword matching on: tags, problem description, lesson, search triggers
|
|
136
|
+
3. If vector memory available:
|
|
137
|
+
/fire-remember "{query}" --type reflection
|
|
138
|
+
4. Display matching reflections ranked by relevance
|
|
139
|
+
|
|
140
|
+
Output:
|
|
141
|
+
1. [{date}] {slug} — Severity: {severity}
|
|
142
|
+
Lesson: {one-sentence lesson}
|
|
143
|
+
Tags: {tags}
|
|
144
|
+
Match: {what matched}
|
|
145
|
+
|
|
146
|
+
2. ...
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
### Step 6: List Mode
|
|
150
|
+
|
|
151
|
+
```
|
|
152
|
+
List all reflections sorted by date (newest first):
|
|
153
|
+
|
|
154
|
+
# | Date | Project | Severity | Lesson
|
|
155
|
+
1 | 2026-02-20 | voice-bridge | critical | VK codes stable, char corrupted by Ctrl
|
|
156
|
+
2 | 2026-02-19 | fire-flow | moderate | ...
|
|
157
|
+
...
|
|
158
|
+
|
|
159
|
+
Total: {N} reflections across {M} projects
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
### Step 7: Review Mode
|
|
163
|
+
|
|
164
|
+
Read a specific reflection and display it formatted:
|
|
165
|
+
|
|
166
|
+
```
|
|
167
|
+
/fire-reflect review {slug-or-number}
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
## Auto-Trigger Integration
|
|
173
|
+
|
|
174
|
+
Reflections are auto-generated by other commands:
|
|
175
|
+
|
|
176
|
+
| Trigger | Command | When |
|
|
177
|
+
|---------|---------|------|
|
|
178
|
+
| Debug resolution | `/fire-debug` Step 7.5 | After root cause found and fix verified |
|
|
179
|
+
| Stalled loop | `/fire-loop` Step 9 | On STALLED → SPINNING transition |
|
|
180
|
+
| Approach rotation | `/fire-loop` Step 9 | On SPINNING state (forced rotation) |
|
|
181
|
+
|
|
182
|
+
Auto-generated reflections use `--from debug` or `--from session` to extract context automatically.
|
|
183
|
+
|
|
184
|
+
---
|
|
185
|
+
|
|
186
|
+
## Pre-Investigation Search
|
|
187
|
+
|
|
188
|
+
Before starting any debug or complex task, search reflections:
|
|
189
|
+
|
|
190
|
+
```
|
|
191
|
+
Search reflections for: "[error symptoms]"
|
|
192
|
+
If match found with relevant lesson:
|
|
193
|
+
"I've encountered this before — {lesson}. Applying directly instead of re-investigating."
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
This is wired into:
|
|
197
|
+
- `/fire-debug` Step 2.5 — Search before investigating
|
|
198
|
+
- `/fire-loop` iteration start — Check for known failure patterns
|
|
199
|
+
|
|
200
|
+
---
|
|
201
|
+
|
|
202
|
+
## Reflection Quality Guidelines
|
|
203
|
+
|
|
204
|
+
**Good reflection:**
|
|
205
|
+
- Specific symptoms (error messages, behaviors)
|
|
206
|
+
- Multiple failed approaches with reasons
|
|
207
|
+
- Concrete solution (code, command, config change)
|
|
208
|
+
- One-sentence lesson that's useful without context
|
|
209
|
+
- Search triggers that match how you'd describe the problem
|
|
210
|
+
|
|
211
|
+
**Bad reflection:**
|
|
212
|
+
- Vague ("something was wrong")
|
|
213
|
+
- Only records the solution without the journey
|
|
214
|
+
- No search triggers
|
|
215
|
+
- Lesson is too abstract ("be more careful")
|
|
216
|
+
|
|
217
|
+
---
|
|
218
|
+
|
|
219
|
+
## Success Criteria
|
|
220
|
+
|
|
221
|
+
- [ ] Reflection file created with all sections filled
|
|
222
|
+
- [ ] Tags extracted from problem domain
|
|
223
|
+
- [ ] Severity classified correctly
|
|
224
|
+
- [ ] Search triggers are realistic symptom descriptions
|
|
225
|
+
- [ ] Lesson is a single actionable sentence
|
|
226
|
+
- [ ] File saved to `~/.claude/reflections/`
|
|
227
|
+
|
|
228
|
+
---
|
|
229
|
+
|
|
230
|
+
## References
|
|
231
|
+
|
|
232
|
+
- **Research:** Reflexion (NeurIPS 2023) — verbal self-reflection, 91% pass@1
|
|
233
|
+
- **Storage:** `~/.claude/reflections/` — searchable via vector memory
|
|
234
|
+
- **Index:** Qdrant sourceType: `reflection` — auto-indexed by your-memory-repo
|
|
235
|
+
- **Related:** `/fire-debug`, `/fire-loop`, `/fire-remember`
|