Documentation
¶
Index ¶
- type Store
- func (s *Store) AgentContent(name string) string
- func (s *Store) AgentDir(name string) string
- func (s *Store) AgentExists(name string) bool
- func (s *Store) Content(name string) string
- func (s *Store) Dir() string
- func (s *Store) EnsureAgent(name string) error
- func (s *Store) GlobalContent() string
- func (s *Store) GlobalDir() string
- func (s *Store) ListAgents() ([]string, error)
- func (s *Store) RemoveAgent(name string) error
- func (s *Store) SoulContent(name string) string
- func (s *Store) TasksDir(name string) string
- func (s *Store) WorkspaceDir(name string) string
- func (s *Store) WriteAgent(name string, content string) error
- func (s *Store) WriteGlobal(content string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store manages per-agent and global AGENTS.md instructions for claw.
Directory layout under ~/.wingman/claw/agents/:
{dir}/
global/
AGENTS.md -- shared instructions across all agents
{agent}/
AGENTS.md -- agent-specific instructions
workspace/ -- agent's working directory (files, data)
tasks/ -- agent's scheduled tasks
func (*Store) AgentContent ¶
AgentContent reads an agent's AGENTS.md from its workspace.
func (*Store) AgentExists ¶
AgentExists checks if an agent directory exists.
func (*Store) Content ¶
Content returns the combined instructions for an agent: global instructions first, then agent-specific.
func (*Store) EnsureAgent ¶
EnsureAgent creates the full directory structure for an agent. Creates a default SOUL.md if one doesn't exist.
func (*Store) GlobalContent ¶
GlobalContent reads the global AGENTS.md.
func (*Store) ListAgents ¶
ListAgents returns names of all registered agents (directories under the store, excluding "global").
func (*Store) RemoveAgent ¶
RemoveAgent deletes an agent's entire directory.
func (*Store) SoulContent ¶
SoulContent reads an agent's SOUL.md (outside workspace, not writable by agent).
func (*Store) WorkspaceDir ¶
WorkspaceDir returns the path to an agent's workspace directory.
func (*Store) WriteAgent ¶
WriteAgent writes content to an agent's AGENTS.md in its workspace.
func (*Store) WriteGlobal ¶
WriteGlobal writes content to the global AGENTS.md.