@hivehub/rulebook 5.5.1 → 5.7.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/commands/rulebook-learn-capture.md +41 -48
- package/.claude/commands/rulebook-learn-list.md +13 -13
- package/README.md +332 -394
- package/dist/cli/commands/context-intelligence.d.ts +0 -1
- package/dist/cli/commands/context-intelligence.d.ts.map +1 -1
- package/dist/cli/commands/context-intelligence.js +12 -33
- package/dist/cli/commands/context-intelligence.js.map +1 -1
- package/dist/cli/commands/index.d.ts +4 -7
- package/dist/cli/commands/index.d.ts.map +1 -1
- package/dist/cli/commands/index.js +4 -7
- package/dist/cli/commands/index.js.map +1 -1
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +40 -81
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/mcp.d.ts +0 -1
- package/dist/cli/commands/mcp.d.ts.map +1 -1
- package/dist/cli/commands/mcp.js +1 -7
- package/dist/cli/commands/mcp.js.map +1 -1
- package/dist/cli/commands/memory.d.ts +7 -1
- package/dist/cli/commands/memory.d.ts.map +1 -1
- package/dist/cli/commands/memory.js +51 -57
- package/dist/cli/commands/memory.js.map +1 -1
- package/dist/cli/commands/misc.d.ts +1 -15
- package/dist/cli/commands/misc.d.ts.map +1 -1
- package/dist/cli/commands/misc.js +36 -215
- package/dist/cli/commands/misc.js.map +1 -1
- package/dist/cli/commands/plans.d.ts +0 -6
- package/dist/cli/commands/plans.d.ts.map +1 -1
- package/dist/cli/commands/plans.js +9 -77
- package/dist/cli/commands/plans.js.map +1 -1
- package/dist/cli/commands/skills.js +6 -6
- package/dist/cli/commands/skills.js.map +1 -1
- package/dist/cli/commands/task.js +4 -4
- package/dist/cli/commands/task.js.map +1 -1
- package/dist/cli/commands/update.d.ts.map +1 -1
- package/dist/cli/commands/update.js +122 -52
- package/dist/cli/commands/update.js.map +1 -1
- package/dist/cli/prompts.d.ts.map +1 -1
- package/dist/cli/prompts.js +1 -78
- package/dist/cli/prompts.js.map +1 -1
- package/dist/core/claude/claude-mcp.d.ts +59 -0
- package/dist/core/claude/claude-mcp.d.ts.map +1 -0
- package/dist/core/claude/claude-mcp.js +220 -0
- package/dist/core/claude/claude-mcp.js.map +1 -0
- package/dist/core/claude/claude-md-generator.d.ts +52 -0
- package/dist/core/claude/claude-md-generator.d.ts.map +1 -0
- package/dist/core/claude/claude-md-generator.js +104 -0
- package/dist/core/claude/claude-md-generator.js.map +1 -0
- package/dist/core/claude/claude-settings-manager.d.ts +44 -0
- package/dist/core/claude/claude-settings-manager.d.ts.map +1 -0
- package/dist/core/claude/claude-settings-manager.js +194 -0
- package/dist/core/claude/claude-settings-manager.js.map +1 -0
- package/dist/core/claude-settings-manager.d.ts.map +1 -1
- package/dist/core/claude-settings-manager.js +9 -3
- package/dist/core/claude-settings-manager.js.map +1 -1
- package/dist/core/console/cli-bridge.d.ts +113 -0
- package/dist/core/console/cli-bridge.d.ts.map +1 -0
- package/dist/core/console/cli-bridge.js +1094 -0
- package/dist/core/console/cli-bridge.js.map +1 -0
- package/dist/core/detect/detector.d.ts +35 -0
- package/dist/core/detect/detector.d.ts.map +1 -0
- package/dist/core/detect/detector.js +541 -0
- package/dist/core/detect/detector.js.map +1 -0
- package/dist/core/docs/docs-generator.d.ts +9 -0
- package/dist/core/docs/docs-generator.d.ts.map +1 -0
- package/dist/core/docs/docs-generator.js +531 -0
- package/dist/core/docs/docs-generator.js.map +1 -0
- package/dist/core/docs/mcp-reference-generator.d.ts +13 -0
- package/dist/core/docs/mcp-reference-generator.d.ts.map +1 -0
- package/dist/core/docs/mcp-reference-generator.js +66 -0
- package/dist/core/docs/mcp-reference-generator.js.map +1 -0
- package/dist/core/generators/generator.d.ts +54 -0
- package/dist/core/generators/generator.d.ts.map +1 -0
- package/dist/core/generators/generator.js +1041 -0
- package/dist/core/generators/generator.js.map +1 -0
- package/dist/core/generators/gitignore-generator.d.ts +13 -0
- package/dist/core/generators/gitignore-generator.d.ts.map +1 -0
- package/dist/core/generators/gitignore-generator.js +307 -0
- package/dist/core/generators/gitignore-generator.js.map +1 -0
- package/dist/core/generators/minimal-scaffolder.d.ts +8 -0
- package/dist/core/generators/minimal-scaffolder.d.ts.map +1 -0
- package/dist/core/generators/minimal-scaffolder.js +51 -0
- package/dist/core/generators/minimal-scaffolder.js.map +1 -0
- package/dist/core/generators/rules-generator.d.ts +73 -0
- package/dist/core/generators/rules-generator.d.ts.map +1 -0
- package/dist/core/generators/rules-generator.js +202 -0
- package/dist/core/generators/rules-generator.js.map +1 -0
- package/dist/core/generators/workflow-generator.d.ts +15 -0
- package/dist/core/generators/workflow-generator.d.ts.map +1 -0
- package/dist/core/generators/workflow-generator.js +390 -0
- package/dist/core/generators/workflow-generator.js.map +1 -0
- package/dist/core/ide/multi-tool-generator.d.ts +59 -0
- package/dist/core/ide/multi-tool-generator.d.ts.map +1 -0
- package/dist/core/ide/multi-tool-generator.js +157 -0
- package/dist/core/ide/multi-tool-generator.js.map +1 -0
- package/dist/core/ide/opencode-generator.d.ts +72 -0
- package/dist/core/ide/opencode-generator.d.ts.map +1 -0
- package/dist/core/ide/opencode-generator.js +450 -0
- package/dist/core/ide/opencode-generator.js.map +1 -0
- package/dist/core/merger.d.ts +1 -1
- package/dist/core/merger.d.ts.map +1 -1
- package/dist/core/merger.js +5 -5
- package/dist/core/merger.js.map +1 -1
- package/dist/core/migrator.d.ts +0 -1
- package/dist/core/migrator.d.ts.map +1 -1
- package/dist/core/migrator.js +4 -29
- package/dist/core/migrator.js.map +1 -1
- package/dist/core/quality/coverage-checker.d.ts +14 -0
- package/dist/core/quality/coverage-checker.d.ts.map +1 -0
- package/dist/core/quality/coverage-checker.js +176 -0
- package/dist/core/quality/coverage-checker.js.map +1 -0
- package/dist/core/quality/dependency-checker.d.ts +21 -0
- package/dist/core/quality/dependency-checker.d.ts.map +1 -0
- package/dist/core/quality/dependency-checker.js +247 -0
- package/dist/core/quality/dependency-checker.js.map +1 -0
- package/dist/core/quality/doctor.d.ts +19 -0
- package/dist/core/quality/doctor.d.ts.map +1 -0
- package/dist/core/quality/doctor.js +163 -0
- package/dist/core/quality/doctor.js.map +1 -0
- package/dist/core/quality/validator.d.ts +21 -0
- package/dist/core/quality/validator.d.ts.map +1 -0
- package/dist/core/quality/validator.js +177 -0
- package/dist/core/quality/validator.js.map +1 -0
- package/dist/core/ralph-scripts.d.ts.map +1 -1
- package/dist/core/ralph-scripts.js +7 -6
- package/dist/core/ralph-scripts.js.map +1 -1
- package/dist/core/skills/skills-manager.d.ts +126 -0
- package/dist/core/skills/skills-manager.d.ts.map +1 -0
- package/dist/core/skills/skills-manager.js +630 -0
- package/dist/core/skills/skills-manager.js.map +1 -0
- package/dist/core/state/config-manager.d.ts +86 -0
- package/dist/core/state/config-manager.d.ts.map +1 -0
- package/dist/core/state/config-manager.js +562 -0
- package/dist/core/state/config-manager.js.map +1 -0
- package/dist/core/state/override-manager.d.ts +23 -0
- package/dist/core/state/override-manager.d.ts.map +1 -0
- package/dist/core/state/override-manager.js +82 -0
- package/dist/core/state/override-manager.js.map +1 -0
- package/dist/core/state/state-writer.d.ts +34 -0
- package/dist/core/state/state-writer.d.ts.map +1 -0
- package/dist/core/state/state-writer.js +78 -0
- package/dist/core/state/state-writer.js.map +1 -0
- package/dist/core/state/version-bumper.d.ts +19 -0
- package/dist/core/state/version-bumper.d.ts.map +1 -0
- package/dist/core/state/version-bumper.js +180 -0
- package/dist/core/state/version-bumper.js.map +1 -0
- package/dist/core/tasks/decision-manager.d.ts +25 -0
- package/dist/core/tasks/decision-manager.d.ts.map +1 -0
- package/dist/core/tasks/decision-manager.js +183 -0
- package/dist/core/tasks/decision-manager.js.map +1 -0
- package/dist/core/tasks/knowledge-manager.d.ts +24 -0
- package/dist/core/tasks/knowledge-manager.d.ts.map +1 -0
- package/dist/core/tasks/knowledge-manager.js +173 -0
- package/dist/core/tasks/knowledge-manager.js.map +1 -0
- package/dist/core/tasks/learn-manager.d.ts +27 -0
- package/dist/core/tasks/learn-manager.d.ts.map +1 -0
- package/dist/core/tasks/learn-manager.js +121 -0
- package/dist/core/tasks/learn-manager.js.map +1 -0
- package/dist/core/tasks/plans-manager.d.ts +46 -0
- package/dist/core/tasks/plans-manager.d.ts.map +1 -0
- package/dist/core/tasks/plans-manager.js +158 -0
- package/dist/core/tasks/plans-manager.js.map +1 -0
- package/dist/core/tasks/task-manager.d.ts +127 -0
- package/dist/core/tasks/task-manager.d.ts.map +1 -0
- package/dist/core/tasks/task-manager.js +607 -0
- package/dist/core/tasks/task-manager.js.map +1 -0
- package/dist/core/workspace/project-worker.d.ts +6 -6
- package/dist/core/workspace/project-worker.d.ts.map +1 -1
- package/dist/core/workspace/project-worker.js +6 -6
- package/dist/core/workspace/project-worker.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19 -176
- package/dist/index.js.map +1 -1
- package/dist/mcp/rulebook-server.d.ts.map +1 -1
- package/dist/mcp/rulebook-server.js +16 -960
- package/dist/mcp/rulebook-server.js.map +1 -1
- package/dist/memory/file-search.d.ts +43 -0
- package/dist/memory/file-search.d.ts.map +1 -0
- package/dist/memory/file-search.js +228 -0
- package/dist/memory/file-search.js.map +1 -0
- package/dist/memory/file-store.d.ts +99 -0
- package/dist/memory/file-store.d.ts.map +1 -0
- package/dist/memory/file-store.js +615 -0
- package/dist/memory/file-store.js.map +1 -0
- package/dist/memory/legacy-migrator.d.ts +27 -0
- package/dist/memory/legacy-migrator.d.ts.map +1 -0
- package/dist/memory/legacy-migrator.js +185 -0
- package/dist/memory/legacy-migrator.js.map +1 -0
- package/dist/memory/memory-manager.d.ts +25 -24
- package/dist/memory/memory-manager.d.ts.map +1 -1
- package/dist/memory/memory-manager.js +97 -140
- package/dist/memory/memory-manager.js.map +1 -1
- package/dist/memory/memory-types.d.ts +1 -1
- package/dist/memory/memory-types.d.ts.map +1 -1
- package/dist/types.d.ts +8 -119
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/file-system.d.ts +22 -0
- package/dist/utils/file-system.d.ts.map +1 -1
- package/dist/utils/file-system.js +31 -0
- package/dist/utils/file-system.js.map +1 -1
- package/dist/utils/git-hooks.d.ts.map +1 -1
- package/dist/utils/git-hooks.js +3 -2
- package/dist/utils/git-hooks.js.map +1 -1
- package/package.json +2 -6
- package/templates/agents/context-intelligence.md +50 -52
- package/templates/cli/OPENCODE.md +85 -18
- package/templates/commands/rulebook-learn-capture.md +41 -48
- package/templates/commands/rulebook-learn-list.md +13 -13
- package/templates/core/AGENTS_LEAN.md +0 -14
- package/templates/hooks/check-context-and-handoff.sh +74 -76
- package/templates/hooks/enforce-pre-tool.sh +70 -0
- package/templates/hooks/enforce-team-for-background-agents.sh +55 -55
- package/templates/hooks/on-compact-reinject.sh +34 -34
- package/templates/hooks/resume-from-handoff.sh +61 -61
- package/templates/hooks/terse-activate.sh +197 -197
- package/templates/hooks/terse-mode-tracker.sh +190 -187
- package/templates/ides/OPENCODE.md +63 -0
- package/templates/skills/cli/opencode/SKILL.md +82 -28
- package/.claude/commands/ralph-config.md +0 -112
- package/.claude/commands/ralph-history.md +0 -110
- package/.claude/commands/ralph-init.md +0 -72
- package/.claude/commands/ralph-pause-resume.md +0 -105
- package/.claude/commands/ralph-run.md +0 -101
- package/.claude/commands/ralph-status.md +0 -76
- package/templates/core/RALPH.md +0 -471
- package/templates/frameworks/ANGULAR.md +0 -36
- package/templates/frameworks/DJANGO.md +0 -83
- package/templates/frameworks/ELECTRON.md +0 -147
- package/templates/frameworks/FLASK.md +0 -38
- package/templates/frameworks/FLUTTER.md +0 -55
- package/templates/frameworks/JQUERY.md +0 -32
- package/templates/frameworks/LARAVEL.md +0 -38
- package/templates/frameworks/NESTJS.md +0 -43
- package/templates/frameworks/NEXTJS.md +0 -127
- package/templates/frameworks/NUXT.md +0 -40
- package/templates/frameworks/RAILS.md +0 -66
- package/templates/frameworks/REACT.md +0 -38
- package/templates/frameworks/REACT_NATIVE.md +0 -47
- package/templates/frameworks/SPRING.md +0 -39
- package/templates/frameworks/SYMFONY.md +0 -36
- package/templates/frameworks/VUE.md +0 -36
- package/templates/frameworks/ZEND.md +0 -35
- package/templates/hooks/enforce-mcp-for-tasks.sh +0 -31
- package/templates/hooks/enforce-no-deferred.sh +0 -21
- package/templates/hooks/enforce-no-shortcuts.sh +0 -31
- package/templates/ides/COPILOT.md +0 -37
- package/templates/ides/CURSOR.md +0 -43
- package/templates/ides/JETBRAINS_AI.md +0 -35
- package/templates/ides/REPLIT.md +0 -36
- package/templates/ides/TABNINE.md +0 -29
- package/templates/ides/VSCODE.md +0 -40
- package/templates/ides/WINDSURF.md +0 -36
- package/templates/ides/ZED.md +0 -32
- package/templates/ides/cursor-mdc/go.mdc +0 -24
- package/templates/ides/cursor-mdc/python.mdc +0 -24
- package/templates/ides/cursor-mdc/quality.mdc +0 -25
- package/templates/ides/cursor-mdc/ralph.mdc +0 -39
- package/templates/ides/cursor-mdc/rulebook.mdc +0 -38
- package/templates/ides/cursor-mdc/rust.mdc +0 -24
- package/templates/ides/cursor-mdc/typescript.mdc +0 -25
- package/templates/ralph/ralph-history.bat +0 -4
- package/templates/ralph/ralph-history.sh +0 -5
- package/templates/ralph/ralph-init.bat +0 -5
- package/templates/ralph/ralph-init.sh +0 -5
- package/templates/ralph/ralph-pause.bat +0 -5
- package/templates/ralph/ralph-pause.sh +0 -5
- package/templates/ralph/ralph-run.bat +0 -5
- package/templates/ralph/ralph-run.sh +0 -5
- package/templates/ralph/ralph-status.bat +0 -4
- package/templates/ralph/ralph-status.sh +0 -5
- package/templates/services/AZURE_BLOB.md +0 -184
- package/templates/services/CASSANDRA.md +0 -239
- package/templates/services/DATADOG.md +0 -26
- package/templates/services/DOCKER.md +0 -124
- package/templates/services/DOCKER_COMPOSE.md +0 -168
- package/templates/services/DYNAMODB.md +0 -308
- package/templates/services/ELASTICSEARCH.md +0 -347
- package/templates/services/GCS.md +0 -178
- package/templates/services/HELM.md +0 -194
- package/templates/services/INFLUXDB.md +0 -265
- package/templates/services/KAFKA.md +0 -341
- package/templates/services/KUBERNETES.md +0 -208
- package/templates/services/MARIADB.md +0 -183
- package/templates/services/MEMCACHED.md +0 -242
- package/templates/services/MINIO.md +0 -201
- package/templates/services/MONGODB.md +0 -268
- package/templates/services/MYSQL.md +0 -358
- package/templates/services/NEO4J.md +0 -247
- package/templates/services/OPENTELEMETRY.md +0 -25
- package/templates/services/ORACLE.md +0 -290
- package/templates/services/PINO.md +0 -24
- package/templates/services/POSTGRESQL.md +0 -326
- package/templates/services/PROMETHEUS.md +0 -33
- package/templates/services/RABBITMQ.md +0 -286
- package/templates/services/REDIS.md +0 -292
- package/templates/services/S3.md +0 -298
- package/templates/services/SENTRY.md +0 -23
- package/templates/services/SQLITE.md +0 -294
- package/templates/services/SQLSERVER.md +0 -294
- package/templates/services/WINSTON.md +0 -30
- package/templates/skills/frameworks/angular/SKILL.md +0 -46
- package/templates/skills/frameworks/django/SKILL.md +0 -93
- package/templates/skills/frameworks/electron/SKILL.md +0 -157
- package/templates/skills/frameworks/flask/SKILL.md +0 -48
- package/templates/skills/frameworks/flutter/SKILL.md +0 -65
- package/templates/skills/frameworks/jquery/SKILL.md +0 -42
- package/templates/skills/frameworks/laravel/SKILL.md +0 -48
- package/templates/skills/frameworks/nestjs/SKILL.md +0 -53
- package/templates/skills/frameworks/nextjs/SKILL.md +0 -137
- package/templates/skills/frameworks/nuxt/SKILL.md +0 -50
- package/templates/skills/frameworks/rails/SKILL.md +0 -76
- package/templates/skills/frameworks/react/SKILL.md +0 -48
- package/templates/skills/frameworks/react-native/SKILL.md +0 -57
- package/templates/skills/frameworks/spring/SKILL.md +0 -49
- package/templates/skills/frameworks/symfony/SKILL.md +0 -46
- package/templates/skills/frameworks/vue/SKILL.md +0 -46
- package/templates/skills/frameworks/zend/SKILL.md +0 -45
- package/templates/skills/services/azure-blob/SKILL.md +0 -194
- package/templates/skills/services/cassandra/SKILL.md +0 -249
- package/templates/skills/services/dynamodb/SKILL.md +0 -318
- package/templates/skills/services/elasticsearch/SKILL.md +0 -357
- package/templates/skills/services/gcs/SKILL.md +0 -188
- package/templates/skills/services/influxdb/SKILL.md +0 -275
- package/templates/skills/services/kafka/SKILL.md +0 -351
- package/templates/skills/services/mariadb/SKILL.md +0 -193
- package/templates/skills/services/memcached/SKILL.md +0 -252
- package/templates/skills/services/minio/SKILL.md +0 -211
- package/templates/skills/services/mongodb/SKILL.md +0 -278
- package/templates/skills/services/mysql/SKILL.md +0 -368
- package/templates/skills/services/neo4j/SKILL.md +0 -257
- package/templates/skills/services/oracle/SKILL.md +0 -300
- package/templates/skills/services/postgresql/SKILL.md +0 -336
- package/templates/skills/services/rabbitmq/SKILL.md +0 -296
- package/templates/skills/services/redis/SKILL.md +0 -302
- package/templates/skills/services/s3/SKILL.md +0 -308
- package/templates/skills/services/sqlite/SKILL.md +0 -304
- package/templates/skills/services/sqlserver/SKILL.md +0 -304
- package/templates/skills/workflows/ralph/SETUP.md +0 -228
- package/templates/skills/workflows/ralph/SKILL.md +0 -309
- package/templates/skills/workflows/ralph/install.sh +0 -87
- package/templates/skills/workflows/ralph/manifest.json +0 -158
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: /ralph-config
|
|
3
|
-
id: ralph-config
|
|
4
|
-
category: Ralph
|
|
5
|
-
description: Configure Ralph autonomous loop settings and parameters.
|
|
6
|
-
---
|
|
7
|
-
<!-- RALPH:START -->
|
|
8
|
-
**Overview**
|
|
9
|
-
Manage Ralph's configuration including max iterations, AI tool selection, and other loop parameters. Configuration is stored in `.rulebook/ralph/config.json`.
|
|
10
|
-
|
|
11
|
-
**Guardrails**
|
|
12
|
-
- Configuration applies to future iterations only
|
|
13
|
-
- Changing config mid-loop may not affect current iteration
|
|
14
|
-
- Save configuration changes before resuming loop
|
|
15
|
-
- Common settings: max_iterations, ai_tool, branch_name
|
|
16
|
-
|
|
17
|
-
**Configuration Options**
|
|
18
|
-
|
|
19
|
-
### Max Iterations
|
|
20
|
-
Maximum number of iterations Ralph will run before stopping.
|
|
21
|
-
```bash
|
|
22
|
-
rulebook ralph config set max_iterations 20
|
|
23
|
-
```
|
|
24
|
-
- Recommended: 5-20 for most projects
|
|
25
|
-
- Higher values allow more complex tasks to complete
|
|
26
|
-
- Lower values quick validation runs
|
|
27
|
-
|
|
28
|
-
### AI Tool
|
|
29
|
-
Which AI tool to use for solving tasks (claude, cursor, gemini).
|
|
30
|
-
```bash
|
|
31
|
-
rulebook ralph config set ai_tool claude
|
|
32
|
-
```
|
|
33
|
-
- `claude` (recommended): Best for complex reasoning
|
|
34
|
-
- `cursor`: Fast iteration if you have Cursor CLI
|
|
35
|
-
- `gemini`: Alternative option for diversity
|
|
36
|
-
- Note: Tool must be installed and available on CLI
|
|
37
|
-
|
|
38
|
-
### Branch Name
|
|
39
|
-
Git branch Ralph works on for this loop.
|
|
40
|
-
```bash
|
|
41
|
-
rulebook ralph config set branch_name ralph/my-feature
|
|
42
|
-
```
|
|
43
|
-
- Automatically set during init
|
|
44
|
-
- Change if working on different feature
|
|
45
|
-
- Ralph commits to this branch
|
|
46
|
-
|
|
47
|
-
### Project Name
|
|
48
|
-
Project name for documentation and tracking.
|
|
49
|
-
```bash
|
|
50
|
-
rulebook ralph config set project_name my-project
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
**Steps**
|
|
54
|
-
|
|
55
|
-
1. **View Current Configuration**:
|
|
56
|
-
```bash
|
|
57
|
-
rulebook ralph config show
|
|
58
|
-
```
|
|
59
|
-
Displays all current settings
|
|
60
|
-
|
|
61
|
-
2. **Update a Setting**:
|
|
62
|
-
```bash
|
|
63
|
-
rulebook ralph config set <key> <value>
|
|
64
|
-
```
|
|
65
|
-
Example:
|
|
66
|
-
```bash
|
|
67
|
-
rulebook ralph config set max_iterations 15
|
|
68
|
-
rulebook ralph config set ai_tool cursor
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
3. **Reset to Defaults**:
|
|
72
|
-
```bash
|
|
73
|
-
rulebook ralph config reset
|
|
74
|
-
```
|
|
75
|
-
Resets to default values from init
|
|
76
|
-
|
|
77
|
-
4. **Verify Changes**:
|
|
78
|
-
```bash
|
|
79
|
-
rulebook ralph status
|
|
80
|
-
```
|
|
81
|
-
Shows updated config in status output
|
|
82
|
-
|
|
83
|
-
**Configuration File**
|
|
84
|
-
Location: `.rulebook/ralph/config.json`
|
|
85
|
-
|
|
86
|
-
Example structure:
|
|
87
|
-
```json
|
|
88
|
-
{
|
|
89
|
-
"enabled": true,
|
|
90
|
-
"max_iterations": 10,
|
|
91
|
-
"current_iteration": 0,
|
|
92
|
-
"ai_tool": "claude",
|
|
93
|
-
"project_name": "my-project",
|
|
94
|
-
"branch_name": "ralph/my-project",
|
|
95
|
-
"paused": false
|
|
96
|
-
}
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
**Workflow**
|
|
100
|
-
1. Initialize Ralph: `rulebook ralph init` (sets initial config)
|
|
101
|
-
2. Review config: `rulebook ralph config show`
|
|
102
|
-
3. Adjust as needed: `rulebook ralph config set <key> <value>`
|
|
103
|
-
4. Start loop: `rulebook ralph run`
|
|
104
|
-
5. Monitor with: `rulebook ralph status`
|
|
105
|
-
|
|
106
|
-
**Troubleshooting**
|
|
107
|
-
- **Config file missing**: Run `rulebook ralph init` again
|
|
108
|
-
- **Settings not updating**: Ensure you're using correct key name
|
|
109
|
-
- **Changes not taking effect**: Pause loop, update config, then resume
|
|
110
|
-
- **Invalid ai_tool**: Check tool is installed (e.g., `claude --version`)
|
|
111
|
-
|
|
112
|
-
<!-- RALPH:END -->
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: /ralph-history
|
|
3
|
-
id: ralph-history
|
|
4
|
-
category: Ralph
|
|
5
|
-
description: View past Ralph iterations, quality check results, and learnings.
|
|
6
|
-
---
|
|
7
|
-
<!-- RALPH:START -->
|
|
8
|
-
**Overview**
|
|
9
|
-
Review detailed records of all Ralph iterations, including:
|
|
10
|
-
- Task completion status
|
|
11
|
-
- Quality gate results (type-check, lint, tests, coverage)
|
|
12
|
-
- Execution time and performance metrics
|
|
13
|
-
- Errors encountered and learnings discovered
|
|
14
|
-
- Git commits associated with each iteration
|
|
15
|
-
|
|
16
|
-
**Guardrails**
|
|
17
|
-
- History is automatically recorded by Ralph during execution
|
|
18
|
-
- Read-only view - use to analyze and debug past iterations
|
|
19
|
-
- Useful for identifying patterns in failures or learning opportunities
|
|
20
|
-
- Each iteration is stored separately for audit trail
|
|
21
|
-
|
|
22
|
-
**Steps**
|
|
23
|
-
1. **View All Iterations**:
|
|
24
|
-
```bash
|
|
25
|
-
rulebook ralph history
|
|
26
|
-
```
|
|
27
|
-
Shows summary of all iterations with status and task info
|
|
28
|
-
|
|
29
|
-
2. **View Latest Iterations**:
|
|
30
|
-
```bash
|
|
31
|
-
rulebook ralph history --limit 5
|
|
32
|
-
```
|
|
33
|
-
Shows most recent N iterations (useful for large iteration counts)
|
|
34
|
-
|
|
35
|
-
3. **View Specific Iteration**:
|
|
36
|
-
```bash
|
|
37
|
-
rulebook ralph history --iteration 3
|
|
38
|
-
```
|
|
39
|
-
Shows detailed information for iteration 3
|
|
40
|
-
|
|
41
|
-
4. **Export History**:
|
|
42
|
-
```bash
|
|
43
|
-
rulebook ralph history --export history.json
|
|
44
|
-
```
|
|
45
|
-
Exports full iteration history for analysis
|
|
46
|
-
|
|
47
|
-
**Iteration Record Fields**
|
|
48
|
-
Each iteration record contains:
|
|
49
|
-
- **Metadata**:
|
|
50
|
-
- Iteration number
|
|
51
|
-
- Timestamp
|
|
52
|
-
- Task ID and title
|
|
53
|
-
- AI tool used
|
|
54
|
-
- Execution time (ms)
|
|
55
|
-
- Status: success / partial / failed
|
|
56
|
-
|
|
57
|
-
- **Quality Checks**:
|
|
58
|
-
- type-check: TypeScript compilation result
|
|
59
|
-
- lint: ESLint check result
|
|
60
|
-
- tests: Test suite result
|
|
61
|
-
- coverage_met: Coverage threshold result
|
|
62
|
-
|
|
63
|
-
- **Output**:
|
|
64
|
-
- output_summary: Summary of what was done
|
|
65
|
-
- learnings: Insights discovered during iteration
|
|
66
|
-
- errors: Any errors encountered
|
|
67
|
-
|
|
68
|
-
- **Git**:
|
|
69
|
-
- git_commit: Commit hash if changes were committed
|
|
70
|
-
- branch: Branch used for this iteration
|
|
71
|
-
|
|
72
|
-
**Analyzing History**
|
|
73
|
-
1. **Success Rate**:
|
|
74
|
-
```bash
|
|
75
|
-
# Successful iterations / total iterations
|
|
76
|
-
# Shows loop health and AI tool effectiveness
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
2. **Quality Gate Patterns**:
|
|
80
|
-
- Check which gates fail most often
|
|
81
|
-
- Identify systematic issues (e.g., always failing lint)
|
|
82
|
-
- Plan improvements based on failure patterns
|
|
83
|
-
|
|
84
|
-
3. **Learnings Extraction**:
|
|
85
|
-
- Ralph records lessons learned from each iteration
|
|
86
|
-
- Use these to improve task definitions or AI prompts
|
|
87
|
-
- Share with team for knowledge base
|
|
88
|
-
|
|
89
|
-
4. **Performance Metrics**:
|
|
90
|
-
- Track execution time per iteration
|
|
91
|
-
- Identify slow tasks or AI tools
|
|
92
|
-
- Optimize based on trends
|
|
93
|
-
|
|
94
|
-
**Location**
|
|
95
|
-
- Iteration records stored in: `.rulebook/ralph/history/`
|
|
96
|
-
- Each file named: `iteration-<N>.json`
|
|
97
|
-
- Full history also available in: `.rulebook/ralph/history-all.json`
|
|
98
|
-
|
|
99
|
-
**Using History for Debugging**
|
|
100
|
-
1. **Failed iteration**: Check error field for root cause
|
|
101
|
-
2. **Partial success**: Review which quality gates failed
|
|
102
|
-
3. **Slow iteration**: Check execution_time_ms
|
|
103
|
-
4. **Pattern analysis**: Compare multiple iterations for trends
|
|
104
|
-
|
|
105
|
-
**Next Steps**
|
|
106
|
-
- After reviewing history, fix issues and retry: `rulebook ralph run`
|
|
107
|
-
- Save learnings to persistent memory: `rulebook memory save "learning from iteration" ...`
|
|
108
|
-
- Update PRD based on discoveries from history analysis
|
|
109
|
-
|
|
110
|
-
<!-- RALPH:END -->
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: /ralph-init
|
|
3
|
-
id: ralph-init
|
|
4
|
-
category: Ralph
|
|
5
|
-
description: Initialize Ralph autonomous loop for AI-driven task completion in a project.
|
|
6
|
-
---
|
|
7
|
-
<!-- RALPH:START -->
|
|
8
|
-
**Overview**
|
|
9
|
-
Ralph is an autonomous AI loop that iteratively solves tasks from a PRD (Product Requirements Document). It runs your AI tool (Claude, Cursor, Gemini) in a continuous loop, tracks iterations, and learns from execution results.
|
|
10
|
-
|
|
11
|
-
**Guardrails**
|
|
12
|
-
- Always initialize Ralph before running iterations
|
|
13
|
-
- Use `rulebook ralph status` to check initialization and loop state
|
|
14
|
-
- Set appropriate max iterations (5-20 recommended for most projects)
|
|
15
|
-
- Keep the AI tool consistent across iterations for learning continuity
|
|
16
|
-
|
|
17
|
-
**Prerequisites**
|
|
18
|
-
- Project must be initialized with `rulebook init`
|
|
19
|
-
- Git repository must be set up with a remote origin
|
|
20
|
-
- Current branch will be used as the base for Ralph work
|
|
21
|
-
|
|
22
|
-
**Steps**
|
|
23
|
-
1. **Initialize Ralph**:
|
|
24
|
-
```bash
|
|
25
|
-
rulebook ralph init
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
2. **Interactive Setup**:
|
|
29
|
-
- Select max iterations (number of attempts to complete tasks)
|
|
30
|
-
- Choose AI tool: `claude` (recommended), `cursor`, or `gemini`
|
|
31
|
-
- Creates `.rulebook/ralph/` directory with configuration and PRD
|
|
32
|
-
|
|
33
|
-
3. **Verify Initialization**:
|
|
34
|
-
```bash
|
|
35
|
-
rulebook ralph status
|
|
36
|
-
```
|
|
37
|
-
Should show:
|
|
38
|
-
- `enabled: true`
|
|
39
|
-
- `current_iteration: 0`
|
|
40
|
-
- `max_iterations: <your choice>`
|
|
41
|
-
- `ai_tool: <your choice>`
|
|
42
|
-
|
|
43
|
-
4. **Review Generated PRD**:
|
|
44
|
-
- View `.rulebook/ralph/prd.json` for generated user stories
|
|
45
|
-
- Each story has: `id`, `title`, `description`, `acceptanceCriteria`, `priority`, `passes`, `notes`
|
|
46
|
-
- `passes: false` indicates pending stories
|
|
47
|
-
|
|
48
|
-
5. **Optional: Customize PRD**:
|
|
49
|
-
- Edit user stories directly in `prd.json`
|
|
50
|
-
- Adjust priorities, add acceptance criteria, refine descriptions
|
|
51
|
-
- Ralph will track which stories are completed (`passes: true`)
|
|
52
|
-
|
|
53
|
-
**Output**
|
|
54
|
-
Ralph creates:
|
|
55
|
-
- `.rulebook/ralph/prd.json` - The product requirements document
|
|
56
|
-
- `.rulebook/ralph/config.json` - Loop configuration (max_iterations, ai_tool)
|
|
57
|
-
- `.rulebook/ralph/history/` - Directory for iteration records
|
|
58
|
-
|
|
59
|
-
**Next Steps**
|
|
60
|
-
After initialization, use:
|
|
61
|
-
- `rulebook ralph run` - Start the autonomous loop
|
|
62
|
-
- `rulebook ralph pause` - Pause ongoing iterations
|
|
63
|
-
- `rulebook ralph resume` - Resume paused loop
|
|
64
|
-
- `rulebook ralph status` - Check current state
|
|
65
|
-
- `rulebook ralph history` - View past iterations
|
|
66
|
-
|
|
67
|
-
**Troubleshooting**
|
|
68
|
-
- **Init hangs**: Check git remote is properly configured (`git remote -v`)
|
|
69
|
-
- **PRD not generated**: Ensure project has valid task/context for Ralph to work with
|
|
70
|
-
- **Configuration lost**: Check `.rulebook/ralph/config.json` exists
|
|
71
|
-
|
|
72
|
-
<!-- RALPH:END -->
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: /ralph-pause-resume
|
|
3
|
-
id: ralph-pause-resume
|
|
4
|
-
category: Ralph
|
|
5
|
-
description: Pause and resume Ralph autonomous loop for manual intervention or debugging.
|
|
6
|
-
---
|
|
7
|
-
<!-- RALPH:START -->
|
|
8
|
-
**Overview**
|
|
9
|
-
Control Ralph's iteration loop by pausing and resuming execution:
|
|
10
|
-
- **Pause**: Stop after current iteration completes, allows manual inspection or fixes
|
|
11
|
-
- **Resume**: Continue from where paused, picking up with next incomplete story
|
|
12
|
-
|
|
13
|
-
**Guardrails**
|
|
14
|
-
- Pause completes current iteration before stopping (safe operation)
|
|
15
|
-
- Loop can only be resumed from paused state
|
|
16
|
-
- Use pause when: debugging failures, making manual fixes, investigating quality issues
|
|
17
|
-
- Keep pause duration short - long pauses may lose AI context
|
|
18
|
-
|
|
19
|
-
**Steps**
|
|
20
|
-
|
|
21
|
-
### Pausing the Loop
|
|
22
|
-
|
|
23
|
-
1. **Pause Ralph**:
|
|
24
|
-
```bash
|
|
25
|
-
rulebook ralph pause
|
|
26
|
-
```
|
|
27
|
-
- Completes current iteration
|
|
28
|
-
- Stops before next iteration starts
|
|
29
|
-
- Preserves all progress and iteration records
|
|
30
|
-
|
|
31
|
-
2. **Verify Paused State**:
|
|
32
|
-
```bash
|
|
33
|
-
rulebook ralph status
|
|
34
|
-
```
|
|
35
|
-
Should show: `Paused: true`
|
|
36
|
-
|
|
37
|
-
3. **Investigate Issues** (while paused):
|
|
38
|
-
- Review latest iteration: `rulebook ralph history --iteration <N>`
|
|
39
|
-
- Check quality gate failures: `rulebook ralph show <story-id>`
|
|
40
|
-
- Review error logs and learnings
|
|
41
|
-
- Make manual fixes to code if needed
|
|
42
|
-
|
|
43
|
-
### Resuming the Loop
|
|
44
|
-
|
|
45
|
-
1. **Resume Ralph**:
|
|
46
|
-
```bash
|
|
47
|
-
rulebook ralph resume
|
|
48
|
-
```
|
|
49
|
-
- Continues from where paused
|
|
50
|
-
- Picks up with next incomplete story
|
|
51
|
-
- Maintains iteration count and progress
|
|
52
|
-
|
|
53
|
-
2. **Verify Running State**:
|
|
54
|
-
```bash
|
|
55
|
-
rulebook ralph status
|
|
56
|
-
```
|
|
57
|
-
Should show: `Paused: false`
|
|
58
|
-
|
|
59
|
-
3. **Monitor Resumed Iterations**:
|
|
60
|
-
```bash
|
|
61
|
-
rulebook ralph history --limit 3
|
|
62
|
-
```
|
|
63
|
-
Check latest iterations to ensure resumption succeeded
|
|
64
|
-
|
|
65
|
-
**Common Workflows**
|
|
66
|
-
|
|
67
|
-
### Debugging Quality Gate Failures
|
|
68
|
-
1. Loop running, tests fail in iteration 5
|
|
69
|
-
2. `rulebook ralph pause` - stops after iteration 5
|
|
70
|
-
3. Analyze: `rulebook ralph history --iteration 5`
|
|
71
|
-
4. Identify test failure root cause
|
|
72
|
-
5. Make manual code fixes
|
|
73
|
-
6. `rulebook ralph resume` - continues from iteration 6
|
|
74
|
-
|
|
75
|
-
### Making Manual Adjustments
|
|
76
|
-
1. Pause loop: `rulebook ralph pause`
|
|
77
|
-
2. Manually edit code based on iteration learnings
|
|
78
|
-
3. Update PRD: `vi .rulebook/ralph/prd.json`
|
|
79
|
-
4. Resume: `rulebook ralph resume` - continues with updated PRD
|
|
80
|
-
|
|
81
|
-
### Inspecting AI Tool Output
|
|
82
|
-
1. Pause: `rulebook ralph pause`
|
|
83
|
-
2. Check `rulebook ralph history --iteration <N>` for AI output
|
|
84
|
-
3. Review learnings and errors from iteration
|
|
85
|
-
4. Resume: `rulebook ralph resume`
|
|
86
|
-
|
|
87
|
-
**Pause vs Stopping**
|
|
88
|
-
- **Pause** (`ralph pause`): Loop continues later with resume
|
|
89
|
-
- **Stop** (Ctrl+C during run): Stops immediately, may interrupt current iteration
|
|
90
|
-
- Use pause for graceful, resumable stops
|
|
91
|
-
- Use Ctrl+C only for emergency stops
|
|
92
|
-
|
|
93
|
-
**State Preservation**
|
|
94
|
-
When paused:
|
|
95
|
-
- Current iteration status saved
|
|
96
|
-
- User story states preserved
|
|
97
|
-
- Learnings and errors recorded
|
|
98
|
-
- Loop progress not lost
|
|
99
|
-
|
|
100
|
-
**Edge Cases**
|
|
101
|
-
- **Can't pause if not running**: Check with `ralph status`
|
|
102
|
-
- **Can't resume if not paused**: Call `ralph run` instead
|
|
103
|
-
- **Resuming after long pause**: Ralph retains context up to max iterations allowed
|
|
104
|
-
|
|
105
|
-
<!-- RALPH:END -->
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: /ralph-run
|
|
3
|
-
id: ralph-run
|
|
4
|
-
category: Ralph
|
|
5
|
-
description: Start Ralph autonomous loop to iteratively complete tasks from the PRD.
|
|
6
|
-
---
|
|
7
|
-
<!-- RALPH:START -->
|
|
8
|
-
**Overview**
|
|
9
|
-
Ralph runs your configured AI tool in a continuous loop, solving user stories from the PRD one at a time. Each iteration:
|
|
10
|
-
1. Picks the next incomplete user story
|
|
11
|
-
2. Invokes your AI tool (Claude, Cursor, or Gemini) to solve it
|
|
12
|
-
3. Parses the output for quality checks and completion status
|
|
13
|
-
4. Records the iteration results
|
|
14
|
-
5. Marks the story as complete if all quality gates pass
|
|
15
|
-
6. Moves to the next story or stops if max iterations reached
|
|
16
|
-
|
|
17
|
-
**Guardrails**
|
|
18
|
-
- Ralph must be initialized first with `rulebook ralph init`
|
|
19
|
-
- Quality gates MUST pass: type-check, lint, tests, coverage
|
|
20
|
-
- Failed iterations are recorded but don't auto-mark stories complete
|
|
21
|
-
- Monitor logs and iteration history for quality issues
|
|
22
|
-
|
|
23
|
-
**Prerequisites**
|
|
24
|
-
- Ralph initialized with `rulebook ralph init`
|
|
25
|
-
- All quality gate tools installed: TypeScript, ESLint, test framework, coverage reporter
|
|
26
|
-
- `.rulebook/ralph/prd.json` exists with user stories
|
|
27
|
-
|
|
28
|
-
**Steps**
|
|
29
|
-
1. **Start the Loop**:
|
|
30
|
-
```bash
|
|
31
|
-
rulebook ralph run
|
|
32
|
-
```
|
|
33
|
-
Ralph will:
|
|
34
|
-
- Load configuration and PRD
|
|
35
|
-
- Find first incomplete story (`passes: false`)
|
|
36
|
-
- Invoke your AI tool
|
|
37
|
-
- Parse output for task completion and quality checks
|
|
38
|
-
|
|
39
|
-
2. **Monitor Execution**:
|
|
40
|
-
- Watch the console for iteration progress
|
|
41
|
-
- Each iteration shows: story ID, title, execution time, quality gate results
|
|
42
|
-
- Ralph will pause on quality gate failures for review
|
|
43
|
-
|
|
44
|
-
3. **Review Iteration Results**:
|
|
45
|
-
```bash
|
|
46
|
-
rulebook ralph history
|
|
47
|
-
```
|
|
48
|
-
Shows:
|
|
49
|
-
- Iteration number
|
|
50
|
-
- Task ID and title
|
|
51
|
-
- Success/partial/failed status
|
|
52
|
-
- Quality check results (type-check, lint, tests, coverage)
|
|
53
|
-
- Execution time
|
|
54
|
-
- Errors and learnings
|
|
55
|
-
|
|
56
|
-
4. **Check Status**:
|
|
57
|
-
```bash
|
|
58
|
-
rulebook ralph status
|
|
59
|
-
```
|
|
60
|
-
Shows:
|
|
61
|
-
- Current iteration count
|
|
62
|
-
- Pending user stories count
|
|
63
|
-
- Completion percentage
|
|
64
|
-
- Paused state (if paused)
|
|
65
|
-
|
|
66
|
-
**Iteration Lifecycle**
|
|
67
|
-
1. **Iteration Start**: Ralph picks next incomplete story
|
|
68
|
-
2. **AI Tool Execution**: Runs your configured tool (Claude/Cursor/Gemini)
|
|
69
|
-
3. **Output Parsing**: Extracts quality checks, errors, completion indicators
|
|
70
|
-
4. **Quality Gates**:
|
|
71
|
-
- type-check ✓ - TypeScript compilation succeeds
|
|
72
|
-
- lint ✓ - ESLint passes without errors
|
|
73
|
-
- tests ✓ - All test suites pass
|
|
74
|
-
- coverage ✓ - Coverage meets thresholds
|
|
75
|
-
5. **Story Completion**: If all gates pass, marks `passes: true`
|
|
76
|
-
6. **Next Iteration**: Moves to next story or completes loop
|
|
77
|
-
|
|
78
|
-
**Quality Gate Failures**
|
|
79
|
-
If gates fail:
|
|
80
|
-
- Status recorded as `partial` or `failed`
|
|
81
|
-
- Story remains `passes: false` for retry
|
|
82
|
-
- Error details saved in iteration history
|
|
83
|
-
- Manual review and fixes may be needed before retry
|
|
84
|
-
|
|
85
|
-
**Pausing and Resuming**
|
|
86
|
-
- `rulebook ralph pause` - Pause after current iteration
|
|
87
|
-
- `rulebook ralph resume` - Continue from where paused
|
|
88
|
-
- Useful for investigating failures or making manual adjustments
|
|
89
|
-
|
|
90
|
-
**Iteration Records**
|
|
91
|
-
Each iteration is recorded in:
|
|
92
|
-
- `.rulebook/ralph/history/iteration-<N>.json` with full details
|
|
93
|
-
- Includes: task details, quality checks, errors, learnings, git commit
|
|
94
|
-
|
|
95
|
-
**Troubleshooting**
|
|
96
|
-
- **Loop stops early**: Check quality gate failures in latest iteration
|
|
97
|
-
- **AI tool not found**: Ensure `rulebook ralph config set ai-tool <tool>` is set correctly
|
|
98
|
-
- **Infinite loops**: Use `rulebook ralph pause` and check loop configuration
|
|
99
|
-
- **Context loss**: Ralph tracks context loss and reports it in iteration metadata
|
|
100
|
-
|
|
101
|
-
<!-- RALPH:END -->
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: /ralph-status
|
|
3
|
-
id: ralph-status
|
|
4
|
-
category: Ralph
|
|
5
|
-
description: Check the status of Ralph autonomous loop and view task completion statistics.
|
|
6
|
-
---
|
|
7
|
-
<!-- RALPH:START -->
|
|
8
|
-
**Overview**
|
|
9
|
-
View the current state of Ralph's autonomous loop, including:
|
|
10
|
-
- Loop enabled/disabled status
|
|
11
|
-
- Current iteration count and max iterations
|
|
12
|
-
- Paused/running state
|
|
13
|
-
- User story completion statistics
|
|
14
|
-
- Overall project progress
|
|
15
|
-
|
|
16
|
-
**Guardrails**
|
|
17
|
-
- Status shows real-time state from `.rulebook/ralph/config.json` and `prd.json`
|
|
18
|
-
- Use status regularly to monitor loop health
|
|
19
|
-
- Paused state prevents iterations from continuing (must resume to continue)
|
|
20
|
-
|
|
21
|
-
**Steps**
|
|
22
|
-
1. **Check Ralph Status**:
|
|
23
|
-
```bash
|
|
24
|
-
rulebook ralph status
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
2. **Interpret Output**:
|
|
28
|
-
```
|
|
29
|
-
Ralph Status:
|
|
30
|
-
├─ Enabled: true
|
|
31
|
-
├─ Current Iteration: 3
|
|
32
|
-
├─ Max Iterations: 10
|
|
33
|
-
├─ AI Tool: claude
|
|
34
|
-
├─ Paused: false
|
|
35
|
-
├─ Task Statistics:
|
|
36
|
-
│ ├─ Total Stories: 5
|
|
37
|
-
│ ├─ Completed: 2
|
|
38
|
-
│ ├─ Pending: 3
|
|
39
|
-
│ └─ Completion: 40%
|
|
40
|
-
└─ Branch: ralph/my-project
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
3. **Status Fields**:
|
|
44
|
-
- **Enabled**: Whether Ralph loop is active
|
|
45
|
-
- **Current Iteration**: Which iteration loop is on (0 = not started)
|
|
46
|
-
- **Max Iterations**: Total iterations allowed before stopping
|
|
47
|
-
- **AI Tool**: Which AI tool is being used (claude, cursor, gemini)
|
|
48
|
-
- **Paused**: Whether loop is paused (must resume to continue)
|
|
49
|
-
- **Task Statistics**: User story completion breakdown
|
|
50
|
-
- **Branch**: Git branch Ralph is working on
|
|
51
|
-
|
|
52
|
-
4. **Check Completion**:
|
|
53
|
-
```bash
|
|
54
|
-
# View detailed task statistics
|
|
55
|
-
rulebook ralph status --detailed
|
|
56
|
-
```
|
|
57
|
-
Shows individual user story status and completion breakdown
|
|
58
|
-
|
|
59
|
-
**Common Patterns**
|
|
60
|
-
- **Just initialized**: `Current Iteration: 0`, `Pending: <all stories>`
|
|
61
|
-
- **In progress**: `Current Iteration: N` increasing, `Pending` decreasing
|
|
62
|
-
- **Complete**: `Current Iteration` matches total completed stories, `Pending: 0`
|
|
63
|
-
- **Paused**: `Paused: true`, resume with `rulebook ralph resume`
|
|
64
|
-
|
|
65
|
-
**Next Steps**
|
|
66
|
-
- If loop not started: `rulebook ralph run`
|
|
67
|
-
- If paused: `rulebook ralph resume`
|
|
68
|
-
- To view iterations: `rulebook ralph history`
|
|
69
|
-
- To view story details: `rulebook ralph show <story-id>` (if available)
|
|
70
|
-
|
|
71
|
-
**Troubleshooting**
|
|
72
|
-
- **Status shows disabled**: Run `rulebook ralph init` to enable
|
|
73
|
-
- **Iteration count stuck**: Check if loop is paused or if max iterations reached
|
|
74
|
-
- **Statistics don't match**: Check `.rulebook/ralph/prd.json` for consistency
|
|
75
|
-
|
|
76
|
-
<!-- RALPH:END -->
|