
𝐂𝐥𝐚𝐮𝐝𝐞 𝐂𝐨𝐝𝐞 𝐨𝐧 𝐁𝐫𝐨𝐰𝐧𝐟𝐢𝐞𝐥𝐝 𝐂𝐨𝐝𝐞𝐛𝐚𝐬𝐞𝐬: 𝐓𝐡𝐞 𝐇𝐚𝐫𝐧𝐞𝐬𝐬 𝐈𝐬 𝐭𝐡𝐞 𝐏𝐫𝐨𝐝𝐮𝐜𝐭
New project, new codebase - your coding agent shapes conventions and follows them consistently. Legacy codebase - that agent must obey conventions authored years ago by people who left no documentation. Most teams get burned because they expect the model to figure this out on its own.
The real bottleneck on brownfield code is not the model's intelligence. It is the 𝐡𝐚𝐫𝐧𝐞𝐬𝐬 - the context you engineer around it. On greenfield, the agent authors its own conventions and stays consistent by construction. On brownfield, it becomes a convention-follower trying to reverse-engineer architectural decisions it never sees. A smaller issue in a single PR. A systemic risk across ten developers, each agent re-inventing logging patterns, query paths, error types slightly differently. Your codebase drifts faster than it did before.
Claude Code navigates like an engineer - grep, file reads, reference-following - not via vector indexes. That means what it learns depends entirely on what the harness guides it to read, in what order, under what instructions. You control the signal-to-noise ratio. You shape which conventions enter its context window first. You decide whether it finds your house logger or invents a new one.
𝐓𝐡𝐞 𝐮𝐧𝐜𝐨𝐦𝐟𝐨𝐫𝐭𝐚𝐛𝐥𝐞 𝐭𝐫𝐮𝐭𝐡: Anthropic's own guidance says the constraint is the harness, not the model. The demos showcase greenfield - where the agent's guesses cannot collide with anything. Production is the other case. A million-token window still holds a fraction of your system, and models degrade in reliability as context grows. Without a shared harness across your team, Convention Inversion becomes a tax on every session - slower code review, architectural drift, entropy you have to pay for later.
Read the full article to see how to structure the harness, what information to surface first, and how to close the gap between the conventions your codebase enforces and the ones an agent discovers on its own.
ranjankumar.in/claude-code-br…
Follow Ranjan Kumar for more on context engineering, agentic systems, and how to stay relevant as an engineer in the loop.
#ClaudeCode #AIEngineering #CodingAgents #BrownfieldCode #ContextEngineering #AgenticAI #DeveloperTools


English






















