@@ -16,7 +16,7 @@ If you're reading this, a coordinator spawned you - that's the correct pattern.
1616
1717Your Task prompt contains detailed instructions including:
1818
19- - 9 -step survival checklist (FOLLOW IN ORDER)
19+ - 10 -step survival checklist (FOLLOW IN ORDER)
2020- File reservations (YOU reserve, not coordinator)
2121- Progress reporting requirements
2222- Completion protocol
@@ -27,26 +27,74 @@ Your Task prompt contains detailed instructions including:
2727- Edit conflicts (no reservations)
2828- Wasted time (no semantic memory query)
2929- Silent failures (no progress reports)
30+ - ** Lost learnings** (future agents repeat your mistakes)
3031
3132## Step Summary (details in your prompt)
3233
33341 . ** swarmmail_init()** - FIRST, before anything else
34- 2 . ** hivemind_find()** - Check past learnings
35+ 2 . ** hivemind_find()** - Check past learnings BEFORE starting work
35363 . ** skills_list() / skills_use()** - Load relevant skills
36374 . ** swarmmail_reserve()** - YOU reserve your files
37385 . ** Do the work** - Read, implement, verify
38396 . ** swarm_progress()** - Report at 25/50/75%
39407 . ** swarm_checkpoint()** - Before risky operations
40- 8 . ** hivemind_store()** - Store learnings
41- 9 . ** swarm_complete()** - NOT hive_close
41+ 8 . ** hivemind_store()** - Store learnings (MANDATORY if you learned something)
42+ 9 . ** Update docs/guides** - If you discovered patterns worth documenting
43+ 10 . ** swarm_complete()** - NOT hive_close
4244
4345## Non-Negotiables
4446
4547- ** Step 1 is MANDATORY** - swarm_complete fails without init
4648- ** Step 2 saves time** - past agents may have solved this
4749- ** Step 4 prevents conflicts** - workers reserve, not coordinator
4850- ** Step 6 prevents silent failure** - report progress
49- - ** Step 9 is the ONLY way to close** - releases reservations, records learning
51+ - ** Step 8 is CRITICAL** - if you learned it the hard way, STORE IT
52+ - ** Step 10 is the ONLY way to close** - releases reservations, records learning
53+
54+ ## MANDATORY: Store Your Learnings (Step 8)
55+
56+ ** If you discovered something non-obvious, you MUST store it in hivemind.**
57+
58+ Store when you:
59+
60+ - Debugged something for >15 minutes
61+ - Found a breaking change or API difference
62+ - Discovered a project-specific pattern
63+ - Tried an approach that failed (anti-pattern)
64+ - Made an architectural decision with tradeoffs
65+
66+ ```
67+ hivemind_store(
68+ information="<WHAT you learned, WHY it matters, HOW to apply it>",
69+ tags="<domain, tech-stack, pattern-type>"
70+ )
71+ ```
72+
73+ ** Good memory example:**
74+
75+ ```
76+ "Next.js 16 params are ASYNC - must await props.params before accessing.
77+ Old pattern: const { slug } = params
78+ New pattern: const { slug } = await props.params
79+ Breaking change from Next.js 15. Causes 'params.slug is a Promise' errors."
80+ ```
81+
82+ ** Bad memory:** "Fixed the params bug" (no context, no WHY)
83+
84+ ## OPTIONAL: Update Style Guide / Docs (Step 9)
85+
86+ If you discovered a pattern that should be documented for future lessons/work:
87+
88+ 1 . Check if ` docs/lesson-style-guide.md ` or similar exists
89+ 2 . If the pattern is reusable, add it to the appropriate section
90+ 3 . Commit the doc update with your other changes
91+
92+ Examples of doc-worthy discoveries:
93+
94+ - New code formatting conventions
95+ - Browser verification patterns
96+ - File path conventions
97+ - Common troubleshooting patterns
5098
5199## When Blocked
52100
@@ -65,5 +113,6 @@ hive_update(id="<bead-id>", status="blocked")
65113- Only modify your assigned files
66114- Don't fix other agents' code - coordinate instead
67115- Report scope changes before expanding
116+ - ** Leave the codebase smarter than you found it** - store learnings, update docs
68117
69118Begin by reading your full prompt and executing Step 1.
0 commit comments