anthropics / anthropics/claude-agent-sdk-python

Feature Request: Go/Golang SDK Support for Claude Agent SDK

Offen
#498 1 Kommentar 71 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
8.1k
Forks
1.3k
Ø Merge
2 T. 31 Min.
Gemergte PRs (30 T.)
1

Beschreibung

## Summary

Request for official Go language support for the Claude Agent SDK. Currently, the SDK only supports TypeScript/JavaScript (`@anthropic-ai/claude-agent-sdk`) and Python (`claude-agent-sdk`), but there's no official Go implementation.

## Motivation

Go is increasingly popular for:
- **Backend services and APIs**: Many companies build their core services in Go for performance and reliability
- **DevOps and Infrastructure tooling**: Tools like Docker, Kubernetes, and Terraform are written in Go
- **Microservices architecture**: Go's concurrency model and lightweight runtime make it ideal for microservices
- **CLI tools and automation**: Go excels at building cross-platform command-line applications
- **Cloud-native applications**: Major cloud providers and many startups use Go extensively

## Use Cases

A Go SDK would enable developers to:

1. **Build high-performance agent services** that can handle thousands of concurrent requests
2. **Integrate Claude agents into existing Go microservices** without requiring polyglot architectures
3. **Create CLI tools and automation scripts** that leverage Claude's capabilities natively
4. **Develop cloud-native applications** with embedded AI agent functionality
5. **Build infrastructure tooling** that can make intelligent decisions using Claude

## Current Workaround

Currently, Go developers must:
- Use HTTP API calls directly (more complex, requires manual request/response handling)
- Spawn separate Node.js or Python processes (adds complexity and deployment overhead)
- Use third-party unofficial libraries (potential security and maintenance concerns)

## Proposed Solution

An official `claude-agent-sdk-go` package that provides:
- Native Go API client for Claude Agent SDK
- Support for tool use and MCP integration
- Streaming response handling with Go channels
- Proper context cancellation support
- Comprehensive documentation and examples

## Community Interest

Go has a large and active developer community, and an official SDK would likely see significant adoption, especially in:
- Enterprise backend services
- DevOps tooling
- Cloud infrastructure projects
- CLI applications

Would the Anthropic team consider adding Go support to the Claude Agent SDK roadmap?

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.