How Claude Code context limits affect large codebases

Claude Code Context Limits: How Developers Overcome Them

Claude Code context limits are a session-wide memory budget, not just prompt length, including history and file reads. In large monorepos, token burn is quick as big files and logs exhaust tokens, so local reads miss dependencies. The article argues architectural context—dependencies and call paths—

Dan Greer · · 10 min read
Code graph MCP server for architecture context and safer AI code changes

Code Graph MCP Server for Safer AI Code Changes

AI-assisted coding is only safe if the AI can see the codebase architecture, not just edit files. A code graph MCP server provides a code graph, an MCP interface, and safety via impact analysis before edits. It champions relationship-first workflows—tracing callers, dependencies, routes, tests, and

Dan Greer · · 11 min read
Code change blast radius analysis to prevent costly AI coding mistakes

Code Change Blast Radius: Prevent Costly AI Coding Mistakes

Code-change blast radius—not file count—drives AI-edit risk, as small tweaks can ripple through callers and deployments. Identify changed symbols, trace callers (direct and transitive), assess failure modes, and rate reversibility to shape tests and rollout. AI often creates plausible code that miss

Dan Greer · · 10 min read
Software impact analysis for code changes in safer AI-assisted coding

Software Impact Analysis for Safer AI-Assisted Code Changes

AI helps speed changes but often misses cross-cutting effects; software impact analysis is essential to assess blast radius, contracts, and dead code before merging. The piece lays out seven questions and a practical workflow to map dependencies, interfaces, tests, owners, and failure modes, plus a

Dan Greer · · 13 min read
Visualizing service dependencies in software systems for safer AI-assisted code changes

Service Dependency Graph for Safer AI-Assisted Code Changes

AI edits in multi-service codebases are risky if you judge them by diffs alone; you must map upstream and downstream impact and blast radius across contracts, schemas, and deployment. A useful service dependency graph is artifact-driven, multi-layered (service calls, packages, symbols, schemas, infr

Dan Greer · · 11 min read
Codebase knowledge graph for software architecture enabling faster, safer AI coding

Codebase Knowledge Graph for Faster, Safer AI Coding

AI coding is risky in real repos because models miss architecture. A codebase knowledge graph records entities (files, modules, functions, endpoints) and relations (calls, imports, reachability) to gauge blast radius before edits. Build it with AST parsing, relationship extraction, incremental updat

Dan Greer · · 12 min read
Dead code definition for developers: essential guide for engineers

Dead Code Definition: The Essential Guide for Engineers

Dead code isn’t just what grep misses; it’s code that no longer affects behavior, given reachability, side effects, and who depends on it. The article classifies dead code into unreachable paths, unused definitions, dead variables, and stale comments, and warns that deletion isn’t safe if side effec

Dan Greer · · 11 min read
AI writes code that already exists, causing duplicate work

AI Writes Code That Already Exists: Avoid Duplicate Work

AI often writes new helpers that already exist because it only sees a slice of the codebase, especially in multi-module repos. Duplicates can be exact, near, or semantic; semantic duplicates are the riskiest since the behavior is the same but the implementation differs. The article proposes a pre-ed

Dan Greer · · 10 min read
Essential MCP tools for AI coding assistants in Claude Code development

Essential MCP Tools for Claude Code Developers

MCP tools don’t magically smarten Claude Code; they give it enough system context to safely understand dependencies and blast radius when editing code. The article advocates a lean, staged stack: start with codebase-context tools (like Pharaoh) and GitHub, then add databases, UI checks, or incident

Dan Greer · · 10 min read
Mapping dependencies in a monorepo with a dependency graph for smarter AI development

Monorepo Dependency Graph for Smarter AI Development

In a monorepo, AI edits feel risky because file proximity hides dependencies; a graph of inbound usage and symbol-level links makes blast radius visible before changes. The article favors layered graphs—package builds plus deeper file/symbol maps for safe refactors—static and architecture-focused. P

Dan Greer · · 10 min read