Skip to main content

Command Palette

Search for a command to run...

Stop Giving AI More Context

Updated
5 min read

One of the most common pieces of advice in AI development today is surprisingly simple: give the model more context.

When an AI assistant makes a mistake, people assume the problem is that it didn't have enough information. So they add more files, more documentation, more requirements, more examples, and sometimes entire codebases. The belief is that if the model could just see everything, it would finally understand what needs to be done.

In practice, the opposite often happens.

Recently, I watched a developer spend nearly an hour gathering architecture documents, API references, meeting notes, product requirements, and source code for an AI coding assistant. The final prompt contained far more information than any engineer would realistically absorb before starting a task. The response looked impressive at first glance. It referenced internal services, mentioned technical constraints, and generated hundreds of lines of code. Unfortunately, much of it was based on incorrect assumptions.

The issue wasn't that the model lacked information. The issue was that it had too much of it.

Developers often assume AI systems process information the same way humans do. Humans are remarkably good at identifying what matters and ignoring what doesn't. An experienced engineer can scan dozens of documents and quickly recognize which details are relevant to the problem at hand. AI models don't naturally do this. They don't understand which paragraph contains a critical business rule or which architectural decision is more important than a hundred lines of implementation details. They simply process everything they're given and attempt to find patterns.

This creates a paradox. The more information you provide, the harder it can become for the model to determine what actually matters.

Imagine onboarding a new engineer. You wouldn't start by handing them every Slack message, every Jira ticket, every design document, and every line of source code ever written by the company. You would carefully select the information that helps them solve the problem in front of them. Context isn't valuable because there's a lot of it. Context is valuable because it's relevant.

The same principle applies to AI.

Many teams are discovering that their biggest challenge isn't generating code. It's managing context. As context windows continue to grow, developers have become obsessed with fitting more information into prompts. Yet larger context windows haven't magically solved the underlying problem. If anything, they've made it easier to overload models with information that sounds useful but contributes little to the task.

What's interesting is that most AI failures don't happen because the model can't see the code. They happen because the model can't see the decisions behind the code.

An AI assistant can analyze a service architecture, but it doesn't know why the team chose that architecture. It can review an API, but it doesn't know why a seemingly obvious endpoint was intentionally avoided. It can suggest a cleaner implementation, but it doesn't know that a previous version caused production incidents and had to be rolled back.

The most important information in many organizations isn't stored in repositories. It's stored in reasoning, discussions, trade offs and decisions.

That's why some of the most effective teams using AI today aren't focused on building bigger prompts. They're focused on preserving knowledge. They write architecture decision records. They document constraints. They record rejected approaches and explain why they failed. They create systems that capture intent rather than just implementation.

Ironically, a one page document explaining why something exists is often more valuable to an AI assistant than thousands of lines of code showing how it works.

This represents a shift in how we think about AI collaboration. Instead of asking how much information we can provide, we should be asking whether we're providing the right information. More context is not automatically better context. In many cases, carefully selected information outperforms a massive collection of loosely related documents.

Before asking an AI model to solve a problem, it may be worth documenting a few simple things: the goal, the constraints, the decisions that have already been made, the approaches that have already been rejected, and the definition of success. These details are often missing from prompts, yet they are exactly what humans rely on when making decisions.

As context windows continue to expand, many people assume the future of AI development is simply feeding larger amounts of information into increasingly capable models. I suspect the opposite may be true. The teams that gain the most value from AI won't necessarily be the ones with the largest context windows. They'll be the ones that become exceptionally good at curating, organizing, and preserving knowledge.

AI can read your files. It can read your documentation. It can read your codebase. What it still struggles to understand is intent. And in software development, intent is often the difference between a solution that merely works and a solution that solves the right problem.

Perhaps the future of AI assisted development isn't about giving models more context. Perhaps it's about learning how to give them better context.

3 views