Skip to content

Conversation

@Tarquinen
Copy link
Collaborator

Summary

  • Refactor logging: Simplified to human-readable format, removed verbose debug logs
  • Improve log summary: Now shows pruned/candidates ratio and kept count
  • Add session statistics: Pruning notifications include cumulative session stats
  • Clean up: Removed redundant chat.params fetch wrapper, added direct janitor-shadow logging

Changes

  • Significant code reduction (-678 lines, +186 lines)
  • Enhanced observability with cleaner, more informative logging
  • Better session-level tracking of pruning operations

…bug logs

- Change log format from JSON to readable: TIMESTAMP LEVEL component: message | key=value
- Remove ~90% of DEBUG logs (tool caching, batch tracking, session details, etc.)
- Fix duplicate token calculation (was running tokenizer twice per cycle)
- Simplify final summary: 'Pruned X/Y tools (~Z tokens)' with optional breakdown
- Normalize LLM reasoning (strip newlines for single-line output)
- Remove unused imports and logger parameters from tokenizer
- Change denominator from total tools to available candidates (excludes protected)
- Add 'X kept' to show how many tool outputs remain unpruned
- Example: 'Pruned 5/5 tools, 0 kept (~4.2K tokens)'
@Tarquinen Tarquinen merged commit 21e2262 into master Nov 25, 2025
1 check passed
@Tarquinen Tarquinen deleted the release/v0.3.10 branch November 25, 2025 05:22
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.

2 participants