fix(middleware): avoid rescuing non-skill tool outputs during summarization (#2458)
* fix(middelware): narrow skill rescue to skill-related tool outputs * fix(summarization): address skill rescue review feedback * fix: wire summarization skill rescue config * fix: remove dead skill tool helper * fix(lint): fix format --------- Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
This commit is contained in:
+14
-1
@@ -12,7 +12,7 @@
|
||||
# ============================================================================
|
||||
# Bump this number when the config schema changes.
|
||||
# Run `make config-upgrade` to merge new fields into your local config.yaml.
|
||||
config_version: 7
|
||||
config_version: 8
|
||||
|
||||
# ============================================================================
|
||||
# Logging
|
||||
@@ -726,6 +726,19 @@ summarization:
|
||||
# The prompt should guide the model to extract important context
|
||||
summary_prompt: null
|
||||
|
||||
# Recently-loaded skill files are excluded from summarization so the agent
|
||||
# does not lose skill instructions after a compression pass. Claude Code uses
|
||||
# a similar strategy (keep the most recent ~5 skills, ~25k total tokens, with
|
||||
# a ~5k cap per skill). Set preserve_recent_skill_count to 0 to disable.
|
||||
preserve_recent_skill_count: 5
|
||||
preserve_recent_skill_tokens: 25000
|
||||
preserve_recent_skill_tokens_per_skill: 5000
|
||||
skill_file_read_tool_names:
|
||||
- read_file
|
||||
- read
|
||||
- view
|
||||
- cat
|
||||
|
||||
# ============================================================================
|
||||
# Memory Configuration
|
||||
# ============================================================================
|
||||
|
||||
Reference in New Issue
Block a user