Documentation
¶
Index ¶
- Constants
- Variables
- func PrintBanner(servers []string)
- func RouteModel(query string) string
- func Run(mcpConfigPath, workDir string, servers []string) error
- func RunAltScreen(mcpConfigPath, workDir string, servers []string) error
- func RunQuery(ctx context.Context, prompt, sessionID, mcpConfigPath, workDir, model string) (<-chan StreamEvent, error)
- func RunREPL(mcpConfigPath, workDir string, servers []string) error
- type StreamEvent
Constants ¶
View Source
const ( ModelFast = "claude-haiku-4-5-20251001" ModelDefault = "claude-sonnet-4-20250514" ModelDeep = "claude-opus-4-20250514" )
Model tiers for routing.
Variables ¶
View Source
var ModelOverride string
ModelOverride is set externally to force a specific model for all queries. When empty, automatic model routing is used.
Functions ¶
func PrintBanner ¶ added in v0.2.0
func PrintBanner(servers []string)
PrintBanner displays the startup banner with server information. This is called before entering the REPL loop.
func RouteModel ¶ added in v0.3.0
RouteModel selects an appropriate Claude model based on query complexity. Returns empty string to use whatever default is configured.
func RunAltScreen ¶ added in v0.2.0
RunAltScreen starts the TUI in full-screen alt-screen mode (legacy).
func RunQuery ¶
func RunQuery(ctx context.Context, prompt, sessionID, mcpConfigPath, workDir, model string) (<-chan StreamEvent, error)
RunQuery runs a Claude query and streams events back on a channel. sessionID can be empty for a new session, or a prior session ID to resume. model can be empty to use the CLI default, or a specific model ID.
Types ¶
Click to show internal directories.
Click to hide internal directories.