Skip to content

Releases: remdev/cursor-go-sdk

v0.0.3

15 Jun 16:18
08a352a

Choose a tag to compare

What's Changed

  • fix: custom tool registration after CreateAgent returns agentId. by @remdev in #8

Full Changelog: v0.0.2...v0.0.3

v0.0.2

15 Jun 13:11

Choose a tag to compare

Go client for the Cursor Agent SDK — same surface as TypeScript @cursor/sdk and Python cursor-sdk, with local and cloud agents from idiomatic Go.

Quick install

go run github.com/remdev/cursor-go-sdk/cmd/setup@latest
go get github.com/remdev/cursor-go-sdk/cursor@v0.0.2
export CURSOR_API_KEY="cursor_..."

Highlights

  • One-command setupcmd/setup installs @cursor-go-sdk/cursor-sdk-bridge@0.0.2 via npm
  • Local + cloud agentsCreateAgent, Prompt, Send, Stream / Messages, Wait, typed *AgentError
  • Cookbook examples — quickstart, coding-agent CLI, terminal UI, basic smoke test
  • Opt-in e2e tests — real API runs with CURSOR_E2E=1 and -tags=e2e
  • npm bridge 0.0.2 — global install fixed (bin → compiled JS entrypoint)

Architecture

cursor/ (Go)  ──Connect──►  cursor-sdk-bridge  ──►  @cursor/sdk (npm)

Local agents use the official npm runtime; Go launches the bridge automatically.

Requirements

Component Version
Go (SDK module) 1.23+
Go (TUI example) 1.24.2+
Node.js >= 18
npm bridge >= 0.0.2
API key CURSOR_API_KEY for live runs

Notable fixes

  • Wire encoding no longer leaks cloud: {} on local agents (spurious idempotency keys)
  • Idempotency keys only for cloud create/send
  • Bridge subprocess no longer dies when the caller context is cancelled
  • Setup rejects bridge versions below 0.0.2

Links

Community-maintained — see DISCLAIMER.md.