Versions in this module Expand all Collapse all v0 v0.3.0 Jul 4, 2026 Changes in this version + var DefaultIndexCap = IndexCap + func NewForget(store ToolStore) tool.Tool + func NewRecall(store ToolStore, emb Embedder) tool.Tool + func NewRemember(store ToolStore) tool.Tool + func ReEmbedStale(ctx context.Context, s *sqlite.Store, e Embedder) (int, error) + func Remember(ns string, kind sqlite.Kind, body string, importance int, ...) (sqlite.Candidate, error) + func RenderIndex(rows []Row, cap IndexCap) string + func RenderPortable(rows []PortableRow) string + func Vectorize(ctx context.Context, e Embedder, text string) (vec []float32, model string) + type CommandOutcome struct + Command string + Failed bool + type Embedder interface + Configured func() bool + Embed func(ctx context.Context, text string) ([]float32, error) + Model func() string + type ForgetDisplay struct + ID string + Label string + type Harvester struct + func NewHarvester(ns string, src sqlite.Source) *Harvester + func (h *Harvester) Observe(o CommandOutcome) *sqlite.Candidate + type ImportPlan struct + Archive []string + Insert []PortableRow + Update []PortableRow + func Reconcile(live, edited []PortableRow) ImportPlan + type IndexCap struct + Lines int + PerLine int + type NullEmbedder struct + func (NullEmbedder) Configured() bool + func (NullEmbedder) Embed(context.Context, string) ([]float32, error) + func (NullEmbedder) Model() string + type OpenAIEmbedder struct + func NewOpenAIEmbedder(baseURL, apiKey, model string, dim int) *OpenAIEmbedder + func (e *OpenAIEmbedder) Configured() bool + func (e *OpenAIEmbedder) Embed(ctx context.Context, text string) ([]float32, error) + func (e *OpenAIEmbedder) Model() string + type PortableAnchor struct + Hash string + Kind string + Ref string + type PortableRow struct + Anchors []PortableAnchor + Body string + From string + ID string + Importance int + Kind string + Label string + Namespace string + func ParsePortable(md string) ([]PortableRow, error) + type Row struct + Anchors []string + Label string + type ToolStore interface + ArchiveMemory func(ctx context.Context, ns, id string) (string, bool, error) + InsertCandidate func(ctx context.Context, id string, c sqlite.Candidate) error + MemoryLabel func(ctx context.Context, ns, id string) (string, bool, error) + Recall func(ctx context.Context, ns, query string, vec []float32, budget int) ([]sqlite.Memory, error) v0.2.0 Jul 4, 2026 Changes in this version + const DefaultPerFileCap + func Load(opts Options) string + type Options struct + Cwd string + GlobalDir string + PerFileCap int + Root string