tggo

Claude Agent Go — Development skill for Claude Code

Development community

A Go SDK for the Claude Code CLI: one-shot runs, interactive sessions, in-process Go tools, permission & hook callbacks, inline subagents.

How to install Claude Agent Go

This entry records only its repository, not the path inside it, so there is no exact command to give. Open tggo/claude-agent-go and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Agent Go does

A Go SDK for the Claude Code CLI: one-shot runs, interactive sessions, in-process Go tools, permission & hook callbacks, inline subagents. Behaviorally verified against the real binary.

Alternatives in Development

  • Implementation Plan — You are tasked with creating detailed implementation plans through an interactive, iterative process 10k ★
  • EvoTrace — Compile real-world Claude Code and Codex trajectories into verified, tradable post-training assets 161 ★
  • Bricks Skills — Agent skill for Bricks Builder: paste-ready JSON for layouts, templates, query loops, popups, ACF and WooComme 143 ★

README

claude-agent-go

[![CI](https://github.com/tggo/claude-agent-go/actions/workflows/ci.yml/badge.svg)](https://github.com/tggo/claude-agent-go/actions/workflows/ci.yml) [![Go Reference](https://pkg.go.dev/badge/github.com/tggo/claude-agent-go.svg)](https://pkg.go.dev/github.com/tggo/claude-agent-go) [![Go Report Card](https://goreportcard.com/badge/github.com/tggo/claude-agent-go)](https://goreportcard.com/report/github.com/tggo/claude-agent-go) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](./LICENSE)

**Build, run, debug and test Claude Code agents from one typed Go API: locally, in containers, or across a fleet of machines.**

`claude-agent-go` drives the `claude` binary as a subprocess. It does **not** reimplement the agent loop, so you get the upstream models and tools for free. On top of the CLI it adds:

  • Core client. One-shot and interactive runs, in-process Go tools, permission and hook callbacks, inline subagents, streaming, retries with cost accounting.
  • Execution graphs. Plan, code, review and fix loops, parallel fan-out, human review, and durable runs that survive a crash (Recover, Fork).
  • A debugger. graphweb, a live and replay web UI for graph runs, plus recordings you can replay offline and free.
  • Evals and a test kit. Trajectory matching, ROUGE, LLM judges, pass@k, user simulation, fake CLI binaries, stream invariants, golden replays.
  • Remote execution. Local, docker exec, docker run and ssh transports that really stop the remote agent on cancel, with a preflight check.
  • Sandboxes. Run each agent isolated in Docker, Apple container or an sbx microVM: only its workspace and listed folders, only allow-listed hosts, and the API key held outside the box. Agents on one machine stop fighting.
  • Safety. A rule-based permission policy, a bearer-token MCP server, spend caps, fuzz-tested parsers.
// one line moves the agent off your laptop:
r := runner.New(runne