Versions in this module Expand all Collapse all v0 v0.1.4 Sep 8, 2026 v0.1.3 Aug 30, 2026 v0.1.2 Aug 30, 2026 v0.1.1 Aug 30, 2026 v0.1.0 Aug 29, 2026 Changes in this version + const CurrentVersion + var ErrConfigNotFound = errors.New("config file not found") + var ErrInvalidConfig = errors.New("invalid config") + var ErrUnsupportedVersion = errors.New("unsupported config version") + type Compaction struct + Calibration bool + ContextTokens int + KeepRecentContents int + MinimumElisionTokens int + PreserveToolNames []string + TargetFraction float64 + TriggerFraction float64 + type Config struct + AppName string + Compaction Compaction + Context Context + Foreign Foreign + LSP LSP + MCP MCP + SessionDir string + Skills Skills + Syntax Syntax + Tools Tools + UserID string + Version int + WorkingDir string + func (value Config) Clone() Config + type Context struct + ImportRoots []string + MaxBytes int + MaxFileBytes int + MaxImportDepth int + TouchesPerToolCall int + type Foreign struct + Claude bool + Codex bool + Copilot bool + Enabled bool + TrustedRoots []string + type LSP struct + FailureThreshold int + InitializeTimeout time.Duration + MaxDiagnosticsPerFile int + Mode LSPMode + RequestTimeout time.Duration + Servers []LSPServer + SettleTimeout time.Duration + type LSPMode string + const LSPAuto + const LSPOff + type LSPServer struct + Args []string + Command string + Disabled bool + Extensions []string + ID string + RootMarkers []string + type MCP struct + AllowForeign []string + InheritForeign bool + Servers []MCPServer + type MCPServer struct + Args []string + Command string + Env map[string]string + Headers map[string]string + ID string + Transport MCPTransport + URL string + type MCPTransport string + const MCPHTTP + const MCPStdio + type Options struct + AppName *string + ConfigPath string + Foreign *Foreign + LSPMode *LSPMode + SessionDir string + ToolConfirmation *bool + UserID string + WorkingDir string + type PromptCommandMode string + const PromptCommandsOff + const PromptCommandsOn + const PromptCommandsTrusted + type Result struct + Config Config + SourcePath string + Warnings []warning.Warning + func Load(ctx context.Context, options Options) (Result, error) + type Skills struct + Roots []string + type Syntax struct + CommandOutputBytes int + CommandTimeout time.Duration + DocumentOutputBytes int + DocumentTimeout time.Duration + PromptCommands PromptCommandMode + type Tools struct + BashMaxTimeout time.Duration + BashTimeout time.Duration + CallOutputBytes int + Confirmation bool + SessionOutputBytes int