feat(templates): add context injection templates (Paperclip heartbeat pattern)

This commit is contained in:
Kjell Tore Guttormsen 2026-04-12 06:44:34 +02:00
commit 9b2012a3ba
2 changed files with 39 additions and 0 deletions

View 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}}

View 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