Konfiguration

VS Code-Einstellungen

Konfigurieren Sie Cortex in den VS Code-Einstellungen (suchen Sie nach „Cortex“). Einstellungen liegen unter dem Namespace cortex.* — das ist keine Projekt-config.json.

EinstellungStandardBeschreibung
cortex.opencodeBinary "opencode" Pfad zur OpenCode-CLI-Binary
cortex.opencodePort 4096 Lokaler Port für opencode serve
cortex.agent "build" Standard-OpenCode-Primäragent (z. B. build, plan)
cortex.providerID "opencode" Bevorzugte OpenCode-Provider-ID
cortex.modelID "big-pickle" Bevorzugte Modell-ID innerhalb dieses Providers
cortex.modelMode "auto" Modellauswahl: auto / turbo / manual
cortex.routing.useAllConnectedProviders false Wenn true, dürfen Auto/Turbo jeden in OpenCode verbundenen Provider nutzen; wenn false, nur cortex.providerID
cortex.context.topK 8 Anzahl lokaler Kontext-Chunks pro Prompt
cortex.context.maxChars 12000 Max. Zeichen abgerufenen Kontexts pro Prompt
cortex.context.embeddings "hash" Embedding-Backend: hash (offline) oder minilm
cortex.context.chunkMode "symbols" Index-Aufteilung: symbols (LSP) oder lines
cortex.locale "en" Cortex-UI-Sprache (unabhängig von der VS Code-Anzeigesprache)

Modelle über OpenCode

Cortex nutzt OpenCode als agentischen Provider. Sie wählen unter den Modellen Ihres OpenCode-Abos. Die OpenCode-Abrechnung erfolgt außerhalb von Cortex und hat nichts mit der Cortex-Lizenz zu tun.

OpenCode kann auch eine eigene Konfiguration nutzen (z. B. ~/.config/opencode/opencode.json) für Agent-Berechtigungen und Standards. Das ist OpenCode-Konfiguration, getrennt von den Cortex-VS-Code-Einstellungen.

Kontextquellen

Cortex sammelt Kontext automatisch aus: