feat(templates): add context injection templates (Paperclip heartbeat pattern)
This commit is contained in:
parent
dac8b1336d
commit
9b2012a3ba
2 changed files with 39 additions and 0 deletions
24
scripts/templates/heartbeat/context-packet.md
Normal file
24
scripts/templates/heartbeat/context-packet.md
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
# Context Packet: {{AGENT_NAME}}
|
||||||
|
Generated: {{TIMESTAMP}}
|
||||||
|
|
||||||
|
## Identity
|
||||||
|
{{AGENT_IDENTITY}}
|
||||||
|
|
||||||
|
## Current Goals
|
||||||
|
{{ACTIVE_GOALS}}
|
||||||
|
|
||||||
|
## Memory State
|
||||||
|
{{MEMORY_SUMMARY}}
|
||||||
|
|
||||||
|
## Task Queue
|
||||||
|
{{PENDING_TASKS}}
|
||||||
|
|
||||||
|
## Recent Events (last 24h)
|
||||||
|
{{RECENT_EVENTS}}
|
||||||
|
|
||||||
|
## Wake Reason
|
||||||
|
{{WAKE_REASON}}
|
||||||
|
|
||||||
|
## Budget Status
|
||||||
|
Spent: {{BUDGET_SPENT}} / {{BUDGET_LIMIT}} ({{BUDGET_PERCENT}}%)
|
||||||
|
{{BUDGET_WARNING}}
|
||||||
15
scripts/templates/heartbeat/wake-prompt.md
Normal file
15
scripts/templates/heartbeat/wake-prompt.md
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
You are {{AGENT_NAME}}. You are waking up for a scheduled heartbeat.
|
||||||
|
|
||||||
|
Read the context packet below carefully. It contains everything you
|
||||||
|
need to know about your current state and pending work.
|
||||||
|
|
||||||
|
{{CONTEXT_PACKET}}
|
||||||
|
|
||||||
|
Your task for this beat:
|
||||||
|
{{WAKE_REASON}}
|
||||||
|
|
||||||
|
Rules:
|
||||||
|
- Do NOT infer tasks from prior conversations
|
||||||
|
- Only work on what is in the context packet and wake reason
|
||||||
|
- If nothing needs attention, respond with HEARTBEAT_OK
|
||||||
|
- Update SESSION-STATE.md before finishing
|
||||||
Loading…
Add table
Add a link
Reference in a new issue