Graphify in the Workspace
graphify turns the workspace into a graph of files, symbols and their relationships, grouped into communities, with the most connected “god nodes” highlighted. The assistant asks the graph a question and gets back a small subgraph, instead of reading many files. The reasoning is in ADR-AI-004. Installation, measured savings and the security review for the ecommerce monorepo are in the ecommerce case study.
What is where
| Path | Role |
|---|---|
.devcontainer/shared/install-graphify.sh |
Installs the graphify CLI when a dev container is built, root-owned in /usr/local/bin, at the version in .claude/skills/graphify/.graphify_version |
.claude/skills/graphify/ |
Project copy of the skill, so a fresh clone has /graphify without a global install |
graphify-out/ |
The local graph (graph.json, GRAPH_REPORT.md, optional wiki/). Gitignored, so each clone builds its own |
.graphifyignore |
Excludes docs/, build output, platform folders and secret files from the index |
.claude/settings.json |
graphify hook-guard hooks on Bash/Grep and Read/Glob |
Ask the graph first
The workspace CLAUDE.md tells the assistant to use these before a broad search when graphify-out/graph.json exists:
graphify query "where is the audit-trail publisher wired?"
graphify path "order-service" "document-service"
graphify explain "op run"
queryfor a question,pathfor how two things connect,explainfor one concept.- If
graphify-out/wiki/index.mdexists, use it for broad navigation. - Read
GRAPH_REPORT.mdonly for an architecture review, or when the three commands do not surface enough.
You can ask in plain words (“use graphify to find …”), or run /graphify to build or rebuild.
Build it once per container
The container installs the CLI but does not build a graph, because a full build is slow and its optional semantic step can send content to a language model. That choice should be made by a person. After the first start, run /graphify in Claude Code at the workspace root to create graphify-out/. To upgrade graphify, change .graphify_version through a pull request and rebuild the container.
Keep it current
After changing code, run:
graphify update .
It re-parses the AST only and makes no API calls. A stale graph points at moved or deleted code.
Keep secrets and docs out
.graphifyignorelists environment files, key material, cloud CLI folders anddocs/. When you add a project, check whether it needs new entries.graphify-out/is never committed and never copied into published docs. It can contain paths and identifiers.- The env-guard hook still applies to the assistant’s own calls. Treat graphify output like any file: if it shows a value that looks like a secret, stop and remove it at the source.