pub struct AgentsCommand { /* private fields */ }claude agents is now an interactive TUI in Claude Code 2.1.143+ (background-session manager). For listing/reading/writing user subagents in ~/.claude/agents/, use claude_wrapper::artifacts::AgentsRoot.
Expand description
Deprecated. Wraps claude agents, which as of Claude Code
2.1.143 is an interactive TUI for managing background agent
sessions – not a way to list user-defined subagent definitions.
Calling .execute() non-interactively just emits
'claude agents' is not available in this environment. to
stderr and returns empty stdout.
Use crate::artifacts::AgentsRoot to enumerate / read /
write user-level subagent definitions in ~/.claude/agents/.
There is no current non-interactive CLI surface for the
background-session manager.
Kept for back-compat; will be removed in a future major release.
Implementations§
Source§impl AgentsCommand
impl AgentsCommand
Trait Implementations§
Source§impl ClaudeCommand for AgentsCommand
impl ClaudeCommand for AgentsCommand
Source§impl Clone for AgentsCommand
impl Clone for AgentsCommand
Source§fn clone(&self) -> AgentsCommand
fn clone(&self) -> AgentsCommand
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AgentsCommand
impl Debug for AgentsCommand
Source§impl Default for AgentsCommand
impl Default for AgentsCommand
Source§fn default() -> AgentsCommand
fn default() -> AgentsCommand
Auto Trait Implementations§
impl Freeze for AgentsCommand
impl RefUnwindSafe for AgentsCommand
impl Send for AgentsCommand
impl Sync for AgentsCommand
impl Unpin for AgentsCommand
impl UnsafeUnpin for AgentsCommand
impl UnwindSafe for AgentsCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> ClaudeCommandSyncExt for Twhere
T: ClaudeCommand<Output = CommandOutput>,
impl<T> ClaudeCommandSyncExt for Twhere
T: ClaudeCommand<Output = CommandOutput>,
Source§fn execute_sync(&self, claude: &Claude) -> Result<CommandOutput, Error>
fn execute_sync(&self, claude: &Claude) -> Result<CommandOutput, Error>
ClaudeCommand::execute for commands
producing CommandOutput.