Knowledge sharing • 6 min read •
3/3 Prompt First vs. Context First – Two Approaches to AI-Driven Development
Tamás Rácz
Lead IT Business Analyst

The perfect prompt or well-structured context? In the final instalment of our series, we explore the differences between the Prompt First and Context First approaches, where project knowledge should reside, and how this shift transforms the entire AI-driven development life cycle.
It’s not the quality of the prompt that matters most, but what the AI knows about the task
As AI-based development gains ground, more and more people are trying to find the perfect prompt. How should we phrase the instruction? What role should we give the AI? What rules and expectations should we include to get the best possible result?
This mindset is essentially built on the Prompt first approach: the instruction sits at the centre of the development task. The more precisely we describe what we want, the better the result we expect.
However, there is another approach that holds far greater potential for AI-based development in the long run: the Context first mindset.
Here, we don’t start by writing the perfect prompt, but by giving the AI the right context. We familiarise it with the system, the business environment, the architectural decisions, the requirements, the constraints and the related documentation.
The difference may seem small at first, but in reality it changes the entire approach to AI-based development.
1. Prompt first – The instruction-centred approach
In the Prompt first mindset, for every single task, a person describes what they want to achieve and then hands it over to the AI in the form of a detailed instruction.
For example:
“Build a REST API that allows users to register and log in. Use JWT-based authentication, validate the input data, handle errors and write unit tests for it.”
The AI receives the instruction and then tries to produce the requested result.
This method can work well for smaller, standalone tasks, for prototypes, or in cases where the task’s environment is simple and requires little prior information.
Problems arise when the task is connected to an existing system, or when development has to take place in a complex business and/or legal environment.
- What technological environment does it need to operate in?
- What architectural principles does it need to follow?
- What business rules does it need to comply with?
- Which existing components does it need to work with?
- Which earlier decisions affect the implementation?
- What regulatory environment does it need to comply with?
If we don’t pass this information on to the AI, it will be forced to infer, make assumptions, or build a solution based on generic patterns.
In these cases, the problem often isn’t the quality of the instruction, but the fact that the AI doesn’t have enough information to properly understand the task.
A typical consequence of the Prompt first approach is that prompts keep growing. After every new problem, we add more rules, exceptions and explanations to them.
After a while, we are no longer writing simple instructions – we are trying to rebuild the knowledge of the entire system in every single prompt.
In the long run, this is hard to sustain.
2. Context first – The context-centred approach
The Context first mindset starts from a different order.
We don’t start by describing what we want from the AI, but by providing it with the information it needs to understand the task.
Among other things, the context can include:
- Business background: the purpose of the system, user needs and business processes.
- Requirements: functional and non-functional requirements, business rules and constraints.
- Architecture: relationships between systems, components, integrations and technology decisions.
- Project knowledge: earlier decisions, open questions, assumptions and dependencies.
- Development rules: coding conventions, testing requirements and project standards.
- Documentation: specifications, models, API descriptions and related technical documents.
In this approach, the prompt is no longer meant to contain every piece of necessary information. Its main job is to define the specific task, the desired outcome and the action to be performed.
For example:
“Implement the user registration feature in line with the existing architecture and the project’s development rules. Create the necessary API endpoints and their corresponding tests according to the requirements.”
On its own, this instruction isn’t particularly detailed. The difference is that the AI already knows the project environment, the relevant requirements and the development rules.
There’s no need to explain how the system works all over again every time.
The context provides the framework, and the prompt defines the task at hand.
3. The fundamental difference between the two approaches
The most important difference doesn’t lie in the length or complexity of the prompts, but in where we place the knowledge.
With Prompt first, the instruction carries a large share of the information needed to understand the task.
With Context first, knowledge and instruction are separated. This makes it possible to use the same context for several different tasks, AI agents or development workflows.
4. How does this change the AIDLC?
The AIDLC (AI-Driven Development Life Cycle) doesn’t simply mean adding AI tools to individual steps of the traditional development life cycle.
The real change is that the AI doesn’t just take part in carrying out individual tasks – it can contribute to the entire development process.
To do that, however, it needs knowledge that connects the whole process.
In a Context first AIDLC process, context isn’t a one-off input, but one of the central elements of the development life cycle.
For example, the process could look like this:
- Understanding the business need: the AI learns about the problem, the business environment and stakeholder expectations.
- Defining requirements: based on the available information, it helps structure, refine and validate the requirements.
- System design: it takes into account the existing architecture, technological constraints and earlier decisions.
- Development: it supports or carries out the implementation based on the approved requirements and designs.
- Testing: starting from the requirements and acceptance criteria, it creates test cases and then supports verification.
- Documentation and maintenance: it updates the related documentation and the project knowledge base along with the changes.
The key point is that the individual phases are not isolated AI tasks.
Information created in one phase becomes part of the input context for the next. Development decisions can be traced back to the requirements, and tests can verify whether the implementation truly meets expectations.
This is what creates a coherent, traceable AI-based development process.
5. Context isn’t one big document
It’s important to clarify that Context first doesn’t mean gathering all project information into one huge document.
In fact, that can easily lead to the same problems as oversized prompts.
Context needs to be structured, maintainable and suited to the task.
Not every AI task needs every project document.
For a business analysis task, business processes, requirements and stakeholder expectations are the most relevant. For a development task, architecture, technology decisions and development rules also become essential.
That’s why selecting the relevant context is an important part of the Context first approach.
The goal isn’t to pass on as much information as possible, but to provide the right information at the right time.
To achieve this, it’s worth breaking the project’s knowledge down into separate, interconnected elements that can be used as needed.
And the quality of the context needs to be checked just like the quality of the requirements or the source code.
6. The prompt doesn’t disappear
It’s important not to see the two approaches as alternatives to each other.
Context first doesn’t mean the end of prompting. The prompt remains an indispensable tool.
The difference is that its role changes.
In a Prompt first world, the prompt tries to solve the problem of missing context.
In a Context first world, the context provides the necessary knowledge, and the prompt defines what the AI should do with that knowledge.
So a good prompt is still important, but on its own it can no longer be considered a guarantee of a good result.
Even a brilliantly worded instruction won’t make up for missing business requirements, undocumented architectural decisions or a lack of project knowledge.
Summary: Don’t just ask the AI the right questions – teach it about your project, too!
The next level of maturity in AI-based development won’t necessarily come from writing better and better prompts.
Much more likely, it will come from our ability to create a structured, up-to-date knowledge base that the AI can rely on throughout the entire development life cycle.
In the Prompt first mindset, we try to write the best possible instruction for every task.
In the Context first mindset, we build an environment in which the AI already understands what system it’s working with, what problem it needs to solve, what rules it must follow and which earlier decisions it needs to keep in mind.
The future of AI-based development isn’t about finding the perfect prompt, but about building and maintaining the right context.
Because the biggest advantage isn’t being able to tell the AI exactly what to do every time – it’s when the AI already understands why, and in what environment, it needs to do it.



