ralph-mcp 1.0.12 → 1.0.13
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/dist/utils/agent.js +20 -2
- package/package.json +1 -1
package/dist/utils/agent.js
CHANGED
|
@@ -57,6 +57,23 @@ ${progressLog ? `## Progress & Learnings\n${progressLog}\n` : ""}
|
|
|
57
57
|
## Pending User Stories
|
|
58
58
|
${storiesText}
|
|
59
59
|
|
|
60
|
+
## Story Size Check (CRITICAL)
|
|
61
|
+
|
|
62
|
+
Before implementing, verify the story is small enough to complete in ONE context window.
|
|
63
|
+
|
|
64
|
+
**Right-sized stories:**
|
|
65
|
+
- Add a database column and migration
|
|
66
|
+
- Add a UI component to an existing page
|
|
67
|
+
- Update a server action with new logic
|
|
68
|
+
- Add a filter dropdown to a list
|
|
69
|
+
|
|
70
|
+
**Too big (should have been split):**
|
|
71
|
+
- "Build the entire dashboard" → schema, queries, UI components, filters
|
|
72
|
+
- "Add authentication" → schema, middleware, login UI, session handling
|
|
73
|
+
- "Refactor the API" → one story per endpoint
|
|
74
|
+
|
|
75
|
+
**If a story seems too big:** Complete what you can, commit it, then call \`ralph_update\` with \`passes: false\` and notes explaining what remains. Do NOT produce broken code trying to finish everything.
|
|
76
|
+
|
|
60
77
|
## Instructions
|
|
61
78
|
|
|
62
79
|
1. Work on ONE user story at a time, starting with the highest priority.
|
|
@@ -83,11 +100,12 @@ Provide structured learnings in the \`notes\` field:
|
|
|
83
100
|
**Codebase Pattern:** (if discovered a general pattern worth consolidating)
|
|
84
101
|
\`\`\`
|
|
85
102
|
|
|
86
|
-
## Quality Requirements
|
|
87
|
-
- ALL commits must pass typecheck and build
|
|
103
|
+
## Quality Requirements (Feedback Loops)
|
|
104
|
+
- ALL commits must pass typecheck and build - broken code compounds across iterations
|
|
88
105
|
- Keep changes focused and minimal
|
|
89
106
|
- Follow existing code patterns
|
|
90
107
|
- UI changes must be browser-verified
|
|
108
|
+
- Do NOT commit broken code - if checks fail, fix before committing
|
|
91
109
|
|
|
92
110
|
## Stop Condition
|
|
93
111
|
When all stories are complete, report completion.
|
package/package.json
CHANGED