Skip to content

itamaker/runlens

Repository files navigation

runlens

All Contributors

runlens is a Go CLI for analyzing JSONL traces from agent runs, tool calls, and evaluation loops.

It helps you spot failures, flaky paths, latency outliers, and token-heavy runs before they turn into production issues.

runlens social preview

Support

Buy Me A Coffee

Quickstart

Install

brew install itamaker/tap/runlens
You can also download binaries from GitHub Releases.

Current release archives:

  • macOS (Apple Silicon/arm64): runlens_0.2.0_darwin_arm64.tar.gz
  • macOS (Intel/x86_64): runlens_0.2.0_darwin_amd64.tar.gz
  • Linux (arm64): runlens_0.2.0_linux_arm64.tar.gz
  • Linux (x86_64): runlens_0.2.0_linux_amd64.tar.gz

Each archive contains a single executable: runlens.

First Run

Run:

runlens

This launches the interactive Bubble Tea terminal UI.

You can still use the direct command form:

runlens summary -input examples/run.jsonl

For a deeper diagnosis:

runlens diagnose -input examples/run.jsonl

Requirements

  • Go 1.22+

Run

go run .

Or run a direct command:

go run . summary -input examples/run.jsonl

Machine-readable output:

go run . summary -input examples/run.jsonl -json

Diagnostic report:

go run . diagnose -input examples/run.jsonl

Build From Source

make build
go build -o dist/runlens .

What It Does

  1. Parses JSONL event streams from agent or tool executions.
  2. Computes aggregate latency, success rate, and token totals.
  3. Produces per-tool summaries for failure analysis.
  4. Clusters recurring errors, surfaces flaky tools, and highlights latency outliers.
  5. Exports either human-readable output or JSON for automation.

Notes

  • examples/run.jsonl is a good shape reference for your own logs.
  • Maintainer release steps live in PUBLISHING.md.

Contributors ✨

Zhaoyang Jia
Zhaoyang Jia

License

MIT

About

Analyze agent and tool JSONL traces for failures, flaky paths, latency outliers, and token usage.

Topics

Resources

License

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Sponsor this project

  •  

Packages

 
 
 

Contributors