export const DEFAULT_OLLAMA_BASE_URL = "http://localhost:11434/v1"; export const DEFAULT_LMSTUDIO_BASE_URL = "http://localhost:1234/v1"; export const KNOWN_BACKENDS = { ollama: DEFAULT_OLLAMA_BASE_URL, lmstudio: DEFAULT_LMSTUDIO_BASE_URL, } as const; export type BackendName = keyof typeof KNOWN_BACKENDS; /** Used when the context window can't be auto-detected from the backend (see backend/contextWindow.ts) * and the user hasn't configured one — a conservative size common among smaller local models. */ export const DEFAULT_CONTEXT_WINDOW = 8192; /** Max tool calls per turn before locode gives up rather than looping forever. 25 gives real * multi-file tasks room to breathe; still bounded so a genuinely stuck model fails fast. */ export const DEFAULT_MAX_ITERATIONS = 25; /** Fraction of the context window at which locode automatically summarizes the conversation. * User-configurable via `locode config set autoCompactThreshold`. */ export const DEFAULT_AUTO_COMPACT_THRESHOLD = 0.85;