claw-compactor icon indicating copy to clipboard operation
claw-compactor copied to clipboard

Feature idea: evaluate exact Markdown section selection before L1 cleanup

Open JonghunYu opened this issue 1 month ago • 0 comments

Feature Request

Problem

Claw Compactor already has Markdown cleanup and content routing. When a task explicitly names one Markdown section, selecting that complete section before compression may avoid unnecessary context. This is a hypothesis, not a demonstrated failure or a savings result in your pipeline.

Proposed Solution

Evaluate an opt-in companion recipe before adding dependencies.

I maintain Texio, an MIT-licensed early-preview CLI. It reads and replaces Markdown by parsed heading structure and refuses missing or ambiguous names.

On a disposable README with Texio 0.1.3 installed:

texio section README.md Installation
texio replace README.md --section Installation --from body.md --dry-run

body.md is the desired complete section body, including any nested subsections to retain. The preview does not write. Installation and platform limits.

Would you consider one real task comparing the existing workflow with this optional recipe? Measure total task tokens/cache effects, correctness, retries and setup overhead. Savings in this integration are unmeasured. A native solution or no added tool may be preferable. I can help prepare a bounded comparison before any implementation PR.

Alternatives Considered

Existing L1 cleanup, a native parser, and normal targeted reads.

Compression Layer Context

Optional input selection before L1 Markdown cleanup; no modification to other layers proposed.

Additional Context

This is an evaluation request, not a measured pipeline saving.

JonghunYu avatar Nov 02 '26 05:11 JonghunYu