arXivcontext management2025-07-17

A Survey of Context Engineering for Large Language Models

Lingrui Mei, Jiayu Yao, Yuyao Ge, Yiwei Wang, Baolong Bi, Yujun Cai, Jiazhi Liu, Mingyu Li, Zhong-Zhi Li, Duzhen Zhang, Chenlin Zhou, Jiayi Mao, Tianze Xia, Jiafeng Guo, Shenghua Liu

View Original →

Abstract

The performance of Large Language Models (LLMs) is fundamentally determined by the contextual information provided during inference. This survey introduces Context Engineering, a formal discipline that transcends simple prompt design to encompass the systematic optimization of information payloads for LLMs. The survey examines foundational components — context retrieval and generation, context processing and context management — and explores how these components are architecturally integrated into sophisticated system implementations: retrieval-augmented generation (RAG), memory systems and tool-integrated reasoning, and multi-agent systems. A systematic analysis of over 1,400 research papers establishes a comprehensive technical roadmap for the field.

Relevance to Tokalator

This survey is the canonical academic reference for the field Tokalator operates in. It formally defines the taxonomy that Tokalator's components map onto: the VS Code extension addresses context processing and management; the web platform addresses token economics; the MCP server addresses tool-integrated token reasoning.

cs.CLcs.AI

Related Articles