claude

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SubagentModelEnv          = "CLAUDE_CODE_SUBAGENT_MODEL"
	ToolUseConcurrencyEnv     = "CLAUDE_CODE_MAX_TOOL_USE_CONCURRENCY"
	ToolSearchEnv             = "ENABLE_TOOL_SEARCH"
	MaxOutputTokensEnv        = "CLAUDE_CODE_MAX_OUTPUT_TOKENS"
	DefaultToolUseConcurrency = "3"
	DefaultToolSearch         = "false"
	DefaultMaxOutputTokens    = "32000"
	MaxOutputTokensUpperLimit = 128000
)

Variables

This section is empty.

Functions

func NormalizeMaxOutputTokens added in v1.3.4

func NormalizeMaxOutputTokens(value string) (string, error)

NormalizeMaxOutputTokens validates Claude Code's per-response output cap. Context window sizes such as 200K or 1M are separate settings and must not be used here.

func PreviewSettings

func PreviewSettings(p provider.Provider) string

PreviewSettings returns the JSON that would be written to the settings temp file.

func Run

func Run(p provider.Provider, args []string) error

Run launches the Claude CLI with settings derived from p, forwarding extra args.

Types

type RuntimeSettings added in v1.3.1

type RuntimeSettings struct {
	SubagentModel      string
	ToolUseConcurrency string
	ToolSearch         string
	MaxOutputTokens    string
}

RuntimeSettings are ccl's Claude Code process defaults. Provider Env values override these defaults so advanced users retain an escape hatch.

func ResolveRuntimeSettings added in v1.3.1

func ResolveRuntimeSettings(p provider.Provider) RuntimeSettings

Jump to

Keyboard shortcuts

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