Help us shape the future of Go! Take the 2026 Go Developer Survey

subagent

command
v0.21.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Command subagent shows a parent agent delegating to a SubAgent exposed as a tool. The sub-agent shares the parent's journal, so the whole tree journals under one unified log (the sub-run ID is agent.SubRunID(parentRunID, toolUseID)): a crash anywhere in the tree resumes precisely.

OPENROUTER_API_KEY=sk-... go run ./examples/subagent

Jump to

Keyboard shortcuts

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