Skip to main content

Module agent

Module agent 

Source
Expand description

CLI subcommands for background agents.

Provides CLI access to task-graph operations for background agents that don’t have MCP access. Calls the same underlying tool functions used by the MCP server.

Modules§

exit_codes
CLI exit codes for programmatic error handling.

Structs§

AgentArgs
Agent subcommand arguments.
AttachArgs
Arguments for the attach command.
BatchArgs
Arguments for batch file execution.
ClaimArgs
Arguments for the claim command.
ConnectArgs
Arguments for the connect command.
DisconnectArgs
Arguments for the disconnect command.
GetArgs
Arguments for the get command.
InteractiveArgs
Arguments for interactive/batch mode.
ListAgentsArgs
Arguments for the list-agents command.
ListTasksArgs
Arguments for the list-tasks command.
PromptsArgs
Arguments for the prompts command.
ThinkingArgs
Arguments for the thinking command.
UpdateArgs
Arguments for the update command.

Enums§

AgentCommand
Available agent subcommands.
CliOutputFormat
Output format for CLI commands.

Functions§

run_agent_command
Run agent subcommands.
run_agent_command_and_exit
Run agent subcommands and exit the process. This is a convenience wrapper that calls std::process::exit with the appropriate exit code, since the main function returns Result<()>.