agileflow 2.75.0 → 2.76.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.
@@ -36,7 +36,9 @@ node .agileflow/scripts/agileflow-configure.js --repair=statusline # Fix specif
36
36
 
37
37
  ### Features
38
38
 
39
- `sessionstart`, `precompact`, `archival`, `statusline`, `autoupdate`
39
+ `sessionstart`, `precompact`, `ralphloop`, `selfimprove`, `archival`, `statusline`, `autoupdate`
40
+
41
+ **Stop hooks** (ralphloop, selfimprove) run when Claude completes or pauses work.
40
42
 
41
43
  ### Critical Rules
42
44
 
@@ -162,12 +164,12 @@ node .agileflow/scripts/agileflow-configure.js --enable=archival --archival-days
162
164
 
163
165
  ## Profile Details
164
166
 
165
- | Profile | SessionStart | PreCompact | Archival | StatusLine |
166
- |---------|-------------|------------|----------|------------|
167
- | `full` | ✅ | ✅ | ✅ 30 days | ✅ |
168
- | `basic` | ✅ | ✅ | ✅ 30 days | ❌ |
169
- | `minimal` | ✅ | ❌ | ✅ 30 days | ❌ |
170
- | `none` | ❌ | ❌ | ❌ | ❌ |
167
+ | Profile | SessionStart | PreCompact | RalphLoop | SelfImprove | Archival | StatusLine |
168
+ |---------|-------------|------------|-----------|-------------|----------|------------|
169
+ | `full` | ✅ | ✅ | ✅ | ✅ | ✅ 30 days | ✅ |
170
+ | `basic` | ✅ | ✅ | ❌ | ❌ | ✅ 30 days | ❌ |
171
+ | `minimal` | ✅ | ❌ | ❌ | ❌ | ✅ 30 days | ❌ |
172
+ | `none` | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
171
173
 
172
174
  ## Interactive Mode (via /configure command)
173
175
 
@@ -204,6 +206,8 @@ Based on selection, run appropriate command.
204
206
  "options": [
205
207
  {"label": "SessionStart Hook", "description": "Welcome display with project status"},
206
208
  {"label": "PreCompact Hook", "description": "Context preservation on compact"},
209
+ {"label": "RalphLoop (Stop Hook)", "description": "Autonomous story loop - runs tests, advances stories"},
210
+ {"label": "SelfImprove (Stop Hook)", "description": "Auto-update agent expertise from work"},
207
211
  {"label": "Archival", "description": "Auto-archive old completed stories"},
208
212
  {"label": "Status Line", "description": "Custom status bar"},
209
213
  {"label": "Auto-Update", "description": "Automatically update AgileFlow on session start"}
@@ -215,6 +219,8 @@ Based on selection, run appropriate command.
215
219
  Map selections:
216
220
  - "SessionStart Hook" → `sessionstart`
217
221
  - "PreCompact Hook" → `precompact`
222
+ - "RalphLoop (Stop Hook)" → `ralphloop`
223
+ - "SelfImprove (Stop Hook)" → `selfimprove`
218
224
  - "Archival" → `archival`
219
225
  - "Status Line" → `statusline`
220
226
  - "Auto-Update" → `autoupdate`
@@ -241,6 +247,43 @@ node .agileflow/scripts/agileflow-configure.js --enable=autoupdate
241
247
 
242
248
  **Check frequencies:** `hourly`, `daily`, `weekly`, `never`
243
249
 
250
+ ## Stop Hook Features
251
+
252
+ Stop hooks run when Claude completes a task or pauses for user input. These enable autonomous workflows.
253
+
254
+ ### RalphLoop (`ralphloop`)
255
+
256
+ Autonomous story processing loop (named after the "Ralph Wiggum" pattern):
257
+ - Runs tests automatically when Claude stops
258
+ - If tests pass → marks story as completed, loads next story in epic
259
+ - If tests fail → shows failures for Claude to fix
260
+ - Tracks iterations with configurable limits (default: 20)
261
+ - Enable: `--enable=ralphloop`
262
+
263
+ **How to use:**
264
+ 1. Enable: `node .agileflow/scripts/agileflow-configure.js --enable=ralphloop`
265
+ 2. Start a loop: `node .agileflow/scripts/ralph-loop.js --init --epic=EP-XXXX`
266
+ 3. Work on stories - tests run automatically when Claude stops
267
+ 4. Check status: `node .agileflow/scripts/ralph-loop.js --status`
268
+ 5. Stop loop: `node .agileflow/scripts/ralph-loop.js --stop`
269
+
270
+ ### SelfImprove (`selfimprove`)
271
+
272
+ Automatic agent expertise learning:
273
+ - Analyzes git changes when Claude stops
274
+ - Detects which domain (database, api, ui, etc.) was modified
275
+ - Appends learnings to the relevant agent's expertise.yaml
276
+ - Helps agents improve over time based on actual work
277
+ - Enable: `--enable=selfimprove`
278
+
279
+ **What it learns:**
280
+ - Files modified per domain
281
+ - New patterns discovered
282
+ - Test file changes
283
+ - Configuration updates
284
+
285
+ Both Stop hooks use error suppression (`2>/dev/null || true`) to avoid blocking Claude if they fail.
286
+
244
287
  ## Format Migration Details
245
288
 
246
289
  The script handles these migrations automatically:
@@ -113,6 +113,10 @@ conventions:
113
113
 
114
114
  # Learned from AgileFlow codebase exploration
115
115
  learnings:
116
+ - date: "2026-01-01"
117
+ auto_generated: true
118
+ context: "Test learning"
119
+ insight: "This is a test"
116
120
  - date: 2025-12-21
117
121
  context: "Analyzed docs/ directory structure"
118
122
  insight: "10 numbered directories (00-meta through 10-research) organize all project documentation"
@@ -85,7 +85,7 @@ patterns:
85
85
  example: "See [Research](../10-research/20251216-agent-experts-self-improving-agents.md)"
86
86
 
87
87
  - name: Context Export
88
- description: "/agileflow:context for external AI research"
88
+ description: "/agileflow:research:ask for external AI research prompts"
89
89
  command: "/agileflow:research:ask TOPIC=<topic>"
90
90
  purpose: "Generate prompt for ChatGPT/external AI with project context"
91
91
 
@@ -97,7 +97,7 @@ conventions:
97
97
  - "Include TL;DR at top for quick scanning"
98
98
  - "Flag research >90 days old as potentially stale"
99
99
  - "Create retrospective notes after major implementations"
100
- - "Use /agileflow:context for external AI research prompts"
100
+ - "Use /agileflow:research:ask for external AI research prompts prompts"
101
101
 
102
102
  research_categories:
103
103
  - "Technology evaluation (framework, library)"
@@ -208,7 +208,7 @@ Research findings, investigations, and technical explorations.
208
208
 
209
209
  ## Format
210
210
 
211
- Use \`/agileflow:research\` to create new research notes.
211
+ Use \`/agileflow:research:ask\` to generate research prompts for web AI, then \`/agileflow:research:import\` to bring results back.
212
212
 
213
213
  | Date | Topic | Path | Summary |
214
214
  |------|-------|------|---------|