Documentation
¶
Index ¶
- Constants
- func FormatBackgroundReviewNotification(mode string, notices []string) string
- func FormatHelp() string
- func NewBackgroundReview(cfg BackgroundReviewConfig, deps backgroundReviewDeps) (agentkit.HookProvider, error)
- func NewDreamSweep(cfg DreamSweepConfig, deps DreamSweepDeps) (capschedule.Runtime, error)
- func NewLearnCaptureTool(mem capmemory.Capture, skills caplearning.SkillProposer) (agentkit.Tool, error)
- func NormalizeMemoryNotifications(mode string) string
- func SummarizeSessionUserMessages(ctx context.Context, store agentkit.SessionStore, sessionID agentkit.SessionID, ...) (string, error)
- type BackgroundReviewConfig
- type Config
- type Deps
- type DreamSweep
- type DreamSweepConfig
- type DreamSweepDeps
- type Service
- func (s *Service) CaptureSkillPropose(ctx context.Context, name, body, sessionID, focus, source string) (string, error)
- func (s *Service) Commands() []agentkit.Command
- func (s *Service) Disabled() bool
- func (s *Service) DreamSweepDue(ctx context.Context) bool
- func (s *Service) OnMemoryCommitted(ctx context.Context, text, source string, outcome capmemory.AddOutcome)
- func (s *Service) ReviewNudgeLoad(ctx context.Context, sessionID string) (caplearning.NudgeSessionState, bool, error)
- func (s *Service) ReviewNudgeSave(ctx context.Context, sessionID string, state caplearning.NudgeSessionState) error
- func (s *Service) ReviewSignalCandidates(ctx context.Context) string
- func (s *Service) RunScheduledDreamSweep(ctx context.Context) error
- func (s *Service) SessionsDir() string
- func (s *Service) TryConsumeReviewQuota(ctx context.Context, maxPerDay int) (bool, error)
- func (s *Service) Workspace() workspace.Service
Constants ¶
const ( DefaultDreamsFile = "DREAMS.md" DefaultDreamingSubdir = "memory/dreaming" )
Variables ¶
This section is empty.
Functions ¶
func FormatBackgroundReviewNotification ¶ added in v0.3.14
FormatBackgroundReviewNotification builds a short chat line after review writes.
func NewBackgroundReview ¶ added in v0.3.13
func NewBackgroundReview(cfg BackgroundReviewConfig, deps backgroundReviewDeps) (agentkit.HookProvider, error)
NewBackgroundReview registers hook/background-review: spawn an LLM review fork after each successful turn.
func NewDreamSweep ¶ added in v0.1.17
func NewDreamSweep(cfg DreamSweepConfig, deps DreamSweepDeps) (capschedule.Runtime, error)
NewDreamSweep registers learning/dream-sweep: background grounded dreaming sweeps.
func NewLearnCaptureTool ¶ added in v0.3.14
func NewLearnCaptureTool(mem capmemory.Capture, skills caplearning.SkillProposer) (agentkit.Tool, error)
NewLearnCaptureTool builds the isolated review-fork tool (not registered as a separate plugin kind).
func NormalizeMemoryNotifications ¶ added in v0.3.14
NormalizeMemoryNotifications maps hook config to off | on | verbose.
Types ¶
type BackgroundReviewConfig ¶ added in v0.3.13
type BackgroundReviewConfig struct {
Enabled *bool `json:"enabled"`
Model string `json:"model"`
MaxSteps int `json:"maxSteps"`
MaxDigestMessages int `json:"maxDigestMessages"`
SkipSlashOnly *bool `json:"skipSlashOnly"`
MinTurnTokens int `json:"minTurnTokens"`
MaxReviewsPerDay int `json:"maxReviewsPerDay"`
MinIdleSeconds int `json:"minIdleSeconds"`
MemoryNotifications string `json:"memoryNotifications"` // off | on | verbose (Hermes display.memory_notifications)
// MemoryNudgeInterval user turns between automatic memory reviews (Hermes memory.nudge_interval). 0 disables; default 10.
MemoryNudgeInterval *int `json:"memoryNudgeInterval"`
// SessionRecall when false, skip FTS prior-session block in the review digest (use tool/session-search instead).
SessionRecall *bool `json:"sessionRecall"`
}
BackgroundReviewConfig controls post-turn LLM review (Hermes-style learning fork).
type DreamSweep ¶ added in v0.1.17
type DreamSweep struct {
// contains filtered or unexported fields
}
DreamSweep runs scheduled dreaming sweeps without agent turns.
func (*DreamSweep) Start ¶ added in v0.1.17
func (d *DreamSweep) Start(ctx context.Context, _ capschedule.SubmitFunc) error
type DreamSweepConfig ¶ added in v0.1.17
type DreamSweepConfig struct {
PollSeconds int `json:"pollSeconds"`
}
type DreamSweepDeps ¶ added in v0.1.17
type DreamSweepDeps struct {
Learning caplearning.DreamSweepScheduler `json:"learning"`
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service owns dreaming, workshop, and /learn commands (memory.md is memory/default).
func (*Service) CaptureSkillPropose ¶ added in v0.3.13
func (s *Service) CaptureSkillPropose(ctx context.Context, name, body, sessionID, focus, source string) (string, error)
CaptureSkillPropose implements caplearning.SkillProposer.
func (*Service) DreamSweepDue ¶ added in v0.3.14
func (*Service) OnMemoryCommitted ¶ added in v0.3.14
func (*Service) ReviewNudgeLoad ¶ added in v0.3.14
func (s *Service) ReviewNudgeLoad(ctx context.Context, sessionID string) (caplearning.NudgeSessionState, bool, error)
func (*Service) ReviewNudgeSave ¶ added in v0.3.14
func (s *Service) ReviewNudgeSave(ctx context.Context, sessionID string, state caplearning.NudgeSessionState) error
func (*Service) ReviewSignalCandidates ¶ added in v0.3.14
ReviewSignalCandidates builds a digest block from dreaming short-term signals for background review.