compaction-tuner

Analyzes CDP and XHR logs to detect AJAX-driven SPA navigation and trigger re-*init* of page-ready events for accurate DOM timing measurements.

Updated Apr 5, 2026
One-click install
npx skills add https://github.com/Lsogod/compaction-debugger --skill compaction-tuner
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: compaction-tuner
Source: https://github.com/Lsogod/compaction-debugger/tree/main/skills/compaction-tuner
Command: npx skills add https://github.com/Lsogod/compaction-debugger --skill compaction-tuner

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

本技能基于日志和用户目标,为 compaction-debugger 提供参数调优建议,帮助在省 token 与保留上下文之间取得平衡。

Core Features & Use Cases

  • 根据日志分析给出参数调优建议,覆盖 keepRecentMessages、summaryCharBudget、maxSummaryBullets 等核心参数
  • 提供从保守到激进的调优策略,帮助用户逐步提升稳定性和省 token 能力
  • 为日常使用场景给出默认配置并解释每项参数的取值原因

Quick Start

给出一套适用于日常对话的保守调参配置,并解释每个参数的理由

Frequently Asked Questions about compaction-tuner

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I tune compaction parameters to reduce token usage without losing context?

Tune compaction parameters by analyzing conversation logs and user goals to adjust values like keepRecentMessages and summaryCharBudget, balancing token savings with essential context retention. The skill outputs recommended configurations with rationales.

What is the best way to stop over-compression in long conversation logs?

Preventing over-compression in long logs involves adjusting maxSummaryBullets and summaryCharBudget based on log analysis. The skill provides tuning strategies ranging from conservative to aggressive to maintain stability across varying conversation lengths.

How do I configure keepRecentMessages and maxSummaryEntries for daily conversations?

Configure keepRecentMessages and maxSummaryEntries by starting with a conservative tuning setup for daily conversations. The skill provides a default quick-start configuration and explains the rationale behind each parameter's value to ensure stability.

Can I drop old tool messages and trivial assistant messages to save tokens?

Yes, you can save tokens by enabling dropOldToolMessages and dropTrivialAssistantMessages. The skill evaluates your logs to recommend whether dropping these specific message types suits your context retention goals.

What parameters can I adjust for compaction-debugger log analysis?

Adjustable parameters for compaction-debugger log analysis include keepRecentMessages, maxSummaryEntries, summaryCharBudget, maxSummaryBullets, dropOldToolMessages, and dropTrivialAssistantMessages.

When should I use aggressive compaction tuning strategies instead of conservative ones?

Use aggressive compaction tuning strategies when maximizing token savings is the priority and minor context loss is acceptable, whereas conservative strategies suit scenarios requiring strict long-term stability and context preservation across varying conversation lengths.