Query loop
The runtime cycle that drives model requests, streamed output, tool calls, retries, and compaction.
Why it matters: It is the true execution core.
src/query.tssrc/QueryEngine.ts
Glossary
Use this page when a file or flow mentions concepts like query loop, MCP, or permission mode before you have the full context.
The runtime cycle that drives model requests, streamed output, tool calls, retries, and compaction.
Why it matters: It is the true execution core.
src/query.tssrc/QueryEngine.tsThe rich execution context passed into tools.
Why it matters: It proves tools are runtime citizens.
src/Tool.tsA runtime autonomy profile such as default, plan, acceptEdits, or bypassPermissions.
Why it matters: It shapes how Claude Code balances autonomy and safety.
src/types/permissions.tssrc/utils/permissions/permissionSetup.tsA packaged capability or workflow description loaded by Claude Code.
Why it matters: Skills let knowledge ship alongside code.
src/skills/loadSkillsDir.tssrc/skills/bundled/index.tsA higher-level extension package that can contribute commands, skills, hooks, MCP servers, and more.
Why it matters: Plugins widen the ecosystem surface.
src/utils/plugins/pluginLoader.tssrc/types/plugin.tsModel Context Protocol for tool/resource interoperability.
Why it matters: It is a central interoperability layer in Claude Code.
src/services/mcp/client.tssrc/entrypoints/mcp.tsA remote-control mode that lets a local environment become an execution target.
Why it matters: It shows Claude Code is more than a local prompt tool.
src/bridge/bridgeMain.tsThe persistence layer for transcript durability, resume support, and compatibility handling.
Why it matters: It turns short chats into durable workspaces.
src/utils/sessionStorage.ts