AutoDream: 11-hook memory system for Claude Code with safety features

What AutoDream does
AutoDream is a memory system built for Claude Code (Anthropic's CLI) that has been running for several months. The tool injects project memory into every prompt, eliminating the need to repeat information. It blocks dangerous Bash commands before execution using a dual-layer danger scoring system. The system saves context before the /compact command and re-injects it afterward, automatically captures decisions and learnings, and includes an AFK mode where tasks can be dropped in a queue and returned to later for a report.
Hook architecture details
The system uses 11 hooks across 6 specific events:
- PreToolUse: Guardian + critic-evaluator (danger scoring 0-10) + circuit-breaker
- UserPromptSubmit: Context injection (project + global memory)
- PostToolUse: Learn + verification + circuit-breaker + microcompact (token warnings)
- PreCompact: State saver
- PostCompact: Selective re-injection
- Stop: Memory extractor + dream consolidation
The tool requires zero configuration after initial setup, with all hooks firing automatically. It's available as open source on GitHub at github.com/JaWaMi73/AutoDream.
📖 Read the full source: r/ClaudeAI
👀 See Also

Open-source memory system for LLM agents achieves high benchmark scores
A persistent memory system for Claude Code and OpenClaw provides LLM agents with context continuity across sessions, achieving 90.8% on LoCoMo and 89.1% on LongMemEval benchmarks. The adapter-based architecture works with any agent framework.

Multi-Agent Debate Approach Improves LLM Reasoning Quality
A developer experimented with a multi-agent debate approach using CyrcloAI, where different AI agents take on roles like analyst, critic, and synthesizer to critique each other's responses before producing a final answer, resulting in more structured and deliberate outputs.

Indie dev deploys full game studio site via Claude Code, including Steam API data layer
An indie game developer used Claude Code to build and deploy a game studio website without touching a terminal, including a data layer that pulls live info from the Steam API.

Claude Code Skill /council Runs Prompts Across 4 AI Models in Parallel
A Claude Code skill called /council sends any prompt to GPT, Claude, Gemini, and Grok simultaneously in about 7 seconds, then uses Gemini to synthesize the best response by identifying specific improvements from the other models.