Ask a question to get started
Enter to send•Shift+Enter new line
save_recent_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 recently used agent in config file.
Writes to [agents].recent so a later bare deepagents launch (no -a) can bring the user back to their last agent instead of the default.
[agents].recent
deepagents
-a