/oss · 2 merged

headroomlabs-ai/headroom

Shrinks tool output, logs and files before they reach an AI model, so coding agents use fewer tokens.

the project on GitHub (opens in a new tab)
  1. 5 Nov 2026

    Shortened diffs keep their line numbers right

    What was broken
    When shrinking a diff, the tool cut context lines but kept the old line numbers in each section's heading, so every line read off it was in the wrong place.
    What I changed
    Each trimmed section is now split at its gaps and gets a new heading worked out from what is left.
    Why it matters
    An AI agent or patch tool using the short diff edits the right lines.

    see the code, #4319 (opens in a new tab)

  2. 4 Nov 2026

    Merge diffs keep changes made against the second parent

    What was broken
    When shrinking a merge diff, changes made against a later parent were treated as plain context and could be cut away.
    What I changed
    Each line is now judged by all of its parent columns. Ordinary diffs behave as before.
    Why it matters
    An AI agent reading a shortened merge diff still sees every change.

    see the code, #4318 (opens in a new tab)

← every project