Claude Code stop hook that spawns a background Haiku agent every N turns to summarize what the agent is doing as a Mermaid DAG.
Every 7 turns (configurable), a one-shot Haiku agent reads the session transcript and appends new nodes to a Mermaid flowchart at:
.claude/agent-watch/yyyy-MM-dd-{session}.md