memory

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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 NewStore

func NewStore(dir string) (*Store, error)

func (*Store) AgentContent

func (s *Store) AgentContent(name string) string

AgentContent reads an agent's AGENTS.md from its workspace.

func (*Store) AgentDir

func (s *Store) AgentDir(name string) string

AgentDir returns the path to an agent's root directory.

func (*Store) AgentExists

func (s *Store) AgentExists(name string) bool

AgentExists checks if an agent directory exists.

func (*Store) Content

func (s *Store) Content(name string) string

Content returns the combined instructions for an agent: global instructions first, then agent-specific.

func (*Store) Dir

func (s *Store) Dir() string

func (*Store) EnsureAgent

func (s *Store) EnsureAgent(name string) error

EnsureAgent creates the full directory structure for an agent. Creates a default SOUL.md if one doesn't exist.

func (*Store) GlobalContent

func (s *Store) GlobalContent() string

GlobalContent reads the global AGENTS.md.

func (*Store) GlobalDir

func (s *Store) GlobalDir() string

GlobalDir returns the path to the global memory directory.

func (*Store) ListAgents

func (s *Store) ListAgents() ([]string, error)

ListAgents returns names of all registered agents (directories under the store, excluding "global").

func (*Store) RemoveAgent

func (s *Store) RemoveAgent(name string) error

RemoveAgent deletes an agent's entire directory.

func (*Store) SoulContent

func (s *Store) SoulContent(name string) string

SoulContent reads an agent's SOUL.md (outside workspace, not writable by agent).

func (*Store) TasksDir

func (s *Store) TasksDir(name string) string

TasksDir returns the path to an agent's tasks directory.

func (*Store) WorkspaceDir

func (s *Store) WorkspaceDir(name string) string

WorkspaceDir returns the path to an agent's workspace directory.

func (*Store) WriteAgent

func (s *Store) WriteAgent(name string, content string) error

WriteAgent writes content to an agent's AGENTS.md in its workspace.

func (*Store) WriteGlobal

func (s *Store) WriteGlobal(content string) error

WriteGlobal writes content to the global AGENTS.md.

Jump to

Keyboard shortcuts

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