You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A comprehensive Go library for programmatically integrating the Claude Code CLI into Go applications. Build AI-powered coding assistants, automated workflows, and intelligent agents with full control over Claude Code's capabilities.
10
+
A comprehensive Go library for programmatically integrating the Claude Code CLI into Go applications. Build AI-powered coding assistants, automated workflows, and intelligent agents on top of Claude Code's non-interactive `-p/--print` surface.
11
11
12
12
First Claude Code SDK, released before any official SDKs existed.
13
13
14
+
This SDK intentionally wraps the prompt-oriented `claude -p` workflow. Interactive sessions and management subcommands such as `auth`, `mcp`, `plugins`, `install`, and `update` remain out of scope.
15
+
14
16
## Highlights
15
17
16
-
-Full CLI wrapper with text/json/stream-json outputs
18
+
-Current `claude -p` wrapper with text/json/stream-json outputs
17
19
- Streaming, sessions (resume/fork), and context-aware APIs
18
20
- MCP integration with fine-grained tool permissions
21
+
- Current prompt flags including agents, effort, settings, tools, and budget controls
19
22
- Subagents, plugins, retries, and budget tracking for production workflows
20
23
- 9 interactive demos and comprehensive tests
21
24
22
25
## Features
23
26
24
27
### Core Capabilities
25
28
26
-
-**Full CLI Wrapper**: Complete access to all Claude Code features
29
+
-**Prompt Surface Wrapper**: Accurate coverage of the current non-interactive `claude -p` flag surface
27
30
-**Streaming Support**: Real-time response streaming with context cancellation
28
31
-**Session Management**: Multi-turn conversations with custom IDs, forking, and persistence control
29
32
-**MCP Integration**: Model Context Protocol support for extending Claude with external tools
@@ -218,8 +221,14 @@ pm.Register(filter, nil)
218
221
audit:= claude.NewAuditPlugin(1000) // Keep last 1000 records
Deprecated compatibility fields remain in `RunOptions` for now, but the SDK no longer emits removed CLI flags such as `--max-turns`, `--config`, `--disable-autoupdate`, `--theme`, or `--permission-prompt-tool`.
0 commit comments