logic-lens

logic-lens is a plugin for Gemini CLI from hyhmrright/logic-lens. Its token cost is not measured, scanned A, original, MIT.

A code-review add-on that traces how code behaves across conditions, types, boundaries, and calls between functions. It looks for logic errors that can exist even when code is syntactically valid.

In plain words
What is it for?
Use it to review changes, locate likely logic problems, explain findings, compare behavior between versions, and identify broader issues across a codebase.
Why use it?
It helps find behavior and contract mistakes that ordinary syntax checks may not reveal, including edge cases and mismatched assumptions between functions.

Plugin for Gemini CLI

Written for Gemini CLI: a Gemini CLI extension manifest. Also seen: mentions Gemini CLI.

Good fit Use it to review changes, locate likely logic problems, explain findings, compare behavior between versions, and identify broader issues across a codebase.

Compare 6 plugins from other repositories ↓
Install with agentmods
npx agentmods add plugins/hyhmrright/logic-lens/gemini-extension
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.

Clone the repo
git clone --depth 1 https://github.com/hyhmrright/logic-lens

Made for: Gemini CLI.

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 logic-lens

README.md
[![agentmods](https://agentmods.dev/badge/plugins/hyhmrright/logic-lens/gemini-extension/github.svg)](https://agentmods.dev/plugins/hyhmrright/logic-lens/gemini-extension)
Your own site
<a href="https://agentmods.dev/plugins/hyhmrright/logic-lens/gemini-extension"><img src="https://agentmods.dev/badge/plugins/hyhmrright/logic-lens/gemini-extension/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 logic-lens

Your own site · 80×15
<a href="https://agentmods.dev/plugins/hyhmrright/logic-lens/gemini-extension"><img src="https://agentmods.dev/badge/plugins/hyhmrright/logic-lens/gemini-extension.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
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.
Security

Grade A, and why

logic-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 1mo ago.

The scan reads gemini-extension.json. This mod also ships 17 executable files (scripts/_defaults.sh, scripts/bump-version.py, scripts/command_bridge.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

gemini-extension.json · 78 lines

How it starts

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

{
  "name": "logic-lens",
  "version": "0.7.0",
  "description": "Logic-first code review using semi-formal execution tracing. Surfaces behavioral bugs, type contract breaches, boundary blindspots, and interprocedural semantic mismatches — the logic errors that cause production incidents in syntax-clean code.",
  "author": "hyhmrright",
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "https://github.com/hyhmrright/logic-lens.git"
  },
  "homepage": "https://github.com/hyhmrright/logic-lens",
  "keywords": ["logic", "code-review", "bug-detection", "execution-tracing", "static-analysis"],
  "contextFileName": "GEMINI.md",
  "engines": {
    "gemini": ">=0.30.0"
  },
  "contribution": {
    "skills": [
      {
        "id": "logic-review",
        "path": "skills/logic-review"
      },
      {
        "id": "logic-explain",
        "path": "skills/logic-explain"
      },
      {
        "id": "logic-diff",
        "path": "skills/logic-diff"
      },
      {
        "id": "logic-locate",
        "path": "skills/logic-locate"
      },
      {
        "id": "logic-health",
        "path": "skills/logic-health"
      },
      {
        "id": "logic-fix-all",
        "path": "skills/logic-fix-all"
      }
    ],
    "commands": [
      {
        "id": "logic-review",
        "description": "Logic bug review via semi-formal execution tracing with L1–L9 risk taxonomy",
        "path": "commands/logic-review.md"
      },
      {
        "id": "logic-explain",
        "description": "Step-by-step execution path explanation for any function or code block",
        "path": "commands/logic-explain.md"
      },
      {
        "id": "logic-diff",
        "description": "Semantic equivalence check between two code versions to surface behavioral regressions",
        "path": "commands/logic-diff.md"
      },
      {
        "id": "logic-locate",
        "description": "Fault localization from a failing test or runtime error back to the root cause",
        "path"

Read the full file on GitHub · 78 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. 1mo ago Changed 2fc89d20c288
  2. 2mo ago First seen · 78 lines scan A c6fda6f0d458

Subscribe to this mod's changes

logic-lens is a plugin published in the GitHub repository hyhmrright/logic-lens (25 stars, last pushed 1mo ago), licensed MIT. Its token cost is not measured: this kind of file is read by the harness, not the model. 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-10-01.

Related

logic-lens compared with plugins from other repositories

logic-lens next to 6 plugins from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
logic-lenshyhmrright/logic-lensPlugin251mo agoMITA—Gemini CLI
brooks-linthyhmrright/brooks-lintPlugin1.6kyesterdayMITA—Gemini CLI
harness-engineering-skillsstone16/harness-engineering-skillsPlugin332mo agoApache-2.0A—Claude Code
craftsmangul-labs/craftsman-marketplacePlugin128d agoMITA—Claude Code
brooks-linthyhmrright/brooks-lintPlugin1.6kyesterdayMITA—Claude Code
graph-it-livemagic5644/Graph-It-LivePlugin63yesterdayMITA—Claude Code
gerritGerritCodeReview/gerrit-mcp-serverPlugin246d agoApache-2.0A—Claude Code