Interactive Playbook

Understand Claude Code from real code paths

Language
Theme

Glossary

Key concepts and terms

Use this page when a file or flow mentions concepts like query loop, MCP, or permission mode before you have the full context.

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.ts
  • src/QueryEngine.ts

ToolUseContext

The rich execution context passed into tools.

Why it matters: It proves tools are runtime citizens.

  • src/Tool.ts

Permission mode

A 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.ts
  • src/utils/permissions/permissionSetup.ts

Skill

A packaged capability or workflow description loaded by Claude Code.

Why it matters: Skills let knowledge ship alongside code.

  • src/skills/loadSkillsDir.ts
  • src/skills/bundled/index.ts

Plugin

A 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.ts
  • src/types/plugin.ts

MCP

Model Context Protocol for tool/resource interoperability.

Why it matters: It is a central interoperability layer in Claude Code.

  • src/services/mcp/client.ts
  • src/entrypoints/mcp.ts

Bridge mode

A 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.ts

Session storage

The persistence layer for transcript durability, resume support, and compatibility handling.

Why it matters: It turns short chats into durable workspaces.

  • src/utils/sessionStorage.ts