Skip to main content

Module subagents

Module subagents 

Source

Modules§

matrix
Local matrix orchestration beside the subagent runtime. Canonical snapshots are acknowledged before launch and before exposing completion.

Structs§

BackgroundCompletionEvent
Authoritative terminal notification for a managed background subprocess.
BackgroundRecord
BackgroundSubprocessEntry
BackgroundSubprocessSnapshot
ChildRecord
ChildRunResult
ControllerState
PersistedBackgroundRecord
PersistedBackgroundState
ResolvedAgentRuntimeView
SendInputRequest
SpawnAgentRequest
SpawnBackgroundSubprocessRequest
SubagentController
Central controller that manages spawning, lifecycle, and state of all subagents. The background completion monitor is cancelled when the final controller owner is dropped; its task-held clone is intentionally non-owning.
SubagentControllerConfig
Configuration required to construct a SubagentController.
SubagentInputItem
SubagentStatusEntry
SubagentThreadSnapshot
TurnDelegationHints
VerificationResult
Result of a propose/verify cycle.

Enums§

BackgroundSubprocessStatus
SubagentStatus

Traits§

StatusEntryBuilder

Functions§

agent_type_for_spec
Maps a subagent spec name to its corresponding AgentType variant.
background_record_id
build_background_subagent_command
build_child_config
compose_subagent_instructions
contains_explicit_delegation_request
contains_explicit_model_request
delegated_task_requires_clarification
discover_controller_subagents
Discover workspace + plugin primary/subagent specs used by the controller and by interactive session bootstrap primary-agent selection.
extract_explicit_agent_mentions
extract_tail_lines
filter_child_tools
is_subagent_tool
Returns true if name is one of the reserved subagent-internal tool names.
load_archive_preview
load_memory_appendix
Loads the persistent memory appendix for a subagent, including key-point highlights.
load_memory_appendix_async
Async variant of load_memory_appendix for child-agent prompt assembly.
load_primary_memory_appendix
Loads a read-only memory appendix for the primary agent from a subagent’s memory scope.
load_primary_memory_appendix_async
Async variant of load_primary_memory_appendix for prompt assembly. Cache misses, metadata scans, and memory parsing run on Tokio’s blocking pool so an interactive request never monopolizes a runtime worker with synchronous filesystem work.
normalize_background_child_max_turns
normalize_child_max_turns
normalize_requested_model_override
prepare_child_runtime_config
request_prompt
sanitize_subagent_input_items
subagent_display_label