claudecode

package
v0.0.0-...-a7464a5 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package claudecode provides a harness.Provider implementation for the Claude Code CLI agent.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(model string, opts ...Option) harness.Provider

New creates a Claude Code harness.Provider for the given model.

Claude Code expects bare Claude model IDs (for example "claude-sonnet-4-6"), but callers may provide Anthropic model IDs in the provider/model form used by other CLIs (for example "anthropic/claude-sonnet-4-6"). The anthropic/ prefix is stripped before invoking the Claude Code CLI.

Types

type Effort

type Effort string

Effort controls the effort level passed to the Claude Code CLI.

const (
	EffortLow    Effort = "low"
	EffortMedium Effort = "medium"
	EffortHigh   Effort = "high"
	EffortMax    Effort = "max"
)

type Event

type Event = harness.Event

Event is an alias for harness.Event so callers importing only this package still have access to the type.

type Option

type Option func(*provider)

Option configures a Claude Code provider.

func WithEffort

func WithEffort(e Effort) Option

WithEffort sets the --effort flag.

Jump to

Keyboard shortcuts

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