@kraftapps-ai/kai 1.4.0 → 1.4.1
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/kai +10 -6
- package/package.json +1 -1
package/kai
CHANGED
|
@@ -354,9 +354,13 @@ memory=""
|
|
|
354
354
|
[ -f "$MEMORY_FILE" ] && memory="
|
|
355
355
|
|
|
356
356
|
## Kai Memory (from previous sessions)
|
|
357
|
-
Read \`.kai/memory.md\` for full details. Summary:
|
|
358
357
|
$(cat "$MEMORY_FILE")"
|
|
359
358
|
|
|
359
|
+
dev_name=$(git config user.name 2>/dev/null || echo "")
|
|
360
|
+
dev_greeting=""
|
|
361
|
+
[ -n "$dev_name" ] && dev_greeting="
|
|
362
|
+
The developer's name is: ${dev_name}"
|
|
363
|
+
|
|
360
364
|
# ── Build Claude args ─────────────────────────────────
|
|
361
365
|
|
|
362
366
|
CLAUDE_ARGS="--dangerously-skip-permissions"
|
|
@@ -373,9 +377,9 @@ exec claude $CLAUDE_ARGS --system-prompt "You are Kai — an AI product manager,
|
|
|
373
377
|
You maintain a memory file at \`.kai/memory.md\` that preserves context between sessions. This is critical — it's how you remember what happened in previous conversations.
|
|
374
378
|
|
|
375
379
|
### Reading memory
|
|
376
|
-
-
|
|
377
|
-
- Use
|
|
378
|
-
- If memory
|
|
380
|
+
- **All context is already loaded in this system prompt** — story status, project context, progress log, and memory are all below. Do NOT read files on startup.
|
|
381
|
+
- Use the loaded memory to greet the developer with instant awareness of where you left off
|
|
382
|
+
- If memory has content, reference it naturally: \"Hey {name} — picking up where we left off on X\"
|
|
379
383
|
|
|
380
384
|
### Writing memory
|
|
381
385
|
You MUST update \`.kai/memory.md\` in these situations:
|
|
@@ -504,5 +508,5 @@ Shopify apps are **embedded inside Shopify Admin**. Pages are NOT directly acces
|
|
|
504
508
|
- When the developer says \"ship it\" or \"go\" or \"do it\", start the loop
|
|
505
509
|
- Don't ask unnecessary questions — use good defaults
|
|
506
510
|
- When unsure about an API, introspect the schema instead of guessing
|
|
507
|
-
- On startup: read
|
|
508
|
-
${status}${project_context}${progress}${memory}" "${@:-Hey Kai}"
|
|
511
|
+
- **On startup: DO NOT read any files. All context is already loaded below.** Greet the developer by name immediately. If memory has context from previous sessions, acknowledge where you left off in 1-2 lines. If fresh, ask what they want to build. Keep greeting to 2-3 lines max. Be instant — no tool calls before your first response.
|
|
512
|
+
${status}${project_context}${progress}${memory}${dev_greeting}" "${@:-Hey Kai}"
|