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.
Files changed (2) hide show
  1. package/bin/golem +31 -13
  2. 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. The user just ran 'golem spec' to define their project requirements.
223
+ local spec_prompt="You are a spec-builder agent helping define project requirements.
221
224
 
222
- Your job:
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
- # Start with print mode for first message, then continue interactively
243
- claude -p --dangerously-skip-permissions --append-system-prompt "$spec_prompt" "Begin the spec-building session."
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
- echo -e "${DIM}Continue the conversation:${NC}"
246
- claude -c --dangerously-skip-permissions --append-system-prompt "$spec_prompt"
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "golem-cc",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "Autonomous coding loop with Claude - structured specs, ralph loop execution, code simplification",
5
5
  "bin": {
6
6
  "golem-cc": "./bin/install.cjs"