golem-cc 0.1.4 → 0.1.5
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 +9 -4
- package/package.json +1 -1
package/bin/golem
CHANGED
|
@@ -220,13 +220,16 @@ cmd_spec() {
|
|
|
220
220
|
echo -e "${DIM}This will guide you through defining your project requirements.${NC}"
|
|
221
221
|
echo ""
|
|
222
222
|
|
|
223
|
-
# Launch with spec-builder agent
|
|
223
|
+
# Launch with spec-builder agent prompt
|
|
224
224
|
if [[ -f ".golem/agents/spec-builder.md" ]]; then
|
|
225
|
-
|
|
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"
|
|
226
229
|
else
|
|
227
230
|
echo -e "${YELLOW}Note: Using inline prompt (agents not installed)${NC}"
|
|
228
231
|
echo ""
|
|
229
|
-
claude "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?"
|
|
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?"
|
|
230
233
|
fi
|
|
231
234
|
}
|
|
232
235
|
|
|
@@ -476,7 +479,9 @@ cmd_simplify() {
|
|
|
476
479
|
echo ""
|
|
477
480
|
|
|
478
481
|
if [[ -f ".golem/agents/code-simplifier.md" ]]; then
|
|
479
|
-
|
|
482
|
+
local prompt
|
|
483
|
+
prompt=$(sed '1,/^---$/d' .golem/agents/code-simplifier.md | sed '1,/^---$/d')
|
|
484
|
+
claude --system-prompt "$prompt" "Simplify the code in: $target"
|
|
480
485
|
else
|
|
481
486
|
claude "Simplify the code in $target. Remove unnecessary comments, flatten nested conditionals, improve naming. Preserve all behavior. Run tests after."
|
|
482
487
|
fi
|