Versions in this module Expand all Collapse all v0 v0.2.0 May 15, 2026 v0.1.0 May 12, 2026 Changes in this version + func ExtractConventions(text string) []string + func Save(m *Memory) error + type ActivityTracker struct + func NewActivityTracker(nudgeAfter time.Duration) *ActivityTracker + func (a *ActivityTracker) NudgeMessage() string + func (a *ActivityTracker) RecordSave() + type AutoCapture struct + func NewAutoCapture(bridge *YaadBridge) *AutoCapture + func (ac *AutoCapture) ExtractFromAssistantResponse(ctx context.Context, text string) + func (ac *AutoCapture) Ingest(toolName string, args map[string]interface{}, output string, isErr bool) + func (ac *AutoCapture) Metrics() CaptureMetrics + func (ac *AutoCapture) Stop() + type AutoDreamConfig struct + ConsolidatePrompt string + Enabled bool + MinElapsedTime time.Duration + MinNewSessions int + func DefaultAutoDreamConfig() AutoDreamConfig + type AutoDreamState struct + DreamCount int + LastDreamTime time.Time + LastError string + SessionsSince int + func NewAutoDreamState() *AutoDreamState + func (s *AutoDreamState) MarkDreamComplete() + func (s *AutoDreamState) MarkDreamFailed(err error) + func (s *AutoDreamState) RecordSession() + func (s *AutoDreamState) ShouldDream(cfg AutoDreamConfig) bool + type AutoMemory struct + func NewAutoMemory(projectDir string) *AutoMemory + func (am *AutoMemory) Format() string + func (am *AutoMemory) LoadStartup() string + func (am *AutoMemory) Search(query string) []string + func (am *AutoMemory) ShouldRemember(content string) bool + func (am *AutoMemory) Write(topic, content string) error + type CaptureMetrics struct + BugsOut int + Captured int + ConventionsOut int + DecisionsOut int + FilesOut int + Skipped int + type CodeMemoryLinker struct + func NewCodeMemoryLinker(bridge *YaadBridge) *CodeMemoryLinker + func (cl *CodeMemoryLinker) InvalidateCache(path string) + func (cl *CodeMemoryLinker) LinkFileToMemories(path string) error + func (cl *CodeMemoryLinker) MemoriesForFile(path string) ([]string, error) + func (cl *CodeMemoryLinker) MemoriesForSymbol(symbol string) ([]string, error) + func (cl *CodeMemoryLinker) OnFileChanged(path string) []string + type CodeSearchResult struct + Content string + EndLine int + Path string + Score float64 + StartLine int + Symbol string + type CompactResult struct + ID string + Score float64 + Title string + Type string + type ConfidenceTracker struct + func NewConfidenceTracker(bridge *YaadBridge) *ConfidenceTracker + func (ct *ConfidenceTracker) AccessedCount() int + func (ct *ConfidenceTracker) BoostByType(nodeType string, amount float64) + func (ct *ConfidenceTracker) OnSessionFailure() + func (ct *ConfidenceTracker) OnSessionSuccess() + func (ct *ConfidenceTracker) RecordAccess(nodeIDs ...string) + func (ct *ConfidenceTracker) RecordRecall(results []CompactResult) + func (ct *ConfidenceTracker) Reset() + type ConflictInfo struct + ExistingAgent string + ExistingContent string + NewAgent string + NewContent string + NodeType string + type ContinuityReport struct + AvgReExplanations float64 + AvgScore float64 + MemoryContribution float64 + SessionsWithMemory int + SuccessRate float64 + TotalSessions int + TotalTokensSaved int + type ContinuitySession struct + Duration time.Duration + MemoriesAccessed int + MemoryInjected bool + ReExplanations int + Score float64 + SessionID string + StartedAt time.Time + TaskSuccess bool + TokensFromMemory int + TokensSaved int + type ContinuityTracker struct + func NewContinuityTracker(projectDir string) *ContinuityTracker + func (ct *ContinuityTracker) EndSession(success bool) + func (ct *ContinuityTracker) FormatSummary() string + func (ct *ContinuityTracker) RecordMemoryUse(memoriesAccessed, tokensUsed int) + func (ct *ContinuityTracker) RecordReExplanation() + func (ct *ContinuityTracker) Report() ContinuityReport + func (ct *ContinuityTracker) Save() + func (ct *ContinuityTracker) StartSession(sessionID string, memoryInjected bool) + type CrossProjectMemory struct + func NewCrossProjectMemory(bridge *YaadBridge) *CrossProjectMemory + func (cp *CrossProjectMemory) DetectGlobalPatterns(projectMemories []string) []string + func (cp *CrossProjectMemory) GetConventions() ([]string, error) + func (cp *CrossProjectMemory) GetPreferences() ([]string, error) + func (cp *CrossProjectMemory) InjectGlobalContext(budget int) string + func (cp *CrossProjectMemory) PromoteToGlobal(memories []string) error + func (cp *CrossProjectMemory) RecallGlobal(query string, budget int) (string, error) + func (cp *CrossProjectMemory) StoreGlobal(content, nodeType string) error + type DiffResult struct + Commits []string + DeletedFiles []string + ModifiedFiles []string + NewDeps []string + NewFiles []string + type DistilledSkill struct + Description string + Name string + Patterns []string + Steps []string + Tools []string + type DreamResult struct + ConsolidatedMemory string + Duration time.Duration + MemoriesProcessed int + func RunDream(ctx context.Context, cfg AutoDreamConfig, ...) (*DreamResult, error) + type EnhancedMemoryManager struct + AutoCapture *AutoCapture + CodeLinks *CodeMemoryLinker + Confidence *ConfidenceTracker + Continuity *ContinuityTracker + CrossProject *CrossProjectMemory + GraphBudget *GraphAwareBudget + Proactive *ProactiveContext + Retrieval *RetrievalMetrics + SessionDiff *SessionDiffAnalyzer + Shared *SharedMemory + func NewEnhancedMemoryManager(projectDir string) *EnhancedMemoryManager + func (em *EnhancedMemoryManager) Close() + func (em *EnhancedMemoryManager) DiagnosticReport(_ context.Context) string + func (em *EnhancedMemoryManager) EnableMissionMode(missionID, agentID string) + func (em *EnhancedMemoryManager) EndSession(success bool) + func (em *EnhancedMemoryManager) FormatForPrompt() string + func (em *EnhancedMemoryManager) GlobalContext(budget int) string + func (em *EnhancedMemoryManager) HealthCheck() map[string]interface{} + func (em *EnhancedMemoryManager) OnToolResult(toolName string, args map[string]interface{}, output string, isErr bool) + func (em *EnhancedMemoryManager) ProactiveContextForFile(path string) string + func (em *EnhancedMemoryManager) Recall(query string, tokenBudget int) (string, error) + func (em *EnhancedMemoryManager) RecallFromMission(query string, budget int) (string, error) + func (em *EnhancedMemoryManager) Remember(content, category string) error + func (em *EnhancedMemoryManager) ShareWithMission(content, nodeType string) error + func (em *EnhancedMemoryManager) StartSession(sessionID string) + func (em *EnhancedMemoryManager) StatusSummary() string + type EvolvingMemory struct + func NewEvolvingMemory() *EvolvingMemory + func (em *EvolvingMemory) Decay() + func (em *EvolvingMemory) Format(topK int) string + func (em *EvolvingMemory) Guidelines() []UsageGuideline + func (em *EvolvingMemory) Learn(pattern, lesson, source string) + func (em *EvolvingMemory) Load() error + func (em *EvolvingMemory) Retrieve(context string, topK int) []UsageGuideline + func (em *EvolvingMemory) Save() error + func (em *EvolvingMemory) Strengthen(id string) + type FullResult struct + Content string + ID string + Type string + type GraphAwareBudget struct + func NewGraphAwareBudget(bridge *YaadBridge, proactive *ProactiveContext) *GraphAwareBudget + func (gb *GraphAwareBudget) BuildInjection(query string, activeFiles []string, budget int) string + func (gb *GraphAwareBudget) ComputeBudget(activeFiles []string, taskComplexity float64) int + type Memory struct + Content string + CreatedAt time.Time + ID string + Source string + Tags []string + func Consolidate(memories []*Memory) []*Memory + func ExtractFromSession(sessionID string, messages []string) []*Memory + func List() ([]*Memory, error) + func Load(id string) (*Memory, error) + func Search(query string) ([]*Memory, error) + type MemoryEntry struct + AccessCount int + AccessedAt time.Time + Content string + CreatedAt time.Time + ID string + Layer MemoryLayer + Priority float64 + Tags []string + type MemoryEvent struct + AgentID string + Content string + MissionID string + NodeType string + Timestamp time.Time + Type string + type MemoryInjection struct + Content string + Priority float64 + Source string + TokenCount int + type MemoryLayer int + const LayerCore + const LayerCross + const LayerEpisodic + const LayerProcedural + const LayerSemantic + const LayerShortTerm + const LayerWorking + func (l MemoryLayer) String() string + type MemoryManager struct + Auto *AutoMemory + Core *Memory + Evolving *EvolvingMemory + Yaad *YaadBridge + Zen *ZenBrain + func NewMemoryManager(projectDir string) *MemoryManager + func (mm *MemoryManager) FormatForPrompt() string + func (mm *MemoryManager) LoadStartup() error + func (mm *MemoryManager) Recall(query string, tokenBudget int) (string, error) + func (mm *MemoryManager) Remember(content, category string) error + type ProactiveContext struct + func NewProactiveContext(bridge *YaadBridge) *ProactiveContext + func (pc *ProactiveContext) ContextForActiveFiles(budget int) string + func (pc *ProactiveContext) ContextForFile(path string) string + func (pc *ProactiveContext) ContextForTool(toolName string, args map[string]interface{}) string + func (pc *ProactiveContext) ImpactAnalysis(ctx context.Context, changedFile string) string + func (pc *ProactiveContext) Reset() + func (pc *ProactiveContext) TrackFile(path string) + func (pc *ProactiveContext) TrackFiles(paths []string) + type RetrievalEntry struct + Query string + ResultCount int + SessionID string + Timestamp time.Time + TokensUsed int + ToolContext string + WasUseful bool + type RetrievalMetrics struct + func NewRetrievalMetrics(projectDir string) *RetrievalMetrics + func (rm *RetrievalMetrics) FormatSummary() string + func (rm *RetrievalMetrics) HitRate() float64 + func (rm *RetrievalMetrics) MarkUseful() + func (rm *RetrievalMetrics) RecordRecall(query string, resultCount, tokensUsed int, toolCtx string) + func (rm *RetrievalMetrics) Report() RetrievalReport + func (rm *RetrievalMetrics) Save() + func (rm *RetrievalMetrics) TokensSaved() int + func (rm *RetrievalMetrics) TotalRecalls() int + type RetrievalReport struct + AvgResultCount float64 + AvgTokensPerCall int + HitRate float64 + MostQueriedTopics []string + TotalRecalls int + TotalTokensSaved int + type SessionDiffAnalyzer struct + func NewSessionDiffAnalyzer(bridge *YaadBridge, projectDir string) *SessionDiffAnalyzer + func (sd *SessionDiffAnalyzer) AnalyzeEnd() *DiffResult + func (sd *SessionDiffAnalyzer) SnapshotStart() + func (sd *SessionDiffAnalyzer) StoreMemoriesFromDiff(diff *DiffResult) + type SharedMemory struct + func NewSharedMemory(bridge *YaadBridge, missionID, agentID string) *SharedMemory + func (sm *SharedMemory) GetAllShared() ([]string, error) + func (sm *SharedMemory) OnMemoryEvent(fn func(MemoryEvent)) + func (sm *SharedMemory) Recall(query string, budget int) (string, error) + func (sm *SharedMemory) Share(content, nodeType string) error + type SkillDistiller struct + func (sd *SkillDistiller) BuildSkillPrompt(taskDescription string, toolsUsed []string, filesModified []string, ...) string + func (sd *SkillDistiller) ParseSkill(llmResponse string) (*DistilledSkill, error) + type SleeptimeAgent struct + Frequency int + func NewSleeptimeAgent(frequency int) *SleeptimeAgent + func (sa *SleeptimeAgent) BuildConsolidationPrompt(transcript []string, memoryState string) string + func (sa *SleeptimeAgent) ShouldRun() bool + type UsageGuideline struct + Confidence float64 + CreatedAt time.Time + ID string + Lesson string + Pattern string + Source string + Uses int + type YaadBridge struct + func NewYaadBridge() *YaadBridge + func (b *YaadBridge) ClearFileChunks(path string) error + func (b *YaadBridge) Close() + func (b *YaadBridge) GetFileHash(path string) (string, error) + func (b *YaadBridge) GetFullContent(ids []string) ([]FullResult, error) + func (b *YaadBridge) IndexCodeChunk(path, content, symbol, lang string, start, end, tokens int, hash string) error + func (b *YaadBridge) InitCodeIndex() error + func (b *YaadBridge) IsReady() bool + func (b *YaadBridge) ListIndexedPaths() ([]string, error) + func (b *YaadBridge) Ready() bool + func (b *YaadBridge) Recall(query string, tokenBudget int) (string, error) + func (b *YaadBridge) Remember(content, category string) error + func (b *YaadBridge) SearchByType(nodeType string, limit int) ([]string, []string, error) + func (b *YaadBridge) SearchCode(query string, limit int) ([]CodeSearchResult, error) + func (b *YaadBridge) SearchCompact(query string, limit int) ([]CompactResult, error) + func (b *YaadBridge) UpdateNodeContent(id, newContent string) error + type ZenBrain struct + func NewZenBrain() *ZenBrain + func (zb *ZenBrain) Consolidate() + func (zb *ZenBrain) FormatForPrompt(maxTokens int) string + func (zb *ZenBrain) LayerSize(layer MemoryLayer) int + func (zb *ZenBrain) Load() error + func (zb *ZenBrain) Retrieve(query string, layers []MemoryLayer, topK int) []MemoryEntry + func (zb *ZenBrain) Save() error + func (zb *ZenBrain) Sleep() + func (zb *ZenBrain) Store(layer MemoryLayer, content string, tags []string) + func (zb *ZenBrain) TotalSize() int