Skip to content

Agent context

xmsadik edited this page Nov 29, 2026 · 1 revision

Agent context shows what an agent picks up in a workspace before you type anything: its instruction files (CLAUDE.md, AGENTS.md, GEMINI.md, …), rule files, skills and MCP servers, with a rough token estimate. It only reads; nothing is changed.

Open it

  • Agent context… in the workspace's right-click menu,
  • Agent: Show context in the command palette, or
  • the Agent context button in an agent's header (opens with that agent).

Pick another agent at the top. By default it shows the agent running in the workspace. It works for all eight built-in agents.

Agent context for Claude Code: always-loaded files, on-demand files, rules and skills with token estimates

What it lists

  • Always loaded: files read at the start of every session, in the order shown. @ imports are listed under the file that imports them.
  • On demand: files read when the agent works in a folder, for example a CLAUDE.md in a subfolder.
  • Rules and Skills: skills count only their name and description, since that is all an agent loads until it uses one.
  • MCP servers: the transport, the executable name or the server's host, and how many secrets are hidden. A server defined twice is marked as shadowed by the one that wins.

Click a file to open it. A file outside the workspace (for example ~/.claude/CLAUDE.md) opens as a read-only preview.

Privacy

Secret values of MCP servers (env, headers, …), their arguments and URL paths never leave the config file; only key names are shown. From ~/.claude.json only the MCP server lists are read.

About the numbers

Token numbers are characters ÷ 4. That is good enough to spot a 20,000-token AGENTS.md, not an exact count. MCP tool definitions are not counted. Codex stops reading instructions after 32 KiB; files past that are marked over limit.

Which files an agent reads comes from the context section of its adapter.json; a custom agent without one shows "No context data".

Clone this wiki locally