Glossary

What is Context engineering?

In Turkish: Bağlam mühendisliği · Topic: Using AI

The work of designing and managing what a language model is given at each step: information, instructions, tools and conversation history. The aim is to fill the model's working window with the right content.

How does it work?

A model can only see a limited amount of text at once, a space known as the context window. In context engineering, someone chooses among the system instructions, conversation history, retrieved documents, tool descriptions and notes about the user; these are ordered, summarized, and trimmed of anything unnecessary. In multi-step agents, this selection is redone before every step. It is like arranging papers on a desk: too few and something is missing, too many and the key detail gets buried.

Why does it matter?

The same model can perform far better with the right context, and some failures in agent applications come from incomplete or cluttered context rather than from the model itself. The idea is often seen as a broader take on prompt engineering, going beyond writing a single piece of text. Context size also affects cost and response time.

Example

Instead of feeding an entire code repository to the model, a coding assistant puts only the relevant files, the project's style rules and the latest error message into the context.

FAQ

How does context engineering differ from prompt engineering?

Prompt engineering mostly focuses on writing a good instruction. Context engineering covers managing everything that enters the model: instructions plus documents, history, tools and memory.

If the context window is large, is context engineering still needed?

Yes. Even in a large window, unnecessary content raises cost and can make the model more likely to overlook the information that matters.

All terms