Build logs and project context for AI agents

Compiler and test output is long and repetitive. TokenKit reduces it to each error with its file, line and source line, groups the warnings, and keeps the line that says how the run ended.

A 3,000-line build log, down to the errors that matter.

Build and test output

Works on Swift, clang, TypeScript, Rust and pytest output: each error once, with its file, line and source line.

Logs

Error lines grouped with counts and first-occurrence line numbers; a 140 MB log is scanned in about a second.

Project map

Languages with line counts, key files, top folders and largest sources, in one answer.

Selective reading

The outline of a source file with line numbers, a range of lines, or what changed since the last look.

Ask your agent

  • “The build failed. What are the errors?”
  • “Give me a map of this repository.”
  • “What changed in src/ since you last looked?”

Examples of requests. Your agent chooses what to call; nothing in the request needs to mention TokenKit.

What it covers

Build and test outputLogsProject mapSelective reading

Works in the app and through your agent, inside the folders you allow. Originals are never changed.

What we measured

Real build and test output passed through the filter kept 3% to 22% of its size in our samples. With agents, this category showed no saving in turns or tokens against a plain grep: we report it as a convenience, not a measured gain. Benchmarks.

Where it stops

  • No measured benefit over an agent that already filters logs well.
  • Outlines are pattern-based, not a full parser.