Inject git status into every Claude Code session with a SessionStart hook
Claude Code can run a hook when a session starts. That is the right place to inject context you always want: current branch, dirty files, open TODOs — without typing it every time. Minimal SessionStart hook In .claude/settings.json (or settings.local.json for personal-only rules): { "hooks" : { "Se…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-11-06 01:11 · DEV Community — AI
Inject git status into every Claude Code session with a SessionStart hook