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 McHenry
2026-02-10 01:12:43 -06:00
co-authored by Claude Opus 4.6
parent 48cc3a8b66
commit f46ba02b87
4 changed files with 175 additions and 4 deletions
+3
View File
@@ -96,6 +96,9 @@ cache/
# Logs
*.log
# Hook markers
.dirty
`;
fs.writeFileSync(gitignorePath, gitignoreContent, 'utf-8');