Lightweight AST-based codebase indexer for AI coding assistants. Generates a
relationships.json that Claude Code / Cursor / etc. can reference instead of exploring the entire codebase.
paragraph.com/@metaend
ai
llm
eco
ast
golang
1#!/bin/bash
2# .git/hooks/post-commit
3# Auto-regenerate codebase index after commits
4
5OUTPUT=".context/relationships.json"
6
7# Only run if indexer is installed
8if command -v codebase-indexer &>/dev/null; then
9 echo "Updating codebase index..."
10 codebase-indexer -root . -out "$OUTPUT" 2>/dev/null
11
12 # Optionally stage the updated index (uncomment if you want it tracked)
13 # git add "$OUTPUT"
14fi