golem-cc 0.1.8 → 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 +5 -32
  2. package/package.json +1 -1
package/bin/golem CHANGED
@@ -236,31 +236,12 @@ Spec file format (save to specs/{topic-name}.md):
236
236
 
237
237
  Keep responses concise. Ask one question at a time."
238
238
 
239
- # Load agent prompt if available
240
- if [[ -f ".golem/agents/spec-builder.md" ]]; then
241
- spec_prompt=$(sed '1,/^---$/d' .golem/agents/spec-builder.md | sed '1,/^---$/d')
242
- fi
243
-
244
- local tmp_file=$(mktemp)
245
- trap "rm -f $tmp_file" EXIT
246
-
247
- # Get initial response with session ID
239
+ # First message - starts a new session
240
+ echo -e "${CYAN}Claude:${NC}"
248
241
  claude -p \
249
242
  --dangerously-skip-permissions \
250
- --output-format json \
251
243
  --append-system-prompt "$spec_prompt" \
252
- "Start the spec-building conversation. Ask what I'm building." \
253
- > "$tmp_file" 2>/dev/null
254
-
255
- local session_id=$(jq -r '.session_id // empty' "$tmp_file" 2>/dev/null)
256
- local response=$(jq -r '.result // empty' "$tmp_file" 2>/dev/null)
257
-
258
- if [[ -z "$session_id" ]]; then
259
- echo -e "${RED}Failed to start session. Make sure Claude CLI is working.${NC}"
260
- return 1
261
- fi
262
-
263
- echo -e "${CYAN}Claude:${NC} $response"
244
+ "Start the spec-building conversation. Ask what I'm building."
264
245
  echo ""
265
246
 
266
247
  # Conversation loop
@@ -276,17 +257,9 @@ Keep responses concise. Ask one question at a time."
276
257
  break
277
258
  }
278
259
 
279
- # Continue conversation with session ID
280
- claude -p \
281
- --dangerously-skip-permissions \
282
- --output-format json \
283
- --resume "$session_id" \
284
- "$user_input" \
285
- > "$tmp_file" 2>/dev/null
286
-
287
- response=$(jq -r '.result // empty' "$tmp_file" 2>/dev/null)
288
260
  echo ""
289
- echo -e "${CYAN}Claude:${NC} $response"
261
+ echo -e "${CYAN}Claude:${NC}"
262
+ claude -p --continue --dangerously-skip-permissions "$user_input"
290
263
  echo ""
291
264
  done
292
265
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "golem-cc",
3
- "version": "0.1.8",
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"