How tomas587/graphify works
Graphify is a local codebase-to-knowledge-graph tool used through an AI assistant or CLI. The main workflow discovers repository files, extracts code and document knowledge, resolves and builds graph structure, then analyzes and exports graph views and reports for later queries. The map also preserves documented multimodal ingestion, graph querying, and output capabilities. Source excerpts and the index establish several internal calls; other links are limited to README-documented behavior, so unsampled implementation details are not asserted.
Main entry points: cli.py CLI workflow · build.py Graph builder · extract.py Code extraction · detect.py File discovery
Components 25
Entry and discovery
- CLI workflow
graphify/cli.py - File discovery
graphify/detect.py
Extraction and resolution
- Document ingestion
graphify/ingest.py - Semantic pass
graphify/llm.py - Code extraction
graphify/extract.py - Extractor foundation
graphify/extractors/base.py - Language extractor engine
graphify/extractors/engine.py - C# extractor
graphify/extractors/csharp.py - Symbol resolution
graphify/extractors/resolution.py - Package manifests
graphify/manifest_ingest.py
Graph construction
- Canonical IDs
graphify/ids.py - Graph builder
graphify/build.py - Node deduplication
graphify/dedup.py - Incremental cache
graphify/cache.py - Input safety
graphify/security.py
Analysis and outputs
- Graph analysis
graphify/analyze.py - Subsystem clustering
graphify/cluster.py - Interactive graph export
graphify/exporters/html.py - Large graph renderer
graphify/exporters/html_large.py - Graph report
graphify/report.py - Output paths
graphify/paths.py - Persisted graph
graphify/export.py
Query and context
- Graph query
graphify/cli.py - MCP graph ingestion
graphify/mcp_ingest.py
Other components
- Developer / assistant
Connections 25
- Developer / assistant → CLI workflow: runs workflow
README.md - CLI workflow → File discovery: maps repository
- File discovery → Incremental cache: checks cached files
graphify/detect.py - File discovery → Document ingestion: selects documents
- Document ingestion → Semantic pass: semantic extraction
- CLI workflow → Code extraction: maps code
- Code extraction → Extractor foundation: uses foundation
graphify/extractors/base.py - Code extraction → Symbol resolution: resolves symbols
graphify/extractors/resolution.py - Code extraction → Language extractor engine: dispatches parsing
- Language extractor engine → C# extractor: selects language parser
- CLI workflow → Package manifests: ingests manifests
- CLI workflow → Graph builder: builds graph
- Graph builder → Canonical IDs: normalizes identifiers
graphify/build.py - Graph builder → Output paths: uses output paths
graphify/build.py - Graph builder → Code extraction: consumes extraction
graphify/build.py - Graph builder → Node deduplication: deduplicates nodes
graphify/build.py - Graph builder → Input safety: guards graph input
graphify/build.py - CLI workflow → Graph analysis: analyzes graph
- Graph analysis → Subsystem clustering: clusters subsystems
graphify/analyze.py - CLI workflow → Interactive graph export: exports graph view
- Interactive graph export → Large graph renderer: renders large graphs
graphify/exporters/html.py - CLI workflow → Graph report: writes highlights
- CLI workflow → Persisted graph: persists graph
- Developer / assistant → Graph query: queries graph
README.md - Developer / assistant → MCP graph ingestion: shares graph context