Modern apps, old systems

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. uv installs 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 install per project (duplicates hooks and rules). graphify claude uninstall also removes the global skill: reinstall with graphify install --platform claude and restore your CLAUDE.md.

3. Automatic for every project

  1. auto.sh → ~/.graphify/auto.sh: start builds/updates the graph for real projects (≤ 5000 code files; never $HOME, Desktop, Documents, Downloads, Library); edit refreshes it after edits. Local AST only, no tokens. Lock in graphify-out/.auto.lock.
  2. sync.sh → ~/claude-memoria/sync.sh: copies all Claude memories and ~/.claude/CLAUDE.md to ~/claude-memoria/memorias and graphs them.
  3. Merge settings-hooks.json into ~/.claude/settings.json (back it up first).
  4. Rules in ~/.claude/CLAUDE.md: if graphify-out/graph.json exists, use graphify query/explain/path before grepping or reading code; memories via graphify 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