Documentation
¶
Overview ¶
This file implements the /memory slash command (US-011, FR-20, #484) that prints a colored report describing the persistent memory store and the infinite-context state: entry counts by scope, the current context window and auto-compaction trigger point, current context usage, and checkpoint status.
Unlike /status (which reads everything through cli.Host), /memory takes its inputs explicitly so both the REPL and the TUI can call it with the live memory store, which the Host contract does not expose.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunMemory ¶
func RunMemory(out io.Writer, store *memory.Store, memoryRoot, sessionID string, msgs agentcore.MessageList, contextWindow int, settings compaction.CompactionSettings)
RunMemory prints a colored multi-section report about persistent memory and infinite context to out. store may be nil (persistent memory disabled), in which case the memory-store section reports that state and the checkpoint / context sections still render from msgs and the checkpoint file.
func RunMemoryRecall ¶ added in v1.3.7
RunMemoryRecall handles `/memory recall [on|off]`. It reports the policy, or persists a change to config.toml and applies it to the running session's providers. handled is false when the argument is not a recall subcommand, so the caller falls through to the full report.
Types ¶
This section is empty.