Skip to main content

4 posts tagged with "lens"

View All Tags

Introducing Lens CLI: evaluate your agent's model and harness

Ishaan Jaffer
CTO, LiteLLM

Lens CLI

Evaluate models, harnesses, and custom agents on your own tasks.

Saved evaluation24 sample tasks × 12 configurations · 288 attempts
⏺ RecommendationClaude Agent SDK + gpt-5.4-mini24 / 24 passed · $0.0249 estimated total cost

▍ Results 12 / 12 rows

#HarnessModelPassFailErrEst. cost$/passP50
✻ Claude Agent SDK◎ gpt-5.4-mini100.0%00$0.0249$0.00101.7s
◎ OpenAI Agents◎ gpt-5.5100.0%00$0.0687$0.00292.3s
✻ Claude Agent SDK◎ gpt-5.5100.0%00$0.1260$0.00532.8s
⬡ Deep Agents◎ gpt-5.5100.0%00$0.3795$0.01582.4s
⬡ Deep Agents◎ gpt-5.4-mini95.8%10$0.0715$0.00311.5s
✻ Claude Agent SDK✻ claude-sonnet-5-595.8%10$0.0765$0.00331.8s
⬡ Deep Agents✻ claude-sonnet-5-595.8%10$0.2750$0.01201.5s
◎ OpenAI Agents◎ gpt-5.4-mini91.7%20$0.0088$0.00041.4s
◎ OpenAI Agents✻ claude-opus-5-591.7%20$0.1035$0.00471.4s
⬡ Deep Agents✻ claude-opus-5-591.7%20$0.5531$0.02511.4s
◎ OpenAI Agents✻ claude-sonnet-5-583.3%40$0.0517$0.00261.9s
✻ Claude Agent SDK✻ claude-opus-5-550.0%120$0.1778$0.01482.1s

▍ Cost vs quality

Select a saved configuration to inspect its pass rate and estimated cost. The cost axis is logarithmic.Pass rate70%80%90%100%$0.01$0.03$0.10$0.30$0.6011. OpenAI Agents, claude-sonnet-5-5: 83.3%, $0.0517 estimated total cost10. Deep Agents, claude-opus-5-5: 91.7%, $0.5531 estimated total cost9. OpenAI Agents, claude-opus-5-5: 91.7%, $0.1035 estimated total cost8. OpenAI Agents, gpt-5.4-mini: 91.7%, $0.0088 estimated total cost7. Deep Agents, claude-sonnet-5-5: 95.8%, $0.2750 estimated total cost6. Claude Agent SDK, claude-sonnet-5-5: 95.8%, $0.0765 estimated total cost5. Deep Agents, gpt-5.4-mini: 95.8%, $0.0715 estimated total cost4. Deep Agents, gpt-5.5: 100.0%, $0.3795 estimated total cost43. Claude Agent SDK, gpt-5.5: 100.0%, $0.1260 estimated total cost32. OpenAI Agents, gpt-5.5: 100.0%, $0.0687 estimated total cost21. Claude Agent SDK, gpt-5.4-mini: 100.0%, $0.0249 estimated total cost1Estimated total cost (USD, log)

Select a row or point to inspect the configuration.

✻ Claude Agent SDKgpt-5.4-mini100.0% pass · $0.0249 estimated cost · p50 1.7s
263 pass · 25 fail · 0 errorsSaved sample · full report below
Saved-report replay, revealed in rank order. Costs are token-based estimates.

Before, you had to write the eval loop, create temporary workspaces and collect the results in a spreadsheet. Then you changed the model or harness and repeated the work.

Which model and harness should you use for a given task? Lens CLI lets you run the same tasks through your agents and compare the results in one terminal report.

This is for developers building agents who want to evaluate models, harnesses, and their own agent code on the work their users need done.

Lens Profiles: Turn Production Traffic Into Task-Level Model Evals

Joshua Valluru
SWE, LiteLLM

Understand the work. Find the cost drivers. Evaluate the models that serve it.

Your coding agent fixes tests, implements features, and compares designs. Each task puts different demands on the model. Knowing which tasks dominate your traffic and spend helps you decide where a model change would have the greatest impact.

The revised Lens Profiles discovers those tasks automatically from production traffic. It connects each category to gateway-recorded costs, shows how model deployments compare, and takes you directly to the runs behind the numbers. You get a workload-specific starting point for optimization and model evals.

How LiteLLM Lens finds repeated failures across 1,000s of agent traces

Moe Khalil
AI Product Engineer, LiteLLM

A research agent can finish a report after reading the first 8,000 characters of each page. If its web tool cuts off a source and the agent fills in the gaps, you get a completed run with unsupported claims.

Across thousands of runs, you need to find the affected sessions and what they have in common. LiteLLM Lens uses agents to do that work.

Here's how it works behind the scenes: reviewers inspect executions in parallel, grouping agents connect related observations, and investigators check each candidate pattern against the original traces.

Launching LiteLLM Lens

Ishaan Jaffer
CTO, LiteLLM
Moe Khalil
AI Product Engineer, LiteLLM
Tin Lo
AI Product Engineer, LiteLLM
Yujong Lee
Senior SWE, LiteLLM
October 1, 2026

LiteLLM Lens

Agent swarms200K+ traces from every agent
LiteLLM gatewayevery call, one chokepoint
Lensinsight flows back to your agents

The gateway that helps your agents improve

  1. [1]The agentic swarm developer
  2. [2]The problem
  3. [3]Our solution
  4. [4]Launch partners
  5. [5]Get started
Published:
Ishaan JafferCTO, LiteLLMMoe KhalilAI Product Engineer, LiteLLMTin LoAI Product Engineer, LiteLLMYujong LeeSenior SWE, LiteLLM

Today we're launching LiteLLM Lens. Tell Lens what to look for in your agents, let it analyze your traces, then read the findings and go deeper into any trace

The agentic swarm developer​

We're building for a future where developers run agentic swarms: hundreds of agents working in parallel, each one making LLM and tool calls, together generating 200K+ traces

LiteLLM is already the chokepoint for 100% of your enterprise's AI traffic, so every one of those calls already flows through the gateway