subagent

package
v0.12.21 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Tools added in v0.6.2

func Tools(cfg *agent.Config, sharedContext func() string, tasks *task.Registry, custom ...Definition) []tool.Tool

Types

type Definition added in v0.12.2

type Definition struct {
	Name         string
	Description  string
	Instructions string
	Access       string
	Model        string
}

Definition is a user-provided agent type: a markdown file whose frontmatter names the agent and whose body becomes its instructions. Access is an abstract tool policy ("read-only", "verify", "all"), never a tool list, and Model is an optional default role ("plan", "utility").

func Discover added in v0.12.2

func Discover(workDir string) []Definition

Discover loads agent definitions from the project and the user's home directory; the first definition of a name wins, so project files override personal ones.

func ParseDefinition added in v0.12.2

func ParseDefinition(data string) (Definition, error)

Jump to

Keyboard shortcuts

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