Skip to main content

Compact Memory Node

Dynamic memory with compression that automatically manages context window limits by compressing old messages while preserving important information.

Inputs

LabelPropertyTypeDescriptionDefault ValueIs Required
Storagestoragebotdojo/interface/storageOptional storage interface for saving tool outputs to filesnull

Properties

LabelPropertyTypeDescriptionDefault ValueIs Required
Memory KeymemoryKeybotdojo/types/stringcompact_memory
Max Context Window (tokens)maxContextWindowbotdojo/types/numberMaximum number of tokens allowed in context window (optional - defaults to value set by setMaxContextWindow or 32000)null
Compression PercentagecompressPercentagebotdojo/types/numberStart compression when memory exceeds this percentage of max context window (0.0-1.0)0.7
Max Default Window (chars)maxDefaultWindowbotdojo/types/numberCharacter window size for compression (compressed messages show first/last N/2 chars)1000
Enable Token CountingenableTokenCountingbotdojo/types/booleanUse accurate token counting vs character-based estimationtrue
Min Messages to CompressminMessagesToCompressbotdojo/types/numberMinimum number of messages required before compression begins5
Compression Preservation RatiocompressionPreservationRatiobotdojo/types/numberRatio of original content to preserve when compressing (0.0-1.0)0.3
Max Tool Output CharsmaxToolOutputCharsbotdojo/types/numberAutomatically compress tool outputs longer than this many characters2000

Output

LabelPropertyTypeDescriptionDefault Value
Memorymemorybotdojo/interface/memoryCompact memory with dynamic compressionnull
Model ContextmodelContextbotdojo/interface/model_contextCompact memory management model context with MCP toolsnull