memory

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 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

func (*Store) AgentDir

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

func (*Store) AgentExists

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

func (*Store) Content

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

Content concatenates global and agent-specific instructions.

func (*Store) Dir

func (s *Store) Dir() string

func (*Store) EnsureAgent

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

func (*Store) GlobalContent

func (s *Store) GlobalContent() string

func (*Store) GlobalDir

func (s *Store) GlobalDir() string

func (*Store) ListAgents

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

func (*Store) RemoveAgent

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

func (*Store) SoulContent

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

SoulContent reads SOUL.md from outside the workspace, where the agent cannot modify it.

func (*Store) TasksDir

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

func (*Store) WorkspaceDir

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

func (*Store) WriteAgent

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

func (*Store) WriteGlobal

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

Jump to

Keyboard shortcuts

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