Use case · Workflow automation

Every tool call
becomes model input.

LeanCTX normalizes, compresses and audits the tool output your automations feed to models: 95+ shell patterns, provider connectors for GitHub, GitLab, Jira and Postgres, composable context via ctx_compose, and a complete audit trail. Pipelines get cheaper, deterministic and reviewable.

The problem

What it costs you today.

01

CI logs torch your budget

A failing pipeline dumps megabytes of logs into your triage agent. The signal is three lines; you pay for all of them.

02

Each integration is bespoke

Jira here, GitHub there, a database somewhere. Every workflow glues its own fetch-and-paste code with no shared layer.

03

Nobody can audit what agents saw

When an automation acts on stale or wrong context, you need to know exactly what it read. Most stacks can’t answer that.

Shipped today

The capabilities that do the work.

Everything below ships in the open-source binary today. No roadmap items, no waitlists.

Your tools LeanCTX Model
95+ shell patterns cargo, npm, docker, terraform, pytest… 88–99% smaller output
Provider pipeline GitHub, GitLab, Jira, Postgres and REST sources, one consolidation path
ctx_compose assemble task-scoped context packs deterministically
Audit trail every read, command and saving is recorded locally
Budgets per-role token budgets keep pipelines inside limits
Quickstart

From zero to first gain.

# compress any command in a pipeline
$ lean-ctx -c "npm test"
# works for builds, containers, terraform…
$ lean-ctx -c "docker compose up --build"
# review what your automation consumed and saved
$ lean-ctx savings summary
# reproducible savings + recall + latency scorecard
$ lean-ctx benchmark scorecard
FAQ

Questions teams ask before adopting.

How much smaller does shell output get?

88–99% on common tools: a cargo build shrinks from hundreds of lines to errors plus result, npm install to the dependency delta. 95+ patterns ship today, and unknown commands fall back to safe generic compression.

Can LeanCTX pull context from our internal systems?

Yes. Providers for GitHub, GitLab, Jira and Postgres ship today, plus a custom REST provider. All provider data flows through the same consolidation pipeline into search, graph and knowledge.

Is automation output auditable?

Every read, command and saving lands in a local, Ed25519-signed ledger. You can export exactly what an automation consumed and verify the chain.

Take back control of your context.

Free for local use, forever. CI enforces it. One binary, ten minutes to the first measured gain.