Ask a question to get started
Enter to send•Shift+Enter new line
save_default_agent( agent_name: str, config_path: Path | None = None, ) -> bool
agent_name
str
The agent directory name (e.g., 'coder').
'coder'
config_path
Path | None
None
Path to config file.
Defaults to ~/.deepagents/config.toml.
~/.deepagents/config.toml
Update the default agent in config file.
Writes to [agents].default. This is the user's intentional sticky default — set via Ctrl+S in the /agents picker — and takes precedence over [agents].recent on bare-launch resolution.
[agents].default
Ctrl+S
/agents
[agents].recent