66 questionsQuestion · Short answer
Agentic Architecture & Orchestration
Delegate when a worker can deliver a focused result that the coordinator can verify, and isolating that work materially helps. Good reasons include keeping large intermediate evidence out of the coordinator’s context, giving the worker a…
Claude Code Configuration & Workflows
Put durable repository conventions in CLAUDE.md , apply path-specific guidance through matching rules in .claude/rules/ , and use a Skill for an on-demand procedure. Choose a subagent for separate working context, MCP for an external…
Tool Design & MCP Integration
Your application executes client tools requested through the Claude Messages API. Anthropic executes supported server tools on its infrastructure. For application-owned effects, your executor and the destination service must authorize the…
Claude Code Configuration & Workflows
Use claude -p for a non-interactive CI step and configure the permission mode and permitted actions before it runs. Use a dedicated CI identity, a minimal checkout and narrowly scoped credentials. A Manual-mode run denies a call that…
Claude Code Configuration & Workflows
For a deterministic pre-execution check, use a Claude Code PreToolUse command hook matched to the intended tool. It receives event JSON on stdin and can allow the call to proceed through permissions or block it before execution. A command…
Claude Code Configuration & Workflows
Claude Code evaluates matching permission rules in deny, ask, then allow order. A narrower allow cannot override a matching deny. Use ask rules for actions that need confirmation and reserve allow rules for reviewed routine work. A…
Claude Code Configuration & Workflows
Use Claude Code plan mode to inspect a repository and review a proposal before granting edit authority. In the terminal, start with claude --permission-mode plan . Typical plan-mode sessions block source edits until approval, while…
Claude Code Configuration & Workflows
For most conflicting scalar values in Claude Code terminal settings, the order is managed policy, --settings , local project, shared project, then user. Arrays normally merge. Check the particular setting when it controls permissions, has…
Claude Code Configuration & Workflows
Use a Claude Code subagent for a bounded task that benefits from separate context, a specific set of tools, or distinct instructions. Define its purpose and explicitly list the tools it needs. For a code reviewer, a local agent file in…
Tool Design & MCP Integration
Give each Claude client tool one coherent business action, a descriptive name, and a JSON Schema input_schema for its inputs. Use the description to say when to use it, when to choose another action, what units or formats it expects, and…
Tool Design & MCP Integration
Have the MCP host control which servers connect and obtain informed consent for data sharing and side effects. Have the server or destination authorize each sensitive operation using the actual caller's identity and the operation's scope.…
Tool Design & MCP Integration
The MCP host coordinates clients and manages connection and consent policy. Each client communicates with one server, and a server exposes focused capabilities. Use a resource when the application selects context, a prompt when the user…