AI refactoring breaks other code illustration showing broken chains between software modules

AI Refactoring Breaks Other Code: Causes and Solutions

AI refactoring often breaks other code by editing one file at a time, duplicating utilities, or changing signatures without full dependency context. Without a live map of modules and calls, cross-module breakages slip into production. Blueprint-driven refactoring maps the repo into a knowledge graph

Dan Greer · · 8 min read
Diagram showing code blocks merging to prevent duplicate functions in AI coding workflows

How to Prevent Duplicate Functions in AI Coding Workflows

AI coding often re-creates similar logic under different names because tools lack global architectural context, creating semantic duplicates. The guide promotes mapping the repo into a live knowledge graph (Pharaoh) to reveal structure, surface duplicates early, and give agents reliable context. It

Dan Greer · · 8 min read
AI coding tool writes redundant functions in code editor, highlighting inefficiency concerns

AI Coding Tool Writes Redundant Functions: What to Do?

AI coding tools often generate redundant functions because they lack a holistic view of the repo. This duplication burden especially harms small teams through more reviews, tests gaps, and regression risk. A knowledge-graph approach (Pharaoh) maps code into a Neo4j graph, surfacing canonical utiliti

Dan Greer · · 7 min read
Frustrated developer facing errors because Claude code doesn't understand codebase

Fix When claude code doesn't understand codebase

AI coding tools like Claude Code struggle with codebase context due to limited memory and no persistent map, causing duplicate logic and missed dependencies. The article advocates a persistent knowledge graph that encodes modules, dependencies, and endpoints to enable blast-radius analysis and dead-

Dan Greer · · 9 min read