golem-cc 0.1.7 → 0.1.9
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/bin/golem +31 -13
- package/package.json +1 -1
package/bin/golem
CHANGED
|
@@ -216,10 +216,13 @@ EOF
|
|
|
216
216
|
cmd_spec() {
|
|
217
217
|
check_installed
|
|
218
218
|
print_banner
|
|
219
|
+
echo -e "${BLUE}Spec Builder${NC}"
|
|
220
|
+
echo -e "${DIM}Type 'done' when finished, Ctrl+C to exit${NC}"
|
|
221
|
+
echo ""
|
|
219
222
|
|
|
220
|
-
local spec_prompt="You are a spec-builder agent
|
|
223
|
+
local spec_prompt="You are a spec-builder agent helping define project requirements.
|
|
221
224
|
|
|
222
|
-
Your
|
|
225
|
+
Your workflow:
|
|
223
226
|
1. Ask what they're building and the core problem it solves
|
|
224
227
|
2. Break down the project into distinct topics of concern (3-7 topics)
|
|
225
228
|
3. For each topic, ask clarifying questions then create a spec file in specs/
|
|
@@ -231,19 +234,34 @@ Spec file format (save to specs/{topic-name}.md):
|
|
|
231
234
|
## Requirements (Must Have, Should Have, Must Not)
|
|
232
235
|
## Acceptance Criteria
|
|
233
236
|
|
|
234
|
-
Keep responses concise. Ask one question at a time.
|
|
235
|
-
Start NOW by asking: What are you building? Give me the elevator pitch."
|
|
236
|
-
|
|
237
|
-
# Load agent prompt if available
|
|
238
|
-
if [[ -f ".golem/agents/spec-builder.md" ]]; then
|
|
239
|
-
spec_prompt=$(sed '1,/^---$/d' .golem/agents/spec-builder.md | sed '1,/^---$/d')
|
|
240
|
-
fi
|
|
237
|
+
Keep responses concise. Ask one question at a time."
|
|
241
238
|
|
|
242
|
-
#
|
|
243
|
-
|
|
239
|
+
# First message - starts a new session
|
|
240
|
+
echo -e "${CYAN}Claude:${NC}"
|
|
241
|
+
claude -p \
|
|
242
|
+
--dangerously-skip-permissions \
|
|
243
|
+
--append-system-prompt "$spec_prompt" \
|
|
244
|
+
"Start the spec-building conversation. Ask what I'm building."
|
|
244
245
|
echo ""
|
|
245
|
-
|
|
246
|
-
|
|
246
|
+
|
|
247
|
+
# Conversation loop
|
|
248
|
+
while true; do
|
|
249
|
+
echo -ne "${GREEN}You:${NC} "
|
|
250
|
+
read -r user_input
|
|
251
|
+
|
|
252
|
+
[[ -z "$user_input" ]] && continue
|
|
253
|
+
[[ "$user_input" == "done" ]] && {
|
|
254
|
+
echo ""
|
|
255
|
+
echo -e "${GREEN}Done!${NC} Specs saved to specs/"
|
|
256
|
+
echo -e "Next: Run ${CYAN}golem run plan${NC} to create implementation plan"
|
|
257
|
+
break
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
echo ""
|
|
261
|
+
echo -e "${CYAN}Claude:${NC}"
|
|
262
|
+
claude -p --continue --dangerously-skip-permissions "$user_input"
|
|
263
|
+
echo ""
|
|
264
|
+
done
|
|
247
265
|
}
|
|
248
266
|
|
|
249
267
|
# Run the loop (plan or build mode)
|