What is Graphify Ts?
Graphify Ts indexes a TypeScript/Node workspace (and PR diffs) into a local knowledge graph and compiles the graph into compact, verifiable context packs for AI coding agents. It runs entirely on your machine with no cloud dependencies and no API keys.
How to use Graphify Ts?
Install globally with npm install -g @mohammednagy/graphify-ts. Run graphify-ts generate . to build the knowledge graph, then graphify-ts claude install (or the equivalent command for Cursor, Copilot CLI, Gemini CLI, Aider, Codex CLI, OpenCode) to wire the agent via MCP or a context-pack-first profile. Use graphify-ts pack or graphify-ts prompt to produce a provider-ready prompt without MCP.
Key features of Graphify Ts
- Local-first: no cloud required, your code never leaves your laptop.
- Reduces per-session input tokens by up to 5.28× on measured benchmarks.
- Supports PR review via
pr_impact and review-compare tools.
- Works with Claude Code, Cursor, Copilot CLI, Gemini CLI, Aider, Codex CLI, and OpenCode.
- Uses tree-sitter AST for TypeScript/JavaScript with framework-aware passes for 9 substrates.
- Offers MCP tools like
retrieve, impact, call_chain, and community_overview.
Use cases of Graphify Ts
- Cut token usage and latency on codebase questions by providing pre-compiled context to AI agents.
- Review pull request diffs with structured blast-radius analysis and ranked review risks.
- Explore unfamiliar codebases through architecture summaries, call chains, and dependency graphs.
- Run multi-agent workflows across Claude Code, Codex, Copilot, Cursor, and Gemini with a single graph.
评论