产品介绍

Context and prompts

Conversation state is stored in LangGraph's message list. The following rules apply to the default Deep Agents graph. Compiled entries run their plugin's own graph.

Compression and file offloading

The default graph uses filesystem and summarization middleware to keep the context sent to the model small. Long tool results and long user text can be written to session output files first, leaving previews and read paths in messages. Historical tool arguments are trimmed by window, and older conversation content is summarized once the threshold is reached. Model requests use the summary and recent messages; private summarization events are saved with the graph state.

See context compression for trigger thresholds, retention rules, input budgets, overflow recovery, and file locations.

Skills and prompts

Skill middleware caches metadata and places names and descriptions in the system prompt. When the Agent needs complete instructions, it reads them through read_file; the tool result is saved with conversation messages or offloaded by size. See extension lifecycle for metadata update timing.

Host templates live in dataagent/assembly/prompts/. At graph construction, filesystem.md first renders this session's filesystem instructions, listing the read-only input directories and the writable outputs/. The main Agent's agent.md receives those instructions plus the instructions of every enabled plugin. A standard subagent's subagent.md receives the same filesystem instructions and its own role instructions. Graph assembly · File permissions

A plugin's system_prompt_file resolves against its root directory. For example, the common manifest uses prompts/agent.md. Example manifest · Plugin prompt

Invocation context

AgentContext, semantic clients, and API keys are passed through invocation parameters and held in Pydantic private attributes. These objects are not saved as messages or checkpoint fields.