Tag: claude-agent-sdk
All the articles with the tag "claude-agent-sdk".
-
Claude Agent SDK: flow đơn giản nhất và cách viết tool của riêng mình
🇻🇳 VIDùng @anthropic-ai/claude-agent-sdk để điều khiển Claude bằng TypeScript - từ query() và env-var auth, tới subagent qua Task tool, rồi tự viết in-process MCP tool bằng createSdkMcpServer().
-
Provider Switching & SDK-Mode Internals: How an Agent Harness Wires Claude's query() In-Process
🇺🇸 ENMost agent harnesses hide more complexity than their README admits. This deep-dive traces a single chat message from WebSocket to token pool - covering in-process SDK calls vs. subprocess spawning, the HarnessEvent seam that makes providers swappable, and the OAuth token rotation that survives rate-limits and 401s.
-
Đổi Provider & Bên Trong SDK Mode: Agent Harness Kết Nối query() của Claude In-Process Ra Sao
🇻🇳 VIHầu hết agent harness che giấu nhiều thứ hơn README thú nhận. Bài này truy vết một tin nhắn chat từ WebSocket đến token pool - bao gồm gọi SDK trong tiến trình so với spawn subprocess, seam HarnessEvent giúp provider có thể hoán đổi, và cơ chế xoay OAuth token khi gặp rate-limit và 401.