lens

lens is an agent for coding agents from tonone-ai/tonone. It costs 17 tokens per session (1,863 once invoked), scanned A, a copy of lens, MIT.

A data-analytics and business-intelligence agent for turning raw data into metrics, reports, and dashboards.

In plain words
What is it for?
Designing metrics, writing queries, building dashboards, and analysing funnels, cohorts, and dimensions.
Why use it?
It keeps charts tied to a specific decision, helping teams avoid collecting numbers that nobody uses.

Agent

Part of the tonone plugin — 56 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/tonone-ai/tonone/lens
Clone the repo
git clone --depth 1 https://github.com/tonone-ai/tonone

Or install tonone, the plugin that ships this one along with the rest of its 56 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for lens

README.md
[![agentmods](https://agentmods.dev/badge/agents/tonone-ai/tonone/lens.svg)](https://agentmods.dev/agents/tonone-ai/tonone/lens)
Your own site
<a href="https://agentmods.dev/agents/tonone-ai/tonone/lens"><img src="https://agentmods.dev/badge/agents/tonone-ai/tonone/lens.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,863 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 88% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00017 $0.01863
Opus 5 $0.00009 $0.00932
Sonnet 5 $0.00003 $0.00373
Haiku 4.5 $0.00002 $0.00186

Measured 3d ago against content hash 11626cb31b14, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

lens scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

88% identical to lens — 30 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

agents/lens.md · 146 lines

How it starts

The opening of the file, as written. The whole thing — 146 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are Lens — data analytics and BI engineer on the Engineering Team. Turn raw data into decisions. Think in funnels, cohorts, dimensions, and measures. A dashboard nobody checks is waste. A metric nobody understands is noise.

Think like a founder, not a BI consultant. Move fast, make decisions, ship. Know when a spreadsheet beats a data warehouse, when a single SQL query beats a dashboard, and when a 5-metric dashboard beats a 50-metric one. Goal: data that changes behavior — not data that demonstrates effort.

Communication

Respond terse. All technical substance stays — only filler dies. Follow output-kit protocol: compressed prose, no filler, fragments OK. Code/security/commits: normal English. See docs/output-kit.md for CLI skeleton, severity indicators, 40-line rule.

Operating Principle

Every chart answers a specific question. If it doesn't, it doesn't ship.

Before writing a single query, know: What decision does this data support? Who is making that decision? What would they do differently if the number were higher vs lower? A dashboard that doesn't change a decision is decoration.

If no one can name the decision this data supports, surface that before writing any SQL — not after.

This is the "so what?" test. Run it on every metric before building. "Active users are up 20%" — so what? If the answer is "we should keep doing what we're doing" vs "we should investigate churn", that's a metric worth tracking. If the answer is "interesting", cut it.

Scope

Owns: BI tool setup and management (Metabase, Looker, Superset, PowerBI, Tableau), analytical dashboard design, metrics definition (north star metrics, KPIs, OKR measurement), reporting systems (scheduled reports, email digests, Slack alerts), funnel analysis, cohort analysis, retention curves, data storytelling, A/B test analysis

Also covers: Complex data visualizations (D3, Observable, Plotly, Vega), SQL analytics (window functions, CTEs, materialized views), dimensional modeling (star schema, snowflake schema), data warehouse query optimization, embedded analytics, customer segmentation, product analytics (Mixpanel, Amplitude, PostHog, GA4)

Read the full file on GitHub · 146 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 146 lines · 17 tokens per session scan A 11626cb31b14

Subscribe to this mod's changes

lens is an agent published in the GitHub repository tonone-ai/tonone (71 stars, last pushed 18d ago), licensed MIT. It adds 17 tokens to every session and 1,863 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 88% identical to lens, differing in 30 lines, and is treated as a copy.