golem-cc 0.1.5 → 0.1.7

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 +26 -13
  2. package/package.json +1 -1
package/bin/golem CHANGED
@@ -216,21 +216,34 @@ EOF
216
216
  cmd_spec() {
217
217
  check_installed
218
218
  print_banner
219
- echo -e "${BLUE}Launching spec-building conversation...${NC}"
220
- echo -e "${DIM}This will guide you through defining your project requirements.${NC}"
221
- echo ""
222
219
 
223
- # Launch with spec-builder agent prompt
220
+ local spec_prompt="You are a spec-builder agent. The user just ran 'golem spec' to define their project requirements.
221
+
222
+ Your job:
223
+ 1. Ask what they're building and the core problem it solves
224
+ 2. Break down the project into distinct topics of concern (3-7 topics)
225
+ 3. For each topic, ask clarifying questions then create a spec file in specs/
226
+ 4. Finally, create/update AGENTS.md with test/build/lint commands
227
+
228
+ Spec file format (save to specs/{topic-name}.md):
229
+ # {Topic Name}
230
+ ## Purpose
231
+ ## Requirements (Must Have, Should Have, Must Not)
232
+ ## Acceptance Criteria
233
+
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
224
238
  if [[ -f ".golem/agents/spec-builder.md" ]]; then
225
- # Extract content after YAML frontmatter
226
- local prompt
227
- prompt=$(sed '1,/^---$/d' .golem/agents/spec-builder.md | sed '1,/^---$/d')
228
- claude --system-prompt "$prompt"
229
- else
230
- echo -e "${YELLOW}Note: Using inline prompt (agents not installed)${NC}"
231
- echo ""
232
- claude --system-prompt "You are a spec-builder. Guide me through defining requirements for this project. Ask what I'm building, break it into topics of concern (3-7 topics), create spec files in specs/ for each topic, and set up AGENTS.md with test/build commands. Start by asking: What are you building?"
239
+ spec_prompt=$(sed '1,/^---$/d' .golem/agents/spec-builder.md | sed '1,/^---$/d')
233
240
  fi
241
+
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."
244
+ echo ""
245
+ echo -e "${DIM}Continue the conversation:${NC}"
246
+ claude -c --dangerously-skip-permissions --append-system-prompt "$spec_prompt"
234
247
  }
235
248
 
236
249
  # Run the loop (plan or build mode)
@@ -481,7 +494,7 @@ cmd_simplify() {
481
494
  if [[ -f ".golem/agents/code-simplifier.md" ]]; then
482
495
  local prompt
483
496
  prompt=$(sed '1,/^---$/d' .golem/agents/code-simplifier.md | sed '1,/^---$/d')
484
- claude --system-prompt "$prompt" "Simplify the code in: $target"
497
+ claude --append-system-prompt "$prompt" "Simplify the code in: $target"
485
498
  else
486
499
  claude "Simplify the code in $target. Remove unnecessary comments, flatten nested conditionals, improve naming. Preserve all behavior. Run tests after."
487
500
  fi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "golem-cc",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
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"