프로덕션 AI 도우미를 위한 Claude Agent SDK와 메시지 API?
hackernews
|
|
🔬 연구
#agent sdk
#ai assistant
#claude
#mcp
#messages api
#review
원문 출처: hackernews · Genesis Park에서 요약 및 분석
요약
B2B 개발자 도구에 내장될 채팅 어시스턴트 구축을 위해 Claude Agent SDK 사용을 고려했으나, Node.js 의존성, 파일 기반 세션, 높은 subprocess 오버헤드 등의 문제로 인해 단일 사용자 CLI에 최적화된 아키텍처라는 판단을 내렸습니다. 개발자는 Messages API를 기반으로 직접 에이전트 루프를 구축하는 것이 웹 백엔드 환경에 더 적합해 보인다고 평가했으며, 멀티 테넌트 환경에서의 SDK 사용 경험이나 마이그레이션 사례에 대한 커뮤니티의 의견을 구하고 있습니다.
본문
We're building a chat assistant into our B2B developer tool. It needs to call domain-specific tools (MCP), stream responses (SSE), and persist conversation history. The Claude Agent SDK looks like it would save us a lot of work — agent loop, compaction, hooks, session management all built in. But the more we look at it, the more the architecture feels oriented toward single-user CLI use. The subprocess spawn overhead (~12s per call), filesystem-based sessions, memory issues in long-running processes, and the Node.js subprocess dependency inside our Python backend all makes look like not fit. The other path is building the agent loop ourselves on the Messages API. Cleaner fit for a web backend, but obviously more work upfront. Has anyone here gone through this decision? Would especially love to hear from folks who tried the SDK in a multi-tenant setting and can share what worked and what didn't. Also curious about anyone who started with the SDK and migrated away, or vice versa.
Genesis Park 편집팀이 AI를 활용하여 작성한 분석입니다. 원문은 출처 링크를 통해 확인할 수 있습니다.
공유