Add Claude Code hooks for automatic CodeGraph sync

PostToolUse(Edit|Write) marks the project dirty via .codegraph/.dirty,
and Stop syncs only if dirty — batching all edits into one sync per
Claude response. The installer now writes these hooks to settings.json.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Colby McHenryandClaude Opus 4.6 committed 2026-02-10 01:12:43 -06:00
1 parent 48cc3a8b66
commit f46ba02b87
4 files changed
+175 -4

No files matched your search

+3
View File
@@ -96,6 +96,9 @@ cache/
# Logs
*.log
# Hook markers
.dirty
`;
fs.writeFileSync(gitignorePath, gitignoreContent, 'utf-8');