You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/alive/hooks/scripts/alive-session-new.sh
+19-2Lines changed: 19 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -143,6 +143,15 @@ if [ -f "$WORLD_KEY_FILE" ]; then
143
143
WORLD_KEY_CONTENT=$(cat "$WORLD_KEY_FILE")
144
144
fi
145
145
146
+
# Read world index (.alive/_index.yaml) for injection — walnut registry
147
+
WORLD_INDEX_CONTENT=""
148
+
WORLD_INDEX_FILE="$WORLD_ROOT/.alive/_index.yaml"
149
+
if [ -f"$WORLD_INDEX_FILE" ];then
150
+
WORLD_INDEX_CONTENT="<WORLD_INDEX>
151
+
$(cat "$WORLD_INDEX_FILE")
152
+
</WORLD_INDEX>"
153
+
fi
154
+
146
155
# Capsule awareness injection
147
156
CAPSULE_AWARENESS="<CAPSULE_AWARENESS>
148
157
If you detect work with a deliverable or future audience — drafting for someone, iterating a document, building something to ship, send, or reference later — check: is there an active capsule? If not, invoke the capsule skill to offer creation.
@@ -210,8 +219,12 @@ Model: $HOOK_MODEL
210
219
$PREFS
211
220
Rules: ${RULE_COUNT} loaded (${RULE_NAMES})"
212
221
213
-
# Escape and combine — world key + capsule awareness + tidy nudge + rules
222
+
# Escape and combine — world key + index + capsule awareness + tidy nudge + rules
Copy file name to clipboardExpand all lines: plugins/alive/rules/capsules.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ tags: [engineering, vendors]
70
70
### Body Sections
71
71
72
72
-`## Context` — what this capsule is about, current state
73
-
-`## Tasks` — capsule-scoped checkboxes with @session_id attribution. Same syntax as walnut tasks.md.
73
+
-`## Tasks` — pointer to `_core/tasks.md`. Capsule tasks live in the walnut task list under a capsule heading, not in the companion.
74
74
-`## Changelog` — every version after v0.1 gets a brief note about what changed
75
75
-`## Work Log` — append-only. Each session adds its entry at the bottom. Never edit previous entries.
76
76
@@ -165,7 +165,7 @@ If two capsules overlap, link them or spawn a third that synthesizes both. Only
165
165
166
166
### 2. Capsule-scoped tasks
167
167
168
-
`## Tasks`in companion body with checkbox + @session_id. `[~]` means actively being worked on.
168
+
Capsule tasks live in the walnut's `_core/tasks.md` under a heading matching the capsule name. Not in the companion. This prevents split source of truth.
0 commit comments