Engineering productivitypattern
Session-ID hook stamps every artifact with its session identifier
Problem solved: months later, you can open a doc, find a session ID inside, and rehydrate the exact agent session that produced it.
What
A SessionStart hook in Claude Code writes a unique session ID into the agent's env; CLAUDE.md instructs the agent to embed that ID in the front-matter of every file it creates or modifies. Trivial to implement, high payoff for long-running projects.
← All casesC-098