diff --git a/REPL.md b/REPL.md index 80cb640..5e87d49 100644 --- a/REPL.md +++ b/REPL.md @@ -279,6 +279,8 @@ The following settings can be adjusted at runtime: | `enabled_skills` | string | Comma-separated list of enabled [skills](Skills) (e.g. `git-master,ai-slop-remover`); `null` clears the override | | `save_session` | boolean | Whether to auto-save sessions | | `compression_threshold` | integer | Token threshold for session compression | +| `compression_keep_last` | integer | Number of recent messages kept visible after compression; `0` (default) compresses all messages | +| `max_tool_result_chars` | integer | Maximum characters from a single tool result forwarded to the model; `0` or omitted disables the cap | | `max_output_tokens` | integer | Maximum output tokens for the current model | | `dry_run` | boolean | Enable/disable dry run mode | | `function_calling_support` | boolean | Enable/disable function calling | diff --git a/Sessions.md b/Sessions.md index 013cbab..5dca223 100644 --- a/Sessions.md +++ b/Sessions.md @@ -115,6 +115,8 @@ The following settings are available to customize the default behavior of sessio | `compression_threshold` | Defines the token count threshold at which Coyote will compress the session to save on the context length | | `summarization_prompt` | This is the prompt that is used to compress the session up to a given point when compression is triggered | | `summary_context_prompt` | This is the prompt that's used to add the summarized conversation generated by the `summarization_prompt` as context to the model | +| `compression_keep_last` | Number of the most recent messages to keep visible in the session after compression is triggered. Earlier messages are folded into the summary. `0` (the default) compresses all messages. | +| `max_tool_result_chars` | Caps the number of characters from any single tool result forwarded to the model. Results that exceed this limit are truncated and a notice is prepended. Useful for preventing large tool outputs from consuming context. `null` (the default) disables the cap. | ## Per-Session Settings In addition to the global settings above, individual sessions can override the following settings. These can be set