Go Agent SDK — Development skill for Claude Code
golang agent adk, inspired by claude code.
How to install Go Agent SDK
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open chenhg5/go-agent-sdk and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Go Agent SDK does
golang agent adk, inspired by claude code.
Alternatives in Development
- Claude API — Build apps with the Claude API or Anthropic SDK 94.1k ★
- MCP Python SDK — Python SDK for building MCP servers 22.3k ★
- Claude Code SDK Python — The official Python SDK for Claude Code 5.6k ★
README
go-agent-sdk
A composable Go SDK for building LLM-powered agents. Inspired by the architecture of [Claude Code](https://github.com/anthropics/claude-code), designed for embedding into any Go project.
[**中文文档 / Chinese Documentation**](README_CN.md)
Features
- Interface-driven — every module (Provider, Tool, Executor) is a swappable interface
- Streaming — real-time token streaming with event callbacks
- Tool use — agentic loop that calls tools and feeds results back automatically
- Zero external deps — standard library only (core SDK)
- Built-in tools — Bash, FileRead, FileEdit, FileWrite, Glob, Grep out of the box
- Multi-provider — Claude built-in; OpenAI, Bedrock, Vertex implementable via
Providerinterface - Permission control — sync/async interactive approval; agent loop pauses until user decides
- MCP support — dynamically discover and call external tools via Model Context Protocol
- Sub-agents — delegate tasks to child agents and collect results
- ACP protocol — expose the agent as a standard Agent Client Protocol server (stdio JSON-RPC)
Install
go get github.com/chenhg5/go-agent-sdk
Quick Start
package main
import (
"context"
"fmt"
"os"
agentsdk "github.com/chenhg5/go-agent-sdk"
"github.com/chenhg5/go-agent-sdk/claude"
)
func main() {
agent, err := agentsdk.New(
agentsdk.WithProvider(claude.NewProvider(os.Getenv("ANTHROPIC_AUTH_TOKEN"))),
agentsdk.WithSystemPrompt("You are a helpful coding assistant."),
)
if err != nil {
panic(err)
}
result, err := agent.Run(context.Background(), "What is a goroutine in Go?")
if err != nil {
panic(err)
}
fmt.Println(result.Messages[len(result.Messages)-1].TextContent())
}
Streaming
result, err := agent.RunStream(ctx, "Explain Go interfaces.", func(evt agentsdk.Event) {
switch evt.Type {
case agentsdk.Ev
Related Skills
Adversarial Dev
GAN-inspired three-agent harness that pits a generator against an adversarial evaluator to build applications
Geap Tour
GEAP Workshop: Hands-on Gemini Enterprise Agent Platform tour — ADK agents, MCP servers, Agent Armor, evaluati
Jev Multiagent Retail
A retail multi-agent system where TypeSafe's Jev acts as the System One decision layer inside a LangGraph orch
Autoresearch
Claude Autoresearch Skill — Autonomous goal-directed iteration for Claude Code. Inspired by Karpathy's autores
Claude On Rails
A development framework for Ruby on Rails developers using Claude Code, inspired by SuperClaude.
Monet.Nvim
Neovim theme inspired by Claude Monet's iconic water lilies
Related Agents
Adk Reviewer
Reviews Google ADK 1.29.0 agent code. Checks ADK-specific patterns, tool contracts, session management, SSE st
Adk A2a Wiring Enginee
This agent is responsible for designing and implementing A2A (agent-to-agent) wiring for the bobs-brain repo u
Hormozi Orchestrator
Master offer-building orchestrator inspired by Alex Hormozi's frameworks. Captures raw ideas, notes, or existi