claudeagent

package
v0.0.25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package claudeagent implements the Claude Agent SDK harness. It spawns the claude-agent bridge subprocess and manages JSON-line I/O.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateReadiness

func ValidateReadiness(cfg config.ClaudeCodeConfig) error

ValidateReadiness verifies that the claude-agent bridge can run with the configured runtime prerequisites.

Types

type Harness

type Harness struct {
	// contains filtered or unexported fields
}

Harness implements adapter.AgentHarness for the Claude Agent SDK bridge.

func NewHarness

func NewHarness(cfg config.ClaudeCodeConfig, workspaceRoot string) *Harness

NewHarness creates a new Claude Agent SDK harness.

func (*Harness) Capabilities

func (h *Harness) Capabilities() adapter.HarnessCapabilities

Capabilities returns the harness capabilities.

func (*Harness) Name

func (h *Harness) Name() string

Name returns the harness identifier.

func (*Harness) RunAction

func (*Harness) StartSession

func (h *Harness) StartSession(ctx context.Context, opts adapter.SessionOpts) (_ adapter.AgentSession, err error)

StartSession spawns a new agent session with the given options.

func (*Harness) SupportsCompact

func (h *Harness) SupportsCompact() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL