feat: compact TOON encoder, response caching, optional Semgrep pre-pass#10
Merged
Conversation
tusharshah21
commented
May 27, 2026
Owner
- Rewrote TOON as a tabular format (F:/C[N]{op,ln,code}: schema + CSV rows). ~45% smaller than the old per-chunk JSON, ~20% smaller than raw unified diff on a representative two-file diff. Context lines around changes are trimmed (configurable via CONTEXT_LINES, default 2).
- Encoder now operates at the file level so F: header is emitted once per file.
- Added LLM response cache keyed by SHA256(model, messages). Skips re-billing duplicate chunks within a job; toggle via ENABLE_CACHE (default on).
- Optional Semgrep pre-pass: when SEMGREP_RULES is set and semgrep is on PATH, findings are passed to Agent 1 as priors. Agent 1 still verifies before flagging to filter false positives.
- Fixer (Agent 2) now reads +/-15 lines of surrounding file context from the checked-out workspace when available, giving it imports and enclosing signatures for better fix accuracy.
- README: documented Ollama and GitHub Models as new free-provider options, added Semgrep section, replaced aspirational "50-70%" line with benchmarked numbers, documented new inputs.
- Bumped to 1.1.0 with CHANGELOG.
- Rewrote TOON as a tabular format (F:/C[N]{op,ln,code}: schema + CSV rows).
~45% smaller than the old per-chunk JSON, ~20% smaller than raw unified diff
on a representative two-file diff. Context lines around changes are trimmed
(configurable via CONTEXT_LINES, default 2).
- Encoder now operates at the file level so F: header is emitted once per file.
- Added LLM response cache keyed by SHA256(model, messages). Skips re-billing
duplicate chunks within a job; toggle via ENABLE_CACHE (default on).
- Optional Semgrep pre-pass: when SEMGREP_RULES is set and semgrep is on PATH,
findings are passed to Agent 1 as priors. Agent 1 still verifies before
flagging to filter false positives.
- Fixer (Agent 2) now reads +/-15 lines of surrounding file context from the
checked-out workspace when available, giving it imports and enclosing
signatures for better fix accuracy.
- README: documented Ollama and GitHub Models as new free-provider options,
added Semgrep section, replaced aspirational "50-70%" line with benchmarked
numbers, documented new inputs.
- Bumped to 1.1.0 with CHANGELOG.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.