Documentation
¶
Overview ¶
Package setup installs Cortex integrations for AI coding agents.
Supported agents: claude-code, opencode, gemini-cli, codex. Each agent gets MCP server registration plus agent-specific configuration (Memory Protocol instructions, compaction recovery, tool allowlists).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddClaudeCodeAllowlist ¶
func AddClaudeCodeAllowlist() error
AddClaudeCodeAllowlist adds cortex MCP tool permissions to Claude Code settings. It resolves the settings path automatically.
Types ¶
type Agent ¶
Agent describes a supported agent for setup.
func SupportedAgents ¶
func SupportedAgents() []Agent
SupportedAgents returns the list of agents that can be set up.
type OllamaSetupResult ¶ added in v2.3.8
type OllamaSetupResult struct {
BaseURL string `json:"base_url"`
Model string `json:"model"`
OllamaOnline bool `json:"ollama_online"`
AvailableModels []string `json:"available_models"`
ModelAvailable bool `json:"model_available"`
ConfigPath string `json:"config_path"`
}
OllamaSetupResult holds results of configuring Ollama embeddings.
func SetupOllama ¶ added in v2.3.8
func SetupOllama(baseURL string, model string) (*OllamaSetupResult, error)
SetupOllama probes Ollama, validates the embedding model, and persists settings into ~/.cortex/cortex.yaml.