II.
Page JSON
Structured · livepage:docs-reference-repos-safishamsi-graphify-research
safishamsi/graphify json
Inspect the normalized record payload exactly as the atlas UI reads it.
{
"id": "page:docs-reference-repos-safishamsi-graphify-research",
"_kind": "Page",
"_file": "wiki/docs/reference-repos/safishamsi/graphify/research.md",
"_cluster": "wiki",
"attributes": {
"nodeKind": "Page",
"sourcePath": "docs/reference-repos/safishamsi/graphify/research.md",
"sourceKind": "repo-docs",
"title": "safishamsi/graphify",
"displayName": "safishamsi/graphify",
"slug": "docs/reference-repos/safishamsi/graphify/research",
"articlePath": "wiki/docs/reference-repos/safishamsi/graphify/research.md",
"article": "\n# safishamsi/graphify\n\n- **Full name**: safishamsi/graphify\n- **Description**: Turn any folder of code, docs, papers, images, or videos into a queryable knowledge graph\n- **Stars**: 23,358\n- **License**: MIT\n- **Last pushed**: 2026-04-12\n- **Topics**: antigravity, claude-code, codex, gemini, graphrag, knowledge-graph, openclaw, skills\n- **Fork**: No\n- **Source**: gh-search\n\n## Archetype\n\n**utility-with-skill** -- A Python-based knowledge graph generator that works as a skill for 10+ AI coding assistants. Three-pass pipeline: deterministic AST extraction (no LLM), local Whisper transcription for audio/video, then Claude subagent extraction for docs/papers/images. Outputs interactive HTML, GraphRAG-ready JSON, and a plain-language audit report.\n\n## Structure\n\n```\ngraphify/\n __init__.py\n __main__.py\n analyze.py # Graph analysis\n benchmark.py # Performance benchmarking\n build.py # Main build pipeline\n cache.py # SHA256 file caching\n cluster.py # Leiden community detection\n detect.py # File type detection\n export.py # HTML/JSON/GraphML/Neo4j export\n extract.py # LLM-based concept extraction\n hooks.py # IDE hook integration\n ingest.py # File ingestion pipeline\n manifest.py # Build manifest\n report.py # GRAPH_REPORT.md generation\n security.py # Security scanning\n serve.py # MCP server mode\n skill.md # Claude Code skill definition\n skill-codex.md # Codex variant\n skill-*.md # Other platform variants\n transcribe.py # Whisper audio/video transcription\n validate.py # Graph validation\n watch.py # File watcher for auto-rebuild\n wiki.py # Wiki generation from graph\npyproject.toml # Python package config\ntests/ # Test suite\nARCHITECTURE.md # Architecture documentation\n```\n\n## Key Techniques\n\n1. **Three-pass extraction** -- Pass 1: deterministic AST for code (22 languages via tree-sitter). Pass 2: Whisper transcription for audio/video. Pass 3: Claude subagents for docs/papers/images\n2. **Honest audit trail** -- Every edge tagged EXTRACTED (from source), INFERRED (with confidence score), or AMBIGUOUS (flagged for review)\n3. **Topology-based clustering** -- Leiden community detection on graph topology (no embeddings needed); semantic similarity edges from Claude influence clustering directly\n4. **SHA256 caching** -- Re-runs only process changed files\n5. **Incremental updates** -- `--update` flag re-extracts only new/changed files\n6. **Multi-format output** -- Interactive HTML, JSON, GraphML, Neo4j Cypher, SVG, Obsidian vault, wiki\n7. **MCP server mode** -- Exposes graph as MCP tools for agent access\n8. **71.5x token reduction** -- Query the graph instead of reading raw files\n9. **Domain-aware transcription** -- Whisper prompt derived from corpus god nodes for better accuracy\n10. **Always-on hook integration** -- PreToolUse hooks make agents consult graph before file searches\n\n---\n\n## Processes\n\nSKIP -- Knowledge graph building is fundamentally a tool/utility, not a development methodology or workflow process. The core value is in the tool itself, not in a reusable process pattern.\n\n## Plugin Ideas\n\n### 1. Knowledge Graph Builder Plugin (Category: Knowledge Management)\n\nA babysitter plugin that integrates graphify's knowledge graph generation into the babysitter workflow. When a run starts on an unfamiliar codebase, the plugin builds (or updates) a knowledge graph and makes it available to all tasks in the run.\n\n**install.md**: Installs graphify as a dependency (`pip install graphifyy`). Registers an `on-run-start` hook that checks for existing `graphify-out/graph.json`. If missing or stale, triggers an incremental build. Injects GRAPH_REPORT.md summary into task context via `on-task-start` hook. Provides `graph:build`, `graph:query`, and `graph:explain` commands.\n\nKey value: 71.5x token reduction per query compared to reading raw files. The always-on hook pattern (consult graph before file searches) maps directly to babysitter's hook system.\n\n### 2. Codebase Architecture Visualizer (Category: Developer Experience & UX)\n\nA babysitter plugin that generates interactive architecture visualizations from the knowledge graph. Integrates with the observer dashboard to show god nodes, community structure, and surprising cross-module connections.\n\n**install.md**: Extends the observer dashboard with a graph visualization widget. Reads `graphify-out/graph.json` and renders an interactive HTML view. Highlights nodes involved in the current run's tasks. Provides `graph:viz` command to open visualization in browser.\n\n### 3. Graph-Aware Code Navigation (Category: Context & Memory)\n\nA babysitter plugin that uses graphify's knowledge graph to provide intelligent code navigation hints. Before a task reads files, the plugin suggests which files are most architecturally relevant based on graph community structure and shortest-path analysis.\n\n**install.md**: Installs `pre-tool-use` hook on Read/Glob/Grep operations. When a task is about to search files, the plugin queries the knowledge graph for related nodes and suggests the most relevant files. Reduces unnecessary file reads and helps tasks find the right code faster.\n\n## Library Mapping\n\n| Extractable Process | Library Status | Action | Existing Path | Target Placement |\n|-------------------|----------------|--------|---------------|------------------|\n| Three-Pass Knowledge Extraction | NEW | Multi-modal content extraction methodology | - | specializations/shared/three-pass-extraction.js |\n| Graph-Based Codebase Analysis | NEW | Knowledge graph generation for code understanding | - | specializations/shared/graph-codebase-analysis.js |\n| Incremental Knowledge Building | NEW | SHA256-based caching for incremental processing | - | specializations/shared/incremental-knowledge-building.js |\n| Multi-Format Knowledge Export | NEW | Knowledge graph output in multiple formats | - | specializations/shared/multi-format-export.js |\n| Topology-Based Content Clustering | NEW | Leiden community detection for content organization | - | specializations/shared/topology-clustering.js |\n| Domain-Aware Transcription | NEW | Context-driven audio/video transcription | - | specializations/shared/domain-aware-transcription.js |\n\n## Plugin Marketplace Mapping\n\n| Plugin Idea | Marketplace Status | Action | Existing Plugin | Target Placement |\n|-------------|-------------------|--------|-----------------|------------------|\n| Knowledge Graph Builder | NEW | Codebase knowledge graph generation and querying | - | plugins/a5c/marketplace/blueprints/knowledge-graph-builder/ |\n| Codebase Architecture Visualizer | NEW | Interactive architecture visualization from knowledge graph | - | plugins/a5c/marketplace/blueprints/architecture-visualizer/ |\n| Graph-Aware Code Navigation | NEW | Intelligent code navigation using knowledge graph | - | plugins/a5c/marketplace/blueprints/graph-aware-navigation/ |\n",
"documents": []
},
"outgoingEdges": [],
"incomingEdges": [
{
"from": "page:docs-reference-repos",
"to": "page:docs-reference-repos-safishamsi-graphify-research",
"kind": "contains_page"
}
]
}