Help us shape the future of Go! Take the 2026 Go Developer Survey

commandcode

package
v0.0.0-...-04282da Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package commandcode provides a harness.Provider implementation for the Command Code CLI agent (binary name: "cmd").

The CLI is driven in non-interactive mode with:

cmd -p --output-format json --yolo <prompt>

which prints newline-delimited JSON on stdout. See parse.go for the event mapping.

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 command-code harness.Provider for the given model. An empty model lets the CLI pick its own default.

Types

type Event

type Event = harness.Event

Event is an alias for harness.Event.

type Option

type Option func(*provider)

Option configures a command-code provider.

func WithEffort

func WithEffort(effort string) Option

WithEffort sets the --effort flag (e.g. "low", "medium", "high").

Jump to

Keyboard shortcuts

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