Posts - All
All the articles I've posted.
-
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.
-
Bun's 11-Day Rust Rewrite: I Assumed Anthropic Had a Secret Tool. I Was Wrong.
🇺🇸 EN6,502 commits, 750k lines of Rust, 11 days. I was sure Anthropic had some internal 'Claude VIP PRO' nobody else gets. Then I did the token math and it refuted me: there was no superhuman model - just 64 ordinary Claudes in parallel, a 1.39-million-assertion oracle, and the coordination living in code instead of in an LLM.