Skip to content

merge dev into master#329

Merged
Tarquinen merged 6 commits intomasterfrom
dev
Jan 30, 2026
Merged

merge dev into master#329
Tarquinen merged 6 commits intomasterfrom
dev

Conversation

@Tarquinen
Copy link
Collaborator

run garbage collection strategies on all tools, even protected. These strategies never have negative consequences
fix prunable tools injection system for kimi/deepseek models
prunable tools are no longer tool parts, should fix models thinking about the context_info tool

Tarquinen and others added 6 commits January 22, 2026 23:09
…rs strategies

Deduplication and purge-errors are hygiene strategies that are always
beneficial for context management - they don't lose information, they
just clean up redundancy and stale error inputs.

By defaulting protectedTools to empty arrays, these strategies now run
on all tools out of the box. Users can still configure protectedTools
if they want to protect specific tools from these strategies.
…cted-tools-for-hygiene-strategies

feat: default to empty protectedTools for deduplication and purgeErrors strategies
Apply injection system from beta to dev branch:
- Change createSyntheticAssistantMessage to use text parts (was tool parts)
- Add isDeepSeekOrKimi detection function
- Add createSyntheticToolPart for DeepSeek/Kimi special handling
- Update insertPruneToolContext with hybrid injection strategy:
  * DeepSeek/Kimi: append tool part to last assistant message
  * Other models: create new assistant message with text part
- Replace findLast with reverse for loop (ES2022 compatibility)
@Tarquinen Tarquinen enabled auto-merge January 30, 2026 00:46
@Tarquinen Tarquinen merged commit 31f6455 into master Jan 30, 2026
1 check passed
@Tarquinen Tarquinen deleted the dev branch January 30, 2026 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments