| Memory Key | memoryKey | botdojo/types/string | | agent_memory | |
| Max Context Window (tokens) | maxContextWindow | botdojo/types/number | Maximum tokens before pruning oldest messages | 128000 | |
| Model Context Window % | modelContextWindowPercent | botdojo/types/number | Limit context to this fraction of the model max (0.0-1.0). Effective limit uses the lower value between this cap and Max Context Window. | 0.9 | ✅ |
| Compress Percentage | compressPercentage | botdojo/types/number | Start compressing older messages at this fraction of the context window (0.0-1.0) | 0.8 | ✅ |
| Compression Window (chars) | maxDefaultWindow | botdojo/types/number | Characters preserved on each side when compressing a message (middle is truncated) | 1000 | ✅ |
| Max Tool Output (chars) | maxToolOutputChars | botdojo/types/number | Auto-compress tool outputs exceeding this character limit on ingest | 5000 | ✅ |
| Enable Token Counting | enableTokenCounting | botdojo/types/boolean | Use tiktoken for accurate token counts (false = char/4 estimate, faster but less precise) | false | ✅ |