Repository navigation
v0.5.3
Claude Code SDK for Go v0.5.3
Go library for Claude Code CLI integration with Query and Client APIs.
Installation
go get github.com/severity1/claude-code-sdk-go@v0.5.3Usage
import "github.com/severity1/claude-code-sdk-go"
// Query API (one-shot)
messages, err := claudecode.Query(ctx, "Hello!")
// Client API (streaming)
err := claudecode.WithClient(ctx, func(client claudecode.Client) error {
return client.Query(ctx, "Hello!")
})Documentation
Changelog
Features
- 924759f: feat: Add Hook System for Lifecycle Events (Issue #9) (#63) (@severity1)
- 4fb08ad: feat: Add Permission Callback System (Issue #8) (#62) (@severity1)
- 726eca3: feat: Add SetModel and SetPermissionMode methods (Issues #51, #52) (#61) (@severity1)
Bug Fixes
- 5844bd8: fix: Initialize control protocol when hooks are configured (@severity1)
Documentation
- 84bd0cf: docs: Add hook system example (12_hooks) (@severity1)
SDK Release Notes
This Go SDK provides 100% Python SDK parity with Go-native patterns.
Full Changelog: v0.5.2...v0.5.3