using-openlens

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

A guide for using openlens, an AI code-review tool that checks security, bugs, performance, and style in parallel against Git changes and the wider codebase.

In plain words
What is it for?
Use it to review code, scan for security issues, test a custom review agent, or set up openlens with project configuration, hooks, plugins, and continuous integration.
Why use it?
It explains which command to use for staged changes, unstaged changes, a branch, a quick security check, or testing one review agent.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; mentions Codex; mentions OpenCode.

Good fit Use it to review code, scan for security issues, test a custom review agent, or set up openlens with project configuration, hooks, plugins, and continuous integration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/traves-theberge/openlens/using-openlens
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.

Any agent
npx skills add Traves-Theberge/openlens --skill using-openlens
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 using-openlens

README.md
[![agentmods](https://agentmods.dev/badge/skills/traves-theberge/openlens/using-openlens/github.svg)](https://agentmods.dev/skills/traves-theberge/openlens/using-openlens)
Your own site
<a href="https://agentmods.dev/skills/traves-theberge/openlens/using-openlens"><img src="https://agentmods.dev/badge/skills/traves-theberge/openlens/using-openlens/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for using-openlens

Your own site · 80×15
<a href="https://agentmods.dev/skills/traves-theberge/openlens/using-openlens"><img src="https://agentmods.dev/badge/skills/traves-theberge/openlens/using-openlens.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,191 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00046 $0.01191
Opus 5 $0.00023 $0.00596
Sonnet 5 $0.00009 $0.00238
Haiku 4.5 $0.00005 $0.00119

Measured 9d ago against content hash 183444e4bf29, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

using-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 9d 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.

skills/using-openlens/SKILL.md · 152 lines

How it starts

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

What openlens is

openlens is an AI code review tool. It runs four agents (security, bugs, performance, style) in parallel against git diffs. Each agent reads the full codebase, not just the diff. Results include file, line, severity, confidence, and suggested fixes.

When to use which command

Someone asks you to review code:

openlens run --staged          # if they have staged changes
openlens run --unstaged        # if they have uncommitted changes
openlens run --branch main     # if they want to review a full branch

Pick based on what they have. If unsure, --staged is the default. Add --no-verify for speed (skips the false-positive filter).

Someone asks for a quick security check:

openlens run --staged --agents security --no-verify --no-context

Fast. Only runs the security agent. No full file context, no verification pass.

Someone wants to test a single agent they're building:

openlens agent test my-agent --staged --verbose

Someone wants to set up openlens in their project:

openlens setup        # interactive wizard: config, agents, hooks, plugins, CI/CD
openlens setup --yes  # accept all defaults, no prompts

Someone wants a dry run (no API calls):

openlens run --dry-run --staged

Shows which agents would run, which files changed, what settings are active. No model calls.

How to read the output

Each issue has:

  • severity: critical (must fix), warning (should fix), info (suggestion)
  • confidence: high, medium, low (how sure the agent is)
  • file:line: exact location
  • title: one-line summary
  • message: detailed explanation
  • fix: how to resolve it
  • patch: suggested diff (if available)

Exit codes matter:

  • 0 = no critical issues (or no issues at all)
  • 1 = critical issues found
  • 2 = runtime error (openlens itself failed)

What to do when issues are found

  1. Show the user the full output
  2. For critical issues: offer to fix them. Use the fix field and patch field as guidance
  3. For warnings: mention them but don't block. Ask if the user wants to address them
  4. For info: note them briefly. These are style suggestions, not problems

Read the full file on GitHub · 152 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. 9d ago First seen · 152 lines · 0 tokens per session scan A 183444e4bf29

Subscribe to this mod's changes

using-openlens is a skill published in the GitHub repository Traves-Theberge/openlens (6 stars, last pushed 5mo ago), licensed MIT. It adds 46 tokens to every session and 1,191 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

hunk-extensions

Maps the hunkdiff/extension authoring surface for Hunk, the terminal diff viewer — hiding or reordering reviewed files, docked panes, alternate file views, commands and key bindings, dialogs, workspace writes, themes, syntax languages, VCS backends, lifecycle events. Use when writing, debugging, or installing a Hunk…

modem-dev/hunk · 105 tokens

hunk-launch-video

Produces Hunk videos by driving the real TUI headlessly in a PTY, compositing captioned 1080p frames in Chromium, and encoding with ffmpeg. Use for feature demos, workflow explainers, announcements, launch videos, and full-release roundups.

modem-dev/hunk · 60 tokens

hunk-release

Prepares, publishes, verifies, and curates Hunk releases. Use for release metadata, benchmarks, tags, publishing, release videos, backports, or recovery.

modem-dev/hunk · 38 tokens

hunk-review

Interacts with live Hunk diff review sessions via CLI. Inspects review focus, navigates files, hunks, and exact lines, reloads session contents, adds inline review comments, and paints attention marks on character ranges. Use when the user has a Hunk session running or wants to review diffs interactively.

modem-dev/hunk · 69 tokens

shadow-verify

Dispatch a parallel adversarial verifier wave after any high-stakes sub-agent investigation (code reviews, audits, findings reports, large refactors, gap analyses) — or whenever a sub-agent asserts a claim with high-confidence language ("confident", "certain", "clearly", ≥80%), since confidence is a trigger, not a…

griffinwork40/agent-afk · 136 tokens

simplify

Discovers incidental complexity, duplication, and dead code in a codebase and produces a ranked, behavior-preserving reduction plan — optionally applying safe changes. Dispatches four parallel read-only discovery lenses (clone detection, dead code, complexity hotspots, wrong abstraction), synthesizes into a…

griffinwork40/agent-afk · 76 tokens