Knowledge sharing • 7 min read •
2/3 Context-Driven Development: When Context, Not Code, Determines the Quality of the Solution
Tamás Rácz
Lead IT Business Analyst

AI can now write code in minutes, but does it actually understand the system it’s working in? In the second part of our series, we show what context-driven development means, what good context is made of, and why it decides whether an AI-built solution truly fits the existing system.
Introduction
The arrival of AI-based development tools has significantly changed the way software is built. Today, an AI assistant can generate code, refactor existing solutions, find bugs, write tests, and even implement complete features.
This technological progress, however, raises an important question: is the biggest challenge producing the right code, or making sure the AI understands exactly what it needs to build and why?
The answer increasingly points to the latter.
Context-Driven Development offers an approach to this problem. Its essence is that during development we don’t rely solely on the current task description or the developer’s instructions, but provide the AI with a structured, continuously maintained knowledge base.
What is context-driven development?
Context-driven development is an approach in which AI doesn’t work from isolated instructions, but starts from the fuller information environment needed to understand the task.
This context can include, among other things:
- Business context: what problem are we solving, who are the users, and which business goals need to be supported?
- Functional requirements: how do we expect the system to behave?
- Technical architecture: which technologies, components and integrations do we use?
- Development rules: which coding conventions, design patterns and technical constraints must be followed?
- Past decisions: which solutions have already been decided on, and why?
- Testing and quality expectations: under what conditions is a piece of work considered done?
The goal is for the AI to know not only what it needs to build, but also what kind of system it is working in, which rules apply, and which business goal it is serving.
Why isn’t a good prompt enough on its own?
In the early days of AI-based development, many people saw prompting as the key to efficiency. The more precise and detailed the instruction, the better the result – or so the assumption went.
In practice, however, the limitations show up quickly.
In a complex system, a single task description can’t contain all the relevant business and technical information. Explaining how the system works to the AI over and over again is time-consuming and can easily lead to contradictions.
Another problem is local optimization. The AI can produce a solution that looks correct in isolation, but doesn’t fit how the system works as a whole.
For example:
- A new API endpoint gets built, but doesn’t follow the existing API conventions.
- A database change works, but violates the system’s earlier data-model decisions.
- A feature gets implemented, but ignores a previously defined business rule.
- A bug fix resolves the issue at hand, but has side effects on other processes.
These aren’t necessarily failures of code generation. Much more often, they are the consequences of incomplete or inaccurate context.
So the right context doesn’t simply mean a longer prompt, but an information foundation the development process can consistently rely on.
Building the context
One of the most important conditions for effective context is structure. The goal isn’t to simply hand every available document to the AI. What matters far more is that the relevant information is easy to find, easy to interpret and up to date.
One possible structure:
1. Project context
Covers the project’s core purpose, scope and business background.
For example:
- The purpose and main functions of the system.
- The user groups.
- The business processes.
- Connections to external systems.
- The most important business constraints.
2. System and technical context
Describes how the system works technically.
This includes:
- Architecture and component structure.
- Technology stack.
- Data model and data relationships.
- APIs and integrations.
- Security and access-control solutions.
- Development and deployment processes.
3. Requirements and feature context
Contains the business and functional expectations for each development task.
It’s important that requirements describe not only the desired behavior, but also the related business rules, exceptions and dependencies.
4. Decision context
One of the most frequently underrated areas.
Many technical and business decisions are made over the course of a development project. If their reasoning isn’t documented, the AI may later raise the same questions again, or propose a solution that was already rejected.
That’s why architecture decision records (ADRs), technical notes and decision logs are especially valuable.
5. Development and quality rules
These define how the AI should work.
For example:
- Which coding conventions must be followed?
- Which tests need to be written?
- When should existing solutions be reused?
- Which changes require separate approval?
- Which documentation needs to be updated after a change?
What does this look like in practice?
Imagine a development task whose goal is to introduce a new user permission management feature.
In a traditional, prompt-centric approach, the developer might write something like this:
“Create a permission management module that allows users to be managed by role.”
From this, the AI can build a working solution, but many questions remain open:
- Which roles exist?
- How are permissions linked to users?
- Is there already a permission management mechanism in place?
- Which external identity service is in use?
- What are the auditing requirements?
- How should permission changes be handled?
In a context-driven approach, the AI already has access to the relevant system description, data model, architecture decisions and development rules before development begins.
So the task becomes not creating yet another standalone module, but designing a solution that fits into the existing system.
The difference doesn’t necessarily show in the quantity or quality of the generated code, but in how well the result fits the system as a whole.
The context-driven development process
The approach isn’t only about preparing documentation. It can be built into an entire development process.
One possible workflow:
1. Preparing the context
Gathering, structuring and validating project and system information.
2. Interpreting the task
The AI receives the development request along with the related context. As a first step, it explores the requirements, the affected components and possible dependencies.
3. Creating an implementation plan
Before any actual coding, a change plan is prepared. It lists the affected files, components, data structures and the required tests.
4. Development
The AI carries out the changes based on the approved plan, taking the project’s rules and past decisions into account.
5. Verification
Testing the solution, reviewing the code, and checking it against the requirements.
6. Updating the context
New decisions made during development and changed system information are fed back into the documentation.
This last step is especially important: the context isn’t a static set of documents, but a knowledge base that evolves together with the system.
Which tools can make it happen?
Context-driven development isn’t tied to any single technology or development tool.
In practice, it can be built by combining several tools and approaches.
AI-based development environments
Tools such as Cursor or Claude Code allow the AI to take the project’s files, documentation and development rules into account.
Project instructions and rule files
Files such as README, AGENTS.md, .cursor/rules and similar can help the AI apply project-specific rules consistently.
Structured documentation
Requirements, architecture descriptions, data models and ADRs provide a knowledge base that stays reusable over the long term.
MCP and external integrations
With MCP (Model Context Protocol), the AI can also access relevant information from external systems, such as Jira tickets, documentation or development tools.
RAG and searchable knowledge bases
For larger systems, Retrieval-Augmented Generation (RAG) lets relevant information be searched and passed to the AI dynamically, instead of having to load every document at once.
The biggest challenge: the quality of the context
The amount of context doesn’t, by itself, equal quality.
A large body of documentation can even make development less effective if it contains outdated, contradictory or irrelevant information.
Some typical risks:
- Outdated information: the AI relies on earlier operating rules that no longer apply.
- Contradictory documentation: several documents describe the same process differently.
- Too much information: the relevant details get lost in a large volume of context.
- Missing decision rationale: the AI can’t tell a deliberately chosen solution apart from a temporary state.
- Poor source management: it isn’t clear which document counts as authoritative.
That’s why context management becomes at least as important a task as writing the documentation itself.
The right approach isn’t to give the AI as much information as possible, but to make sure it always has the right information.
The role of the Business Analyst in the new development model
Context-driven development doesn’t only reshape developers’ work. The role of the Business Analyst also becomes more valuable.
AI can interpret requirements, write user stories, model processes or propose technical solutions. To do so, however, it needs a precise understanding of the business context.
So one of the BA’s key responsibilities becomes building and maintaining the business context.
Among other things, this includes:
- Clearly defining business goals and problems.
- Documenting requirements and business rules in a structured way.
- Uncovering the connections between the systems and processes involved.
- Recording decisions and the reasoning behind them.
- Validating the AI’s output from a business perspective.
This way, the BA isn’t simply writing task descriptions for the AI, but actively contributing to the knowledge base that development is built on.
It also brings business analysis, system design and software development closer together.
Summary
The next level of AI-based development probably won’t come from bigger or faster models alone.
Real progress may come when AI doesn’t just execute isolated tasks, but can understand the project’s business goals, technical relationships, past decisions and operating rules.
Context-driven development puts this mindset at the center.
The focus is gradually shifting from the question “how do we get AI to write code?” to “how do we make sure AI solves the right problem, with an understanding of the right context?”
Because good AI development doesn’t start with the prompt, but with the knowledge we give the AI.



