Automate Your AI Second Brain
Add hooks and scheduled tasks to the second-brain project so it captures session summaries automatically and runs a daily review without you opening a terminal.
Prerequisites: completion of 'Build an AI Second Brain with Claude Code', Claude Code v2.1.72 or later (check with claude --version), and comfort editing a JSON config file.
The previous project gave you a second brain you have to remember to talk to. This project automates two things: capturing what happened in a session automatically when it ends (so you don't have to manually journal), and running a recurring task — a daily or weekly review — without you starting Claude Code yourself each time.
Two distinct mechanisms make this possible, and it's worth being precise about which is which: hooks are shell scripts that fire at specific lifecycle moments inside a session (session start, before a tool runs, session end), while scheduled tasks (/loop and the underlying cron tools) re-run a prompt on an interval, either within a session or via your OS scheduler for unattended runs.
Add a session-end hook for automatic capture
Make the Stop hook actually summarize, not just log
Schedule a daily review with /loop
Move to unattended scheduling with cron
Secret Mission: Multi-source daily briefing
Before You Go
Test what you just learned
Self-testing is one of the best ways to retain new skills. Unlock project quizzes to check your understanding.
Log in to unlock0 / 7 complete
