Expand description
§tact-subagents
tact-subagents provides structured child-agent orchestration for Nanocodex applications. It owns
clean child sessions, a scoped task tree, bounded concurrent turns, directed messages, structured
result validation, and lifecycle tools.
The crate exposes three integration boundaries:
Subagentsowns one in-process runtime. Its weak handle installs Nanocodex tools without creating an ownership cycle.ScopedAgentUpdateis the observation stream for lifecycle, model, and message events.RootAgentAuthoritylets an application restrict its own tools to coordinating root sessions.
Create one runtime for each root agent configuration. Drain its update receiver continuously,
configure a factory that creates a fresh Nanocodex session for each child, and call
Subagents::downgrade before capturing the handle in the root builder’s tool factory. Call
WeakSubagents::install_tools there. The same tool factory is inherited by child sessions, which
permits nested delegation while the runtime enforces task-tree authority.
The runtime is process-local. It does not persist live child sessions, isolate filesystem access, or provide a distributed job queue. Root and child sessions use the process and tool authority granted by the embedding application.
See the Tact subagent design for the complete lifecycle, messaging, and failure contracts.
Structs§
- Agent
Descriptor - Describes a child session and its position in the task tree.
- AgentId
- Identifies a child within one root session’s task tree.
- Agent
Message - A bounded directed message between agents in one task tree.
- Agent
Message Update - A complete thread snapshot emitted when one message changes state.
- Agent
Thread - The retained messages in one two-party conversation.
- Message
Id - Identifies a directed message within one root session.
- Root
Agent Authority - Identifies whether a tool call belongs to a coordinating root agent.
- Scoped
Agent Update - Associates one runtime update with its owning root session.
- Subagent
Runtime Id - Identifies one in-process runtime instance.
- Subagents
- Owns the child sessions, shared capacity, and tool state for one agent runtime.
- Thread
Id - Correlates the messages in one two-party conversation.
- Weak
Subagents - A non-owning handle used by factories installed into child sessions.
Enums§
- Agent
Status - The lifecycle state of a child session.
- Agent
Update - A typed observation emitted by a
Subagentsruntime. - Authority
Error - Failure to establish root-session authority.
- Message
Delivery State - Tracks admission and terminal delivery separately.
- Message
Disposition - Reports how a recipient accepted a message.
- Message
Priority - Controls when a directed message interrupts its recipient.
- Message
Purpose - Describes the coordination intent of a directed message.
- Message
Sender - Identifies the origin of a directed message.