codeql-generic-resolver

codeql-generic-resolver is an agent for Claude Code from dryvist/claude-code-plugins. It costs 45 tokens per session (1,834 once invoked), scanned A, original, Apache-2.0.

An assistant for investigating CodeQL security alerts that do not fit a small set of predefined categories. CodeQL is a code-scanning tool that reports possible security and reliability problems.

In plain words
What is it for?
Use it for alerts such as hardcoded passwords, unclosed resources, unsafe paths, and unsafe shell commands.
Why use it?
It organizes alert details, tries common fixes for known patterns, and sends unclear cases for human review.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is const filePath = `./uploads/${userInput}`; // User could pass "../../../etc/passwd".

Part of the codeql-resolver plugin — 2 skills, 1 command, 3 agents shipped together

Good fit Use it for alerts such as hardcoded passwords, unclosed resources, unsafe paths, and unsafe shell commands.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/dryvist/claude-code-plugins
agentmods
npx agentmods add agents/dryvist/claude-code-plugins/codeql-generic-resolver

Made for: Claude Code.

Or install codeql-resolver, the plugin that ships this one along with the rest of its 2 skills, 1 command, 3 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 codeql-generic-resolver

README.md
[![agentmods](https://agentmods.dev/badge/agents/dryvist/claude-code-plugins/codeql-generic-resolver/github.svg)](https://agentmods.dev/agents/dryvist/claude-code-plugins/codeql-generic-resolver)
Your own site
<a href="https://agentmods.dev/agents/dryvist/claude-code-plugins/codeql-generic-resolver"><img src="https://agentmods.dev/badge/agents/dryvist/claude-code-plugins/codeql-generic-resolver/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 codeql-generic-resolver

Your own site · 80×15
<a href="https://agentmods.dev/agents/dryvist/claude-code-plugins/codeql-generic-resolver"><img src="https://agentmods.dev/badge/agents/dryvist/claude-code-plugins/codeql-generic-resolver.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 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,834 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 2 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.00045 $0.01834
Opus 5.5 $0.00018 $0.00734
Sonnet 5.5 $0.00009 $0.00367
Haiku 4.5 $0.00005 $0.00183

Measured 23d ago against content hash a54b33baabbb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

codeql-generic-resolver scanned grade A with 2 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 23d 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.

Sends data to an external URLlowData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

response = requests.post("https://api.example.com", auth=("user", "password123"))

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

response = requests.post("https://api.example.com", auth=("user", "password123"))
codeql-resolver/agents/codeql-generic-resolver.md · 304 lines

How it starts

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

CodeQL Generic Resolver

Handle CodeQL alerts that don't fit the permissions or expression injection categories by analyzing, attempting common fixes, and escalating unclear cases.

When to invoke

  • Resource cleanup finding. A CodeQL alert identifies an unclosed resource; assess the context and apply the supported cleanup pattern when it matches.
  • Unfamiliar rule. A request supplies an alert with an unsupported rule ID; return the escalation summary with analysis and a recommendation for review.

Input

{
  "alerts": [
    {
      "number": 25,
      "rule": "py/hardcoded-credential",
      "location": "scripts/deploy.py",
      "line_number": 42,
      "message": "Password is hardcoded here"
    }
  ]
}

Supported Alert Types

Category Rules Common Fix
Hardcoded Credentials py/hardcoded-credential, js/hardcoded-credential, etc. Move to GitHub Secrets, use env vars
Resource Leaks py/resource-not-closed, js/uncaught-promise, etc. Add cleanup/finally blocks
Path Traversal py/sql-injection, js/path-traversal, etc. Validate input, use safe APIs
Unsafe Shell py/unsafe-shell, bash/dangerous-pipe, etc. Use set -euo pipefail, quote vars
Other Any unlisted rule Escalate for human review

Workflow per Alert

1. Parse Alert

Extract:

  • Rule ID/category
  • File location
  • Line number and context
  • Alert message (contains fix hint)

2. Categorize & Match Pattern

Compare rule against known patterns:

rule_id:
  py/hardcoded-credential
  js/hardcoded-credential
  → CATEGORY: Hardcoded Credentials

rule_id:
  py/sql-injection
  java/sql-injection
  → CATEGORY: Input Validation

rule_id:
  (anything else)
  → CATEGORY: Other / Escalate

3. Attempt Fix (if Pattern Matches)

Pattern A: Hardcoded Credentials

File: scripts/deploy.py:42

api_key = "EXAMPLE_ONLY"  # ALERT: Hardcoded credential placeholder

Read the full file on GitHub · 304 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. 23d ago Changed · +12 lines · +29 tokens per session scan B → A a54b33baabbb
  2. 1mo ago Changed · -1 lines a7fb738d0132
  3. 2mo ago Changed · +1 lines c48219417033
  4. 3mo ago First seen · 292 lines · 16 tokens per session scan B 11cbe4445e1d

Subscribe to this mod's changes

codeql-generic-resolver is an agent published in the GitHub repository dryvist/claude-code-plugins (3 stars, last pushed 14d ago), licensed Apache-2.0. It adds 45 tokens to every session and 1,834 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 2 findings (sends data to an external url, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

codeql-generic-resolver compared with agents from other repositories

codeql-generic-resolver next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
codeql-generic-resolverdryvist/claude-code-pluginsAgent314d agoApache-2.0A45Claude Code
monetization-experttravisjneuman/.claudeAgent115yesterdayMITA18Claude Code
security-reviewermyclaude-sh/myclaude-creator-engineAgent256d agoMITA33Claude Code
perf-theory-testercomposio-community/awesome-claude-pluginsAgent2.0k25d agononeA22Claude Code
qa-testerDevZonayed/MochiAgent327d agoMITA60Claude Code
memory-keeperDiablorosso67/multi-ai-memoryAgent46mo agoMITA116Claude Code
agent-organizerqdhenry/Claude-Command-SuiteAgent1.4k9mo agononeA66Claude Code