Expand description
Subagent management: spawning, grants, transcripts, and lifecycle hooks.
Re-exports§
pub use command::AgentCommand;pub use command::AgentsCommand;pub use def::SubAgentDef;pub use def::SubAgentPermissions;pub use def::is_valid_agent_name;pub use error::SubAgentError;pub use filter::FilteredToolExecutor;pub use filter::PlanModeExecutor;pub use filter::filter_skills;pub use grants::Grant;pub use grants::GrantKind;pub use grants::PermissionGrants;pub use grants::SecretRequest;pub use hooks::HookError;pub use hooks::fire_hooks;pub use hooks::matching_hooks;pub use manager::SubAgentHandle;pub use manager::SubAgentManager;pub use manager::SubAgentStatus;pub use memory::ensure_memory_dir;pub use memory::load_memory_content;pub use resolve::resolve_agent_paths;pub use state::SubAgentState;pub use transcript::TranscriptMeta;pub use transcript::TranscriptReader;pub use transcript::TranscriptWriter;pub use transcript::sweep_old_transcripts;
Modules§
Structs§
- HookDef
- A single hook definition.
- Hook
Matcher - Tool-name matcher with associated hooks.
- Skill
Filter - Subagent
Hooks - Per-agent frontmatter hook collections (
PreToolUse/PostToolUse).
Enums§
- Hook
Type - The type of hook — currently only shell command hooks are supported.
- Memory
Scope - Persistence scope for sub-agent memory files.
- Permission
Mode - Controls tool execution and prompt interactivity for a sub-agent.
- Tool
Policy