How should I choose a Claude Code operating mode and output format?
Use Claude Code interactively when you expect clarification, inspection, or action-by-action review. For a script, use claude -p and pick the output format by what the caller needs.
PUBLIC BETA OFFER
Save 50% off on an Eligible Learning PlanValid for 1-month plan, 3-month plan, 12-month plan · Code LPXBETA50 · Ends Dec 6, 2026
852 published articles
Use Claude Code interactively when you expect clarification, inspection, or action-by-action review. For a script, use claude -p and pick the output format by what the caller needs.
Review a Claude Code plugin as a dependency that can install several extensions together.
To resume an interrupted Claude agent, load the workflow's last committed checkpoint and reconcile pending external actions before advancing. An Agent SDK session can restore conversational context.
Prune individual tool results when their details have served their purpose. Compact when a continuing task needs a smaller representation of a substantial stretch of history.
Pin a supported model ID when reproducibility, regression attribution, or a controlled rollback matters.
Treat the prompt, examples and context templates, schema, consuming parser, semantic rules, and relevant settings as one versioned interface.
In MCP 2026-07-28, expose eligible tools through tools/list and invoke an authorized tool through tools/call. For a malformed JSON-RPC tool request or unknown tool, return the appropriate protocol error.
In MCP 2026-07-28, requests are self-contained. Include io.modelcontextprotocol/protocolVersion and io.modelcontextprotocol/clientCapabilities in the request’s _meta.
In MCP 2026-07-28, a server can request a continuation with resultType: "input_required" and at least one of inputRequests or requestState.
The MCP host owns the user experience, consent, and context assembly. Its client manages the protocol relationship to one server. That server exposes focused capabilities and sees only the data required for its operation.
Store approved reusable facts and preferences in an application-owned store that enforces ownership, access, freshness, retention, and deletion.
Use a built-in slash command for an explicit session action such as inspecting context. Use a Skill when you want a reusable workflow with instructions and reference files.