agentic-loop 3.11.1 → 3.12.1

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/README.md CHANGED
@@ -4,28 +4,51 @@
4
4
 
5
5
  You describe what you want to build. Claude Code writes a PRD (Product Requirements Document) with small, testable stories. Ralph executes each story automatically - coding, testing, and committing in a loop until everything passes.
6
6
 
7
- > **Optimized for:** Python, TypeScript, React, Go/Hugo, FastMCP, and Docker projects.
8
-
9
7
  ---
10
8
 
11
- ## What It Does
9
+ ## What It Does and How to work with Agentic Loop
12
10
 
13
- **Brainstorm ideas with `/idea`**
14
- Describe a feature in plain English. Claude asks clarifying questions, explores your codebase, and generates a PRD with atomic stories that can be implemented one at a time.
11
+ ### The Two-Terminal Workflow
15
12
 
16
- **Execute with Ralph**
17
- Ralph reads the PRD and implements each story autonomously. It spawns Claude, runs verification (lint, tests, browser checks), and either commits on success or retries with error context on failure.
13
+ ```
14
+ ┌──────────────────────────────────────────────────────────────────────────────────┐
15
+ │ TERMINAL 1: Claude CLI │ TERMINAL 2: Execute │
16
+ ├────────────────────────────────────────┼─────────────────────────────────────────┤
17
+ │ │ │
18
+ │ claude --dangerously-skip-permissions │ npx agentic-loop run │
19
+ │ │ │
20
+ │ PLAN FEATURES │ ┌─ prd-check (once) ───────────────┐ │
21
+ │ /idea 'your feature or bugfix' │ │ Validate all stories upfront │ │
22
+ │ → Claude asks questions │ │ Auto-fix missing test steps │ │
23
+ │ → Explores codebase │ └──────────────────────────────────┘ │
24
+ │ → Generates PRD │ ↓ │
25
+ │ │ ┌─ loop (per story) ───────────────┐ │
26
+ │ ENHANCE AS YOU LEARN │ │ │ │
27
+ │ → Add signs when Ralph repeats │ │ Read prd.json → get next story │ │
28
+ │ the same mistake │ │ Load PROMPT.md, signs, config │ │
29
+ │ → Tune timeouts, retries, checks │ │ Load last_failure.txt (if retry) │ │
30
+ │ → Refine test commands for your │ │ Build prompt with full context │ │
31
+ │ stack │ │ Spawn Claude → write code │ │
32
+ │ │ │ │ │
33
+ │ (OPTIONAL) CUSTOMIZE YOUR LOOP │ │ code-check: │ │
34
+ │ /my-dna → your coding style │ │ [1] Lint │ │
35
+ │ /styleguide → UI consistency │ │ [2] Tests │ │
36
+ │ /sign → teach patterns │ │ [3] PRD test steps │ │
37
+ │ config.json → tune your setup │ │ [4] API smoke │ │
38
+ │ │ │ [5] Frontend smoke │ │
39
+ │ │ │ │ │
40
+ │ │ │ Pass → commit, next story │ │
41
+ │ │ │ Fail → save to last_failure.txt, │ │
42
+ │ │ │ retry │ │
43
+ │ │ └──────────────────────────────────┘ │
44
+ │ │ │
45
+ └────────────────────────────────────────┴─────────────────────────────────────────┘
46
+ ```
18
47
 
19
- **Customize your output**
20
- - `/my-dna` - Add your voice and values so the code reflects your style
21
- - `/styleguide` - Generate a UI component reference for consistent design
48
+ **Terminal 1** is where you shape *what* gets built and *how* Ralph builds it.
49
+ **Terminal 2** is where Ralph executes autonomously.
22
50
 
23
- **Built-in guardrails**
24
- - `/vibe-check`, `/review` - On-demand quality and security checks
25
- - Pre-commit hooks - Block secrets, hardcoded URLs, debug statements
26
- - Claude Code hooks - Real-time warnings while coding
27
- - GitHub Actions CI/CD - Fast PR checks + comprehensive nightly tests
28
- - Test file enforcement - Fails if new code lacks corresponding tests
51
+ Your loop gets smarter over time. When Ralph struggles with something, add a sign. When tests flake, tune the config. The customization never really stops—it's how you make Ralph work for *your* project.
29
52
 
30
53
  ---
31
54
 
@@ -54,34 +77,13 @@ npx agentic-loop run # Execute PRDs autonomously
54
77
 
55
78
  ---
56
79
 
57
- ## How Ralph Works
58
-
59
- ```
60
- ┌─────────────────────────────────────────────────────────────┐
61
- │ RALPH LOOP │
62
- ├─────────────────────────────────────────────────────────────┤
63
- │ 1. Read prd.json → find next story where passes=false │
64
- │ 2. Build prompt (story + context + failures + signs) │
65
- │ 3. Spawn Claude with prompt + MCP browser tools │
66
- │ 4. Run verification (lint, tests, testSteps) │
67
- │ 5. Pass? → commit, next story │
68
- │ Fail? → save error, retry with failure context │
69
- │ 6. Repeat until all stories pass │
70
- └─────────────────────────────────────────────────────────────┘
71
- ```
72
-
73
- **What's a PRD?**
74
- A JSON file (`.ralph/prd.json`) containing your feature broken into small stories. Each story has acceptance criteria, test steps, and a test URL. Ralph implements them one by one. See [`templates/prd-example.json`](templates/prd-example.json) for a complete example.
75
-
76
- **What are Signs?**
77
- Patterns Ralph learns from failures. If Ralph keeps making the same mistake, add a sign: `npx agentic-loop sign "Always use camelCase for API fields" backend`. Future stories will see this guidance.
78
-
79
- ---
80
-
81
80
  ## Docs
82
81
 
83
- - [How Ralph Works](docs/RALPH.md) - Architecture, config, verification pipeline
84
- - [Technical Architecture](docs/ARCHITECTURE.md) - Deep dive for developers
82
+ - **[Beginners Guide](docs/BEGINNERS.md)** - New to this? Start here (no coding experience required)
83
+ - [PRD Check](docs/PRD-CHECK.md) - Story validation before coding starts
84
+ - [Code Check](docs/CODE-CHECK.md) - Verification pipeline after each story
85
+ - [Customization](docs/CUSTOMIZATION.md) - Personalization and guardrails
86
+ - [How Ralph Works](docs/RALPH.md) - Architecture, config, full reference
85
87
  - [Cheatsheet](docs/CHEATSHEET.md) - All commands at a glance
86
88
  - [Hooks Reference](docs/HOOKS.md) - Pre-commit and Claude Code hooks
87
89
  - [Troubleshooting](docs/TROUBLESHOOTING.md) - Common issues and fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentic-loop",
3
- "version": "3.11.1",
3
+ "version": "3.12.1",
4
4
  "description": "Autonomous AI coding loop - PRD-driven development with Claude Code",
5
5
  "author": "Allie Jones <allie@allthrive.ai>",
6
6
  "license": "MIT",
@@ -108,8 +108,8 @@ run_frontend_smoke_test() {
108
108
  # No frontend configured, skip silently
109
109
  [[ -z "$frontend_url" ]] && return 0
110
110
 
111
- # Skip for backend-only stories (optional optimization)
112
- # [[ "$story_type" == "backend" ]] && return 0
111
+ # Skip for backend-only stories
112
+ [[ "$story_type" == "backend" ]] && return 0
113
113
 
114
114
  echo ""
115
115
  echo " [5/5] Running frontend smoke tests..."