Detect dead exports in JavaScript for cleaner code and improved AI project efficiency

Detect Dead Exports JavaScript for Cleaner AI Code

Dead exports are unreferenced exports in JavaScript—clutter that slows AI-assisted development and increases risk. Detect them with project-wide static analysis, using Knip for monorepos and ts-prune for TypeScript, while watching for false positives from barrels and dynamic imports. Tree-shaking wo

Dan Greer · · 9 min read
Dashboard showing tools and metrics to find unused code in TypeScript project efficiently

How to Find Unused Code in Your TypeScript Project Fast

Dead code in fast-moving TypeScript projects slows builds and confuses AI-driven development. It piles up from rapid changes, fear of breaking unseen consumers, AI duplicates, and hidden abstractions. Automated tools like Knip (and ts-prune, unimported) plus graph maps (ENRE-ts, Pharaoh) reveal

Dan Greer · · 9 min read
Diagram illustrating how to check blast radius before refactoring code for AI agent readiness

Check Blast Radius Before Refactoring for AI Agent-Ready Code

Before refactoring with AI agents, you must check blast radius to avoid silent breakages. The article promotes deterministic knowledge-graph blast-radius analysis (Pharaoh) that parses code with Tree-sitter and stores relationships in Neo4j, enabling multi-hop reachability for changes. Integrating t

Dan Greer · · 8 min read
How to prevent regressions with AI coding: team reviewing code with AI tools on laptops

How to Prevent Regressions with AI Coding for Small Teams

AI coding accelerates regressions due to limited context, causing silent breakages and duplication in small teams. The guide promotes an architecture-first approach: model the codebase as a living knowledge graph that agents can query to guide changes. It adds guardrails—blast radius, reachability,

Dan Greer · · 9 min read
Diagram illustrating codebase context for AI agents analyzing and interacting with project repositories

How to Build Codebase Context for AI Agents in Your Repo

AI agents work best with true codebase context—a structured, graph-backed map of modules, dependencies, and endpoints—not file dumps. Flat context misses links and drifts while inflating token costs; deterministic parsing (Tree-sitter) keeps facts reliable. Pharaoh converts TS/Python repos into a Ne

Dan Greer · · 8 min read
Dead code detection MCP concept showing agent optimizing code for faster intelligence development

Dead Code Detection MCP: Boosting Agent Intelligence Fast

Dead code detection MCP gives real-time, deterministic identification of unused or unreachable code, making its truth accessible to AI agents and tools like Claude Code and Cursor. It exceeds traditional tools by cross-repo reachability with Tree-sitter and graph databases and eliminates runtime LLM

Dan Greer · · 7 min read
Illustration showing developers using tools to function search across codebase efficiently

8 Powerful Ways to Function Search Across Codebase Efficiently

The piece outlines eight strategies to search, validate, and reuse functions at scale in AI-augmented codebases, emphasizing speed, accuracy, and deterministic results. It centers on Pharaoh search_functions, a Neo4j knowledge graph with MCP that delivers import-path aware results and zero per-query

Dan Greer · · 8 min read
Code dependency graph visualizing MCP server relationships and architecture

Code Dependency Graph MCP Server: Map Relationships Fast

Code Dependency Graph MCP servers turn a codebase into a deterministic, queryable knowledge graph of modules, functions, and endpoints, giving AI tools a reliable architectural map instead of scattered snippets. They reduce blind spots, enable blast-radius analysis, and improve security by exposing

Dan Greer · · 8 min read
AI agents collaborating using a codebase intelligence platform for efficient software development

Smarter AI Agents with a Codebase Intelligence Platform

The article promotes a codebase intelligence platform that gives AI agents architecture-aware, live context via a knowledge graph. This context prevents hidden dependency gaps, reduces duplication, and enables deterministic, safer refactors. Pharaoh offers automatic TS/Python parsing, 13+ graph tool

Dan Greer · · 7 min read
Diagram illustrating how an mcp server for code understanding processes and analyzes source code

How to Use an MCP Server for Advanced Code Understanding

An MCP server for code understanding turns your codebase into a structured Neo4j knowledge graph that AI agents query for ground-truth architecture (call graphs, ASTs, dependencies). It delivers deterministic answers with zero per-query token cost after indexing and strict tool boundaries via a mani

Dan Greer · · 7 min read