Auto-Save Claude Code Plans to Obsidian
Every time I exit Plan mode in Claude Code, a hook automatically captures the plan into my Obsidian vault with a clean title, full frontmatter, a summary generated by Claude Haiku, and a wikilinked entry in my daily journal. No manual copy-pasting, no switching windows. This is made possible by two recently released tools: the Obsidian CLI and Claude Code Hooks.
๐ Resources:
capture-plan.sh and settings.json (full script): [https://gist.github.com/SirwanAfifi/e544d458e71ef5d0774fc5898c1a0a63]
Obsidian CLI: https://obsidian.md/cli
Claude Code Hooks docs: https://code.claude.com/docs/en/hooks-guide