cortex agent

Manage agent configurations that define how Cortex interacts with LLMs. Each agent has a model, provider, system prompt, tools, temperature, and personality (soul).

Usage

cortex agent <subcommand> [options]

Subcommands

SubcommandDescription
listList all agent configurations
showShow details for an agent
createCreate a new agent
updateUpdate an existing agent
deleteDelete an agent
selectSelect the active agent
inspectInspect agent configuration in detail
importImport an agent configuration

Create Options

OptionDescription
--description, -dAgent description
--provider, -pLLM provider to use
--model, -mModel name
--temperature, -tResponse temperature (0.0–2.0)
--soulSoul/persona to apply
--system-promptCustom system prompt
--toolsComma-separated tool allow-list
--tagsComma-separated tags

Update Options

OptionDescription
--name, -nNew name for the agent
--description, -dUpdated description
--provider, -pChange provider
--model, -mChange model
--temperature, -tAdjust temperature
--soulChange soul/persona
--system-promptUpdate system prompt
--toolsUpdate tool allow-list
--tagsUpdate tags

Examples

# Create a code reviewer agent
cortex agent create code-reviewer -m claude-sonnet-4-5 -d "Reviews pull requests" --tools read,write,shell

# Create with specific provider
cortex agent create data-analyst -p anthropic -m claude-sonnet-4-5 -t 0.7

# List all agents
cortex agent list

# Show agent details
cortex agent show code-reviewer

# Update an agent
cortex agent update code-reviewer --tools read,shell,search,web

# Select the active agent
cortex agent select code-reviewer

# Delete an agent
cortex agent delete old-agent

# Inspect agent
cortex agent inspect code-reviewer

# Import an agent config
cortex agent import