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

✍️ OpenClawRadar📅 Published: April 15, 2026🔗 Source
AutoDream: 11-hook memory system for Claude Code with safety features
Ad

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.

Ad

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

Ad

👀 See Also