Context Pack
Context Pack is a distilled bundle of code, graph signals, and memory context tailored to a question. It is designed to keep prompts small while still delivering the most relevant information.
What it includes
Code + files
The most relevant files, snippets, and symbols for the question.
Graph signals
Dependency and impact context that explains what connects to what.
Memory + decisions
Prior decisions, lessons, and preferences related to the query.
How to use it (MCP)
Ask your AI tool to call context_smart withmode="pack" when you need code or file context.
context_smart(
user_message="What does the auth refresh worker do?",
format="minified",
max_tokens=400,
mode="pack",
distill=true
)If Context Pack is disabled, the API falls back to standard context_smart.
Token controls
max_tokens - hard budget for the response payload.
format="minified" - compact output for assistants.
distill=true - returns a compact summary when available.
When to use Context Pack
Code explanation
Summarize what a function or module does without pulling the whole file.
Refactor planning
Quickly identify what might break and what depends on it.