agent

package
v0.10.8 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommandCodex  = "codex"
	CommandClaude = "claude"
	CommandCursor = "cursor-agent"
)
View Source
const (
	ReasoningEffortDefault = "default"
	ReasoningEffortMinimal = "minimal"
	ReasoningEffortLow     = "low"
	ReasoningEffortMedium  = "medium"
	ReasoningEffortHigh    = "high"
	ReasoningEffortXHigh   = "xhigh"
	ReasoningEffortMax     = "max"
)
View Source
const (
	ModelDefault       = "default"
	ModelGPT55         = "gpt-5.5"
	ModelGPT56Sol      = "gpt-5.6-sol"
	ModelClaudeOpus48  = "claude-opus-4-8"
	ModelClaudeOpus5   = "claude-opus-5"
	ModelClaudeSonnet5 = "claude-sonnet-5"
	ModelClaudeFable5  = "claude-fable-5"
	ModelComposer      = "composer-2.5"
	ModelGrok46        = "grok-4.6"
	ModelOpus5         = "opus-5"
	ModelFable5        = "fable-5"
)

Variables

This section is empty.

Functions

func ModelChoices

func ModelChoices(command string) []string

func Normalize

func Normalize(command string) string

func NormalizeModel

func NormalizeModel(model string) string

func NormalizeReasoningEffort

func NormalizeReasoningEffort(effort string) string

func NormalizeStored added in v0.10.1

func NormalizeStored(command string) string

NormalizeStored normalizes a command from persisted state, mapping retired spellings onto their supported replacement. Adopt its result only on reads; an input boundary may compare it with Normalize to detect and reject a retired spelling, but must not accept the mapped result as new input.

func ReasoningEffortChoices

func ReasoningEffortChoices(command string) []string

func Supported

func Supported(command string) bool

func Validate

func Validate(command string) error

func ValidateModel

func ValidateModel(command, model string) error

func ValidateReasoningEffort

func ValidateReasoningEffort(command, effort string) error

Types

type Preferences added in v0.10.1

type Preferences struct {
	Command      string
	CodexModel   string
	ClaudeModel  string
	CursorModel  string
	CodexEffort  string
	ClaudeEffort string
}

Preferences is the full set of stored per-provider agent selections.

type Settings added in v0.10.1

type Settings struct {
	Command         string
	Model           string
	ReasoningEffort string
}

Settings is the single resolved selection for one launch or one phase.

func Resolve added in v0.10.1

func Resolve(prefs Preferences) Settings

Resolve picks the provider-specific model and reasoning effort for the selected command. The normalized command is echoed back for every input, including unsupported and empty ones, so callers can still report the command they were given; only the model and effort go empty for commands that carry no provider selection.

Jump to

Keyboard shortcuts

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