notque/vexjoy-agent/auto-dream
Claude Code and agent skill by notque/vexjoy-agent
- community
Checking that the SKILL.md file is still in the repository.
Background memory consolidation — overnight review, merge, and injection payload for memory files.
Install
npx vskill@latest install notque/vexjoy-agent/auto-dreamSKILL.md
The same SKILL.md was published earlier as notque/vexjoy-agent/auto-dream.
Background memory consolidation cycle. Scans memory files, finds stale, duplicate, and conflicting entries, consolidates them, synthesizes cross-session insights, builds an injection-ready payload for the next session start, and writes a dated dream report.
When to invoke
- User says "run dream", "consolidate memories", "clean up memories", "memory maintenance", "deduplicate memories"
- Cron job at 2 AM nightly via wrapper script:
scripts/auto-dream-cron.sh --execute - Manual trigger for testing:
./scripts/auto-dream-cron.sh(dry-run by default)
Instructions
When invoked interactively (not via cron), read skills/meta/auto-dream/dream-prompt.md and execute its phases directly. The prompt is self-contained -- it describes the full cycle including safety constraints, file paths, and output formats.
For cron invocation: the dream prompt is passed directly to claude -p and runs as a standalone headless session with no CLAUDE.md, no hooks, no project context. All instructions are embedded in the prompt.
Phases
- SCAN — Read all memory files and the recent git log. Write the scan document to
~/.claude/state/dream-scan-{date}.md. - ANALYZE — Identify stale, duplicate, conflicting memories and cross-session patterns. Write analysis to
~/.claude/state/dream-analysis-{date}.md. - CONSOLIDATE — Apply consolidation actions (max 5 changes). Archive stale/merged files, update MEMORY.md atomically.
- SYNTHESIZE — Create insight memories from cross-session patterns (max 2 new memories per cycle).
- SELECT — Build the injection-ready payload for session start. Write to
~/.claude/state/dream-injection-{project-hash}.md. - REPORT — Write the dream summary to
~/.claude/state/last-dream.md.
Safety constraints (always enforced)
- Never delete files — archive to
memory/archive/, neverrm - Write the REPORT before executing any CONSOLIDATE filesystem operations
- Maximum 5 memory changes per cycle — excess items deferred to next cycle
- Flag conflicts for human review, never auto-resolve
- Preserve YAML frontmatter when merging; use
merged_fromfield for provenance - Memory files are the only write target. Knowledge reaches an agent or skill file through a reviewed human edit, never through this cycle.
- In dry-run mode (the default), CONSOLIDATE and SYNTHESIZE describe proposed changes only — no filesystem writes. The wrapper script sets
DREAM_DRY_RUN_MODE=yes, substituted into the prompt at runtime.
Testing
Cost estimate
~0.18 USD per nightly run with 50 memory files (~20-30K input tokens at Opus 5.5 list price; the wrapper passes --model opus). ~66 USD/year for automated overnight operation. Budget capped at 3.00 USD/run via wrapper script.
Cron setup
Use crontab-manager.py (not raw crontab -e) to install. The wrapper script handles PATH, lockfile, logging, budget cap, and dry-run/execute toggle.
Note: schedule uses 2:07 AM (off-minute) per cron best practice — avoids load spikes from jobs firing at :00.
Wrapper script details
scripts/auto-dream-cron.sh follows the established headless cron pattern (see skills/content/content/scripts/reddit-moderate/reddit-automod-cron.sh):
flocklockfile prevents concurrent runs--permission-mode auto(never--dangerously-skip-permissions)--max-budget-usd 3.00caps spend per run--no-session-persistencefor clean headless operationenvsubsttemplatesdream-prompt.mdwith project-specific paths at runtimeteeto timestamped per-run log file- Dry-run by default,
--executefor live runs - Exit code propagation via
PIPESTATUS[0]
Deep References
Load when the task requires detailed guidance beyond the phases above.
| Signal | Reference | |
|---|---|---|
| Failed cron run, wrapper script setup, budget cap | references/headless-cron-patterns.md | |
| Memory file writes, YAML frontmatter, staleness, merging | references/memory-file-operations.md | |
| Dry-run validation, output file verification | references/dream-cycle-testing.md | |
| Cron log interpretation, rotation, phase markers | references/logging-patterns.md | |
| Concurrent runs, lockfile, partial write recovery | references/concurrency.md |
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/meta/auto-dream/SKILL.md
Popularity
- Repository stars
- 441
- Repository forks
- 49
- 7-day trend score
- 30
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/notque/vexjoy-agent/auto-dream)