Agent SDK Go — Git skill for Claude Code
A Go port of Claude Agent SDK https://github.com/anthropics/claude-agent-sdk-python.
How to install Agent SDK Go
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open shindakun/agent-sdk-go and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Agent SDK Go does
A Go port of Claude Agent SDK https://github.com/anthropics/claude-agent-sdk-python.
Alternatives in Git
- Claude Code GitHub Issues — by anthropics - 问题反馈和功能请求 81.1k ★
- Anthropic 课程 — by anthropics - 官方课程材料 19.7k ★
- Bulletproof Quick Start Guide — Target Audience: Complete beginners Never used Python/git before 11.1k ★
README
agent-sdk-go
[](https://github.com/shindakun/agent-sdk-go/actions/workflows/lint.yml) [](https://github.com/shindakun/agent-sdk-go/actions/workflows/test.yml)
A Go SDK for building agents with Claude Code — a faithful, idiomatic-Go port of Anthropic's official [Claude Agent SDK](https://platform.claude.com/docs/en/agent-sdk/overview) (Python and TypeScript). Addresses [claude-agent-sdk-python#498](https://github.com/anthropics/claude-agent-sdk-python/issues/498), the upstream request for a Go SDK.
Like the official SDKs, this is **not** a reimplementation of the agent loop. It drives the user-installed `claude` Code CLI as a subprocess, speaking newline-delimited `stream-json` over stdin/stdout plus a bidirectional JSON control protocol on the same stream. The CLI owns the agent loop, built-in tools, and context management; this SDK owns process lifecycle, framing, control-protocol correlation, and dispatch of in-process callbacks (permissions, hooks, and SDK MCP tools).
Verified against **Claude Code CLI 2.1.280** (the version the upstream SDK bundles, pinned as `claude.SupportedCLIVersion`), statically (133/133 public names, 49/49 options) and behaviorally (integration and e2e suites that run against the real binary). `claude.CheckCLIVersion` reports the installed binary's version and whether it matches the pin.
Installation
go get github.com/shindakun/agent-sdk-go
Requirements:
- Go 1.26+
- A working
claudebinary onPATH(or viaWithCLIPath):npm install -g @anthropic-ai/claude-code - Claude Code auth — either
ANTHROPIC_API_KEYin the environment, or an active Claude Code session.
Quick start
package main
import (
"context"
"fmt"
claude "github.com/shindakun/agent-sdk-go"
)
func main() {
ctx := context.Background()
for msg, err := ran
Related Skills
Claude Agent SDK Go
Port of the official Python SDK to Go
Go SDK
by anthropics - 官方 Go 客户端库
Worktree Spawn
Spawn an isolated git worktree with a deterministic PORT_BASE so heavy multi-port dev servers can run in paral
Claude Code Base Action
This repo is a mirror of the contents of base-action in https://github.com/anthropics/claude-code-action.
Claude Agent SDK Java
No longer maintained — active development moved to https://github.com/markpollack/claude-agent-sdk-java
Claude Code Hooks SDK
by beyondcode - A Laravel-inspired PHP SDK for building Claude Code hook responses with a clean, fluent API. T
Related Agents
Agentica Agent
You are a specialized agent for building Python agents using the Agentica SDK. You implement agentic functions
Dashclaw Drift Auditor
Audits DashClaw's drift-prone hardcoded counts and version stamps — SDK method counts (Node/Python), MCP tool/
Agent SDK Verifier
Use this agent to verify that a Python Agent SDK application is properly configured, follows SDK best practice