View on GitHub and download the scripts
uv + Python 3.12 + graphify on macOS 10.15 Catalina
🇪🇸 Versión en español
Status: âś… works without patches.
uvinstalls a modern Python on Catalina, and with it graphify (a code graph so Claude Code uses fewer tokens), set up globally and automatically.
| Â | Â |
|---|---|
| System Python | 3.8.2, pip 19.2.3, LibreSSL 2.8.3, no TLS 1.3 |
| uv | 0.13.10 (x86_64-apple-darwin) in ~/.local/bin |
| graphify | package graphifyy (two y), 0.9.124 |
| Files | auto.sh, sync.sh, settings-hooks.json |
1. uv and Python 3.12
curl -LsSf https://astral.sh/uv/install.sh -o "$TMPDIR/uv-install.sh"
grep -n "x86_64-apple-darwin" "$TMPDIR/uv-install.sh" | head -3
sh "$TMPDIR/uv-install.sh"
export PATH="$HOME/.local/bin:$PATH"
uv python install 3.12
"$(uv python find 3.12)" -c "import sys,ssl,sqlite3; print(sys.version); print(ssl.OPENSSL_VERSION)"
2. graphify
uv tool install --python 3.12 graphifyy
graphify --version
cp ~/.claude/CLAUDE.md "$TMPDIR/CLAUDE.md.bak"; cp ~/.claude/settings.json "$TMPDIR/settings.json.bak"
cd "$TMPDIR" && graphify install --platform claude # global skill
cd ~/my-project && graphify update . && graphify query "application form"
graphify global add graphify-out/graph.json
⚠️ Don’t run
graphify claude installper project (duplicates hooks and rules).graphify claude uninstallalso removes the global skill: reinstall withgraphify install --platform claudeand restore yourCLAUDE.md.
3. Automatic for every project
auto.sh→~/.graphify/auto.sh:startbuilds/updates the graph for real projects (≤ 5000 code files; never$HOME, Desktop, Documents, Downloads, Library);editrefreshes it after edits. Local AST only, no tokens. Lock ingraphify-out/.auto.lock.sync.sh→~/claude-memoria/sync.sh: copies all Claude memories and~/.claude/CLAUDE.mdto~/claude-memoria/memoriasand graphs them.- Merge
settings-hooks.jsoninto~/.claude/settings.json(back it up first). - Rules in
~/.claude/CLAUDE.md: ifgraphify-out/graph.jsonexists, usegraphify query/explain/pathbefore grepping or reading code; memories viagraphify query "<topic>" --graph ~/claude-memoria/graphify-out/graph.json.
Test the hook:
echo '{"session_id":"x","cwd":"'"$PWD"'","hook_event_name":"PreToolUse","tool_name":"Grep","tool_input":{"pattern":"foo"}}' | graphify hook-guard search