Local context compression for AI agents

Less to read.
Details within reach.

Pithio shortens the text and data your agents read from terminals, APIs, webpages, and connected tools. When an agent needs a detail, it can go back to the stored original.

What your agent readsExample test run

Original output84 lines

test sample::case_001 ... ok test sample::case_002 ... ok … test sample::reports_expired_session ... FAILED

Sent to the agent8 lines

test sample::case_001 ... ok 79 similar lines folded test sample::reports_expired_session ... FAILED
Runs locallyTool output stays inspectable

What Pithio can shorten.

Connect a coding agent, use the SDK in your own app, or bring in connected tools through the MCP gateway.

  • Terminals and repositories

    Test results, builds, compiler diagnostics, Git history, diffs, and file lists.

  • Tables and structured data

    JSON API responses, CSV and delimited tables, and YAML or TOML configs.

  • Logs and search

    Application logs, failed CI jobs, and code or text search matches.

  • Web and MCP results

    Fetched webpages, issue lists, search hits, database rows, and logs from connected MCP tools.

Find your workflow

Measured examples

More correct answers
with fewer tokens.

See how much less agents read and which details they could still find across frozen public workloads.

29% fewer input tokens

171 questions for Claude Haiku across 50 public GitHub API pages, CI logs, search results, and READMEs.

Mean input tokens per tool output

Original
39,775
With pithio
28,330

Correct answers

Original
86.5%
With pithio
91.8%

Use cases

Find your workflow.

Work through noisy command output

  • Find failing testsGet the test name and assertion out of a long run.
  • Read compiler diagnosticsFold repetitive messages and keep file and line references in view.
  • Review diffsReduce unchanged context around edits in long diffs.
  • Trace Git historyScan compact commit summaries before opening details.
  • Navigate large reposGroup long file lists by directory.
  • Follow search matchesGroup matches by file and query the stored results.

Investigate what broke

  • Triage CI failuresFind a failing job, step or test in a stored run log.
  • Investigate incidentsFold repeated log messages and look up a specific event.
  • Review infrastructure changesSkim repetitive resources in supported Terraform plans.
  • Review build outputFold routine steps in supported Docker or Gradle runs.
  • Inspect connector resultsWork through issue lists and search pages from a configured MCP client.
  • Verify what the agent sawCompare eligible original and shortened outputs locally.

Send less tool output to your model

  • Compact large JSON responsesTurn supported API records into compact tables or focused views.
  • Count and filter with SQLQuery supported stored JSON, CSV and delimited data.
  • Read log batchesFold repeated application log lines or query JSON Lines as records.
  • Extract readable web contentTurn fetched HTML into a Markdown view.
  • Retrieve a source excerptPage through the original result when an answer needs more context.
  • Add recovery to an agent loopUse the SDK with your supported client and dispatch recovery calls.

Evaluate pithio on your own workflows

  • Pilot on developer machinesRun the compression and local store on the machine that runs the integration.
  • Measure tool-result savingsReview local token totals and separate them from cost estimates.
  • Assess API usageUse the local proxy to measure supported Anthropic API traffic.
  • Audit stored outputsCheck whether shortened views meet their stated compression contract.

Get started with Pithio.

Install the CLI, then choose how to connect Pithio to your workflow.

  1. Install Pithio

    Install in one command on Windows, macOS, or Linux. No Rust needed.

    Install guide
  2. Connect your agent or app

See what your agent received.

Track token savings over time in Overview. Open Activity to compare a shortened tool result with its stored original.

Dashboard and recovery guide
Pithio dashboardSample dataView full size
Pithio Overview with token totals and a seven-day line chart comparing original tool output with the tokens the agent read.

Pithio dashboard · Sample data

Pithio Overview with token totals and a seven-day line chart comparing original tool output with the tokens the agent read.

Pithio on GitHub.

Read the source, see what’s new, and report issues in the public repository.

View source on GitHub