openlens

openlens is a skill for Claude Code, Codex from Traves-Theberge/openlens. It costs 99 tokens per session (382 once invoked), scanned A, original, MIT.

A command-line code-review tool that uses several AI reviewers to inspect changes in a Git project. It reports possible security, bug, performance, and style problems with their file, line, severity, and confidence.

In plain words
What is it for?
Use it to review staged changes, unstaged changes, or differences from another branch. It can focus on security, skip verification, and return results as text or JSON.
Why use it?
It helps developers inspect staged, unstaged, or branch changes before merging. Reviewing different problem areas in parallel can reveal issues that a single pass might miss.

Skill for Claude CodeCodex

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 skills/traves-theberge/openlens/codex
Any agent
npx skills add Traves-Theberge/openlens --skill codex
Clone the repo
git clone --depth 1 https://github.com/Traves-Theberge/openlens

Made for: Claude Code, Codex.

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 openlens

README.md
[![agentmods](https://agentmods.dev/badge/skills/traves-theberge/openlens/codex.svg)](https://agentmods.dev/skills/traves-theberge/openlens/codex)
Your own site
<a href="https://agentmods.dev/skills/traves-theberge/openlens/codex"><img src="https://agentmods.dev/badge/skills/traves-theberge/openlens/codex.svg" alt="Measured on agentmods" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 382 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found 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.00099 $0.00382
Opus 5 $0.00049 $0.00191
Sonnet 5 $0.00020 $0.00076
Haiku 4.5 $0.00010 $0.00038

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

Security

Grade A, and why

openlens 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 5d 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.

plugins/codex/SKILL.md · 32 lines

What it actually says

How to run

Execute the openlens CLI to review code changes. The tool must be installed and available in PATH.

Default (staged changes)

openlens run --staged --format text

With user flags

  • "review against main" → openlens run --branch main --format text
  • "just check security" → openlens run --staged --agents security --format text
  • "review unstaged" → openlens run --unstaged --format text
  • "skip verification" → openlens run --staged --no-verify --format text
  • "json output" → openlens run --staged --format json

What it does

openlens runs multiple AI agents in parallel (security, bugs, performance, style) that analyze git diffs with full codebase access. Each agent investigates the code using read, grep, and glob tools before reporting issues with confidence levels.

Reading results

  • CRITICAL — must fix before merging
  • WARNING — should fix, potential problems
  • INFO — style or convention suggestions
  • Each issue includes file, line, severity, confidence, message, and suggested fix

Show the full output to the user. If issues are found, offer to help fix them.

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. 5d ago First seen · 32 lines · 99 tokens per session scan A e0e2eb88c260

Subscribe to this mod's changes

openlens is a skill published in the GitHub repository Traves-Theberge/openlens (6 stars, last pushed 5mo ago), licensed MIT. It adds 99 tokens to every session and 382 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.