claude

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: MIT Imports: 17 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"
	DefaultToolUseConcurrency = "3"
	DefaultToolSearch         = "false"
)

Variables

This section is empty.

Functions

func AdvertisedContextWindows added in v1.3.16

func AdvertisedContextWindows(endpoint, apiKey string) (map[string]int, string)

AdvertisedContextWindows reads the context window of every model a runtime exposes, keyed by lowercased model id, plus the catalog it came from.

Subscription runtimes only reveal windows through the Codex client catalog; the plain OpenAI list is trimmed to id/object/created/owned_by. Both shapes are tried so API-key gateways still work. The values are advisory: they may be a client-side catalog cap rather than what the server enforces.

func ContextClassLabel added in v1.3.16

func ContextClassLabel(window int) string

ContextClassLabel names the sizing Claude Code will use for an advertised window, for diagnostics.

func MappedContextClassesDiffer added in v1.3.16

func MappedContextClassesDiffer(p provider.Provider, windows map[string]int) bool

MappedContextClassesDiffer reports whether the provider's mapped models fall into more than one context class, which is when no session-wide context value could be correct for all of them.

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
}

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