How To Build An Agent With The Claude Agent Sdk
📖 Bu rehber ToolPazar ekibi tarafından hazırlanmıştır. Tüm araçlarımız ücretsiz ve reklamsızdır.
Prerequisites
Python (version 0.1.48 on PyPI as of March 2026):
Step 1 — Install
TypeScript (version 0.2.71 on npm):
Step 2 — The four core concepts
That’s a working agent. No tools yet, no guardrails — just Claude, reachable through the SDK. Run it to confirm your key works before you layer anything on.
Step 3 — Minimum working agent (Python)
Hooks let you veto, log, or modify the agent’s behaviour without changing the prompt.
Step 4 — Add a custom tool
When one agent’s tool list grows past ~8 tools, or its instructions pass ~300 lines, break off a sub-agent. The main agent invokes the sub-agent as if it were a tool; the sub-agent has its own allow-list, its own instructions, and its own guardrails. Sub-agents are the cleanest way to keep a production agent reliable as scope grows.