prompt

package
v0.1.23 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAgentsMD

func NewAgentsMD(cfg AgentsMDConfig, deps AgentsMDDeps) (agentkit.SectionProvider, error)

NewAgentsMD registers prompt/section/agents-md: Inject AGENTS.md instructions discovered in the workspace hierarchy.

func NewMemoryMD added in v0.1.10

func NewMemoryMD(cfg MemoryMDConfig, deps MemoryMDDeps) (agentkit.SectionProvider, error)

NewMemoryMD registers prompt/section/memory: Inject memory.md instructions discovered in the workspace hierarchy.

func NewSkillsSection

NewSkillsSection registers prompt/section/skills: Inject a catalog of available skills so the model knows what it can load.

func NewStatic

func NewStatic(cfg StaticConfig) (agentkit.SectionProvider, error)

NewStatic registers prompt/section/static: Inject a fixed block of system prompt text from config.

func NewSubagentsSection

NewSubagentsSection registers prompt/section/subagents: Inject the catalog of delegatable subagents so the model knows who it can hand work to.

Best practices:

  • Mount this wherever tool/subagent is mounted: the delegate tool's description is static, so without this section the model has no list of valid agent names.

Types

type AgentsMDConfig

type AgentsMDConfig struct {
	// Root is directory to start the upward search from.
	Root string `json:"root"`
	// Filenames overrides the default instruction files to search in each directory.
	// Example for Automon runtimes: ["Automon.md", "AUTOMON.md"].
	Filenames []string `json:"filenames"`
}

type AgentsMDDeps

type AgentsMDDeps struct {
	Workspace workspace.Service `json:"workspace"`
}

type MemoryMDConfig added in v0.1.10

type MemoryMDConfig struct {
	// Root is directory to start the upward search from.
	Root string `json:"root"`
	// Filenames overrides the default memory files to search in each directory.
	Filenames []string `json:"filenames"`
}

type MemoryMDDeps added in v0.1.10

type MemoryMDDeps struct {
	Workspace workspace.Service `json:"workspace"`
	// Learning wires /learn into the build graph and shares memory.md with this section.
	Learning *learning.Service `json:"learning"`
}

type SkillsSectionConfig

type SkillsSectionConfig struct{}

type SkillsSectionDeps

type SkillsSectionDeps struct {
	Skills skill.Registry `json:"skills"`
}

type StaticConfig

type StaticConfig struct {
	// Name is section label, used for ordering and debugging.
	Name string `json:"name"`
	// Content is the prompt text.
	Content string `json:"content"`
}

type SubagentsSectionConfig

type SubagentsSectionConfig struct{}

type SubagentsSectionDeps

type SubagentsSectionDeps struct {
	Subagent subagent.Spawner `json:"subagent"`
}

Jump to

Keyboard shortcuts

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