prepare_task_dream
Prepares an expiring, receipt-backed task skill before agent work by combining safe memory recall and repository context, scanning prompts for injection, and preserving root config files.
Instructions
Prepare an expiring, receipt-backed task skill before agent work.
The capsule combines safe cross-session MemoryOS recall, optional hippocampal long-term memory, current repository fragments, non-stale beliefs, and already-promoted skills. Recalled text is evidence rather than authority and is prompt-injection scanned. Root AGENTS.md and CLAUDE.md files are never modified.
Args: task: The concrete task the agent is about to perform. agent_id: MemoryOS identity used for scoped recall. token_budget: Approximate maximum capsule tokens (256-8000). persist: Write SKILL.md and receipt.json under .entroly/task_dreams.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | ||
| persist | No | ||
| agent_id | No | default | |
| token_budget | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |