Documentation
¶
Overview ¶
Package agentfs discovers and reads agent metadata from the filesystem.
Agents are represented as subdirectories under a team path, each containing a CLAUDE.md file with YAML frontmatter fields (name, role, voice, emoji, etc.). Provides functions to discover all agents, look up a single agent by name or path, filter by role, and update individual frontmatter fields in place.
Plane: shared
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiscoverAgents ¶
DiscoverAgents returns sorted agent names from teamPath subdirs containing CLAUDE.md.
Types ¶
type AgentInfo ¶
type AgentInfo struct {
Name string // directory name (lowercase)
Path string // absolute path to agent directory
Voice string // Kokoro TTS voice ID
Emoji string // display emoji
Description string // short role summary
Role string // e.g. designer, researcher — matches [prompts] key
FlicknoteProject string // default flicknote project for this agent
}
AgentInfo holds agent metadata parsed from CLAUDE.md frontmatter.
func Discover ¶
Discover scans teamPath for agent directories (subdirs with CLAUDE.md). Returns sorted list of agents with metadata parsed from frontmatter.
func FindByRole ¶
FindByRole returns all agents with a matching role field.
func GetFromPath ¶
GetFromPath returns agent metadata from an absolute agent directory path.