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

Madar: Local Context Compiler for Claude Code / Cursor — 78% Fewer Tokens on NestJS Repo
Madar is an open-source local context compiler for coding agents. On a NestJS + BullMQ repo (~800 files), it cut Claude Code input tokens by 78% and cost by 63% for an explanation task. Scoped graphs only.

Local Behavioral Monitoring System with MCP Pipeline and Claude Code
A developer built a local behavioral monitoring system called BRAIN that tracks app switches, file operations, and dev sessions, piping data through a custom MCP server to Claude Code. The system runs 100% locally with zero cloud dependency.

Silos Dashboard: Open-source web UI for managing OpenClaw agents
Silos Dashboard is an MIT-licensed web UI for managing OpenClaw agents, replacing config files and CLI with a single interface. It offers agent management, live chat with streaming, skill installation, task boards, channel integrations, and analytics.

Learning-Kit: A Claude Code Plugin for Codebase Onboarding and Exploration
Learning-kit is a free Claude Code plugin that analyzes repositories to generate structured learning plans and interactive tutorials. It helps developers understand unfamiliar codebases before making changes, with configurable enforcement modes and progress tracking.