subagent

command
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Subagent tutorial: spawn child tasks and collect their results. Provider abstracts startup; built-in acp and fork-copy backends are stubs. ForkLineage records parent/child sessions for causal attribution. Handle.Drain waits for completion; Dispose releases resources and cascades cancellation. Runtime.Spawn selects a backend and registers the handle; DisposeOwner releases all children of a parent. The example covers spawning, lineage, draining, cascading cleanup, and stable errors for unknown backends. Run: go run ./examples/subagent. See pkg/subagent/subagent.go.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL