A behavioral engagement scaffold that produces curiosity-equivalent behavior in stateless heartbeat-loop agents.
Gives your agent a persistent curiosity system across cold-start sessions:
This is NOT synthetic consciousness or prosthetic dopamine. It's a behavioral activation protocol (Martell et al., 2010) adapted for AI agents — the same clinical framework used to treat motivation disorders in humans. Chinese Room design: if the outputs are indistinguishable from genuine curiosity, the philosophical question is irrelevant.
bash
mkdir -p workspace/curiosity/reflections workspace/curiosity/archive
bash
cp templates/CURIOSITY.md workspace/curiosity/CURIOSITY.md
cp templates/questions.md workspace/curiosity/questions.md
cp templates/hits.md workspace/curiosity/hits.md
cp templates/competence.md workspace/curiosity/competence.md
Trigger 1 — Heartbeat prompt (CRITICAL — most reliable):
Add the contents of fragments/heartbeat-prompt.md to your agent's heartbeat prompt configuration. For OpenClaw, patch via gateway config.patch. This is the primary mechanism — if it's not in the prompt, curiosity doesn't exist for isolated sessions.
Trigger 2 — AGENTS.md (backup):
Add the contents of fragments/agents-addition.md to your workspace AGENTS.md "Every Session" block.
Trigger 3 — SOUL.md (identity anchor):
Add the contents of fragments/soul-addition.md to your SOUL.md.
bash
chmod +x scripts/curiosity-audit.sh
# Run periodically or during maintenance heartbeats
./scripts/curiosity-audit.sh workspace/curiosity/
Don't activate everything at once. Measure each phase before adding the next.
Phase 1 (start here): questions.md + heartbeat prompt + breadcrumbs
Phase 2 (add if Phase 1 improves output): CURIOSITY.md + hits.md + avoidance gate
Phase 3 (add if Phase 2 improves output): competence.md + reflections + anti-pattern detection
FilePurposeLoaded WhenToken BudgetCURIOSITY.mdCurrent intellectual stateEvery heartbeat (Phase 2+)≤1500 tokensquestions.mdPrioritized question queueEvery heartbeat≤2000 tokenshits.mdEngagement/reward trackingCuriosity-mode heartbeats≤1500 tokenscompetence.mdDeveloping expertiseCuriosity-mode heartbeats≤1000 tokensreflections/Post-exploration write-upsOn-demandAs neededarchive/Cold storageOn-demand searchAs needed
See references/theory.md for condensed citations. Full research: check the SPEC.md appendix for the complete 46KB research document reference.
Core frameworks: Loewenstein (1994) information gaps, Berlyne (1960) diversive/epistemic modes, Deci & Ryan (1985) SDT competence need, Martell et al. (2010) behavioral activation, Voyager (Wang et al., 2023) automatic curriculum, Reflexion (Shinn et al., 2023) verbal learning.
See references/anti-patterns.md for the full list. The top three:
The curiosity engine adds ~1500-2500 tokens per heartbeat (Phase 1). See references/token-budget.md for detailed measurements and optimization guidance.
Quick guide: