Caricamento in corso...
Caricamento in corso...
Last synced: Today, 22:00
Technical reference for the OpenClaw framework. Real-time synchronization with the official documentation engine.
Use this file to discover all available pages before exploring further.
“Context” is everything OpenClaw sends to the model for a run. It is bounded by the model’s context window (token limit).
Beginner mental model:
Context is not the same thing as “memory”: memory can be stored on disk and reloaded later; context is what’s inside the model’s current window.
/status/context list/context detail/usage tokens/compactSee also: Slash commands, Token use & costs, Compaction.
Values vary by model, provider, tool policy, and what’s in your workspace.
/context listtext🧠 Context breakdown Workspace: <workspaceDir> Bootstrap max/file: 12,000 chars Sandbox: mode=non-main sandboxed=false System prompt (run): 38,412 chars (~9,603 tok) (Project Context 23,901 chars (~5,976 tok)) Injected workspace files: - AGENTS.md: OK | raw 1,742 chars (~436 tok) | injected 1,742 chars (~436 tok) - SOUL.md: OK | raw 912 chars (~228 tok) | injected 912 chars (~228 tok) - TOOLS.md: TRUNCATED | raw 54,210 chars (~13,553 tok) | injected 20,962 chars (~5,241 tok) - IDENTITY.md: OK | raw 211 chars (~53 tok) | injected 211 chars (~53 tok) - USER.md: OK | raw 388 chars (~97 tok) | injected 388 chars (~97 tok) - HEARTBEAT.md: MISSING | raw 0 | injected 0 - BOOTSTRAP.md: OK | raw 0 chars (~0 tok) | injected 0 chars (~0 tok) Skills list (system prompt text): 2,184 chars (~546 tok) (12 skills) Tools: read, edit, write, exec, process, browser, message, sessions_send, … Tool list (system prompt text): 1,032 chars (~258 tok) Tool schemas (JSON): 31,988 chars (~7,997 tok) (counts toward context; not shown as text) Tools: (same as above) Session tokens (cached): 14,250 total / ctx=32,000
/context detailtext🧠 Context breakdown (detailed) … Top skills (prompt entry size): - frontend-design: 412 chars (~103 tok) - oracle: 401 chars (~101 tok) … (+10 more skills) Top tools (schema size): - browser: 9,812 chars (~2,453 tok) - exec: 6,240 chars (~1,560 tok) … (+N more tools)
Everything the model receives counts, including:
The system prompt is OpenClaw-owned and rebuilt each run. It includes:
Full breakdown: System Prompt.
By default, OpenClaw injects a fixed set of workspace files (if present):
AGENTS.mdSOUL.mdTOOLS.mdIDENTITY.mdUSER.mdHEARTBEAT.mdBOOTSTRAP.mdLarge files are truncated per-file using
agents.defaults.bootstrapMaxChars12000agents.defaults.bootstrapTotalMaxChars60000/contextWhen truncation occurs, the runtime can inject an in-prompt warning block under Project Context. Configure this with
agents.defaults.bootstrapPromptTruncationWarningoffoncealwaysonceThe system prompt includes a compact skills list (name + description + location). This list has real overhead.
Skill instructions are not included by default. The model is expected to
readSKILL.mdTools affect context in two ways:
/context detailSlash commands are handled by the Gateway. There are a few different behaviors:
/.../think/verbose/trace/reasoning/elevated/model/queue/...Details: Slash commands.
What persists across messages depends on the mechanism:
Docs: Session, Compaction, Session pruning.
By default, OpenClaw uses the built-in
legacykind: "context-engine"plugins.slots.contextEngine/compactownsCompaction: falsecompact()/context/contextSystem prompt (run)System prompt (estimate)Either way, it reports sizes and top contributors; it does not dump the full system prompt or tool schemas.
© 2024 TaskFlow Mirror
Powered by TaskFlow Sync Engine