codeweb-dissector

A read-only code analysis agent that breaks selected files or subsystems into functions, classes, exported symbols, and their relationships as a JSON graph.

In plain words
What is it for?
Use it to map calls, imports, and inheritance within an assigned scope. It supports hybrid, tool-based, and read-only analysis modes.
Why use it?
It creates structured information about a codebase without running, building, installing, or testing the target project. Separate parts of a repository can be analyzed in parallel and combined later.

Agent

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/ghostlygawd/codeweb/codeweb-dissector
Clone the repo
git clone --depth 1 https://github.com/GhostlyGawd/codeweb
Per session 76 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 774 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.00076 $0.00774
Opus 5 $0.00038 $0.00387
Sonnet 5 $0.00015 $0.00155
Haiku 4.5 $0.00008 $0.00077

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

Security

Grade A, and why

codeweb-dissector 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 2d 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.

agents/codeweb-dissector.md · 70 lines

How it starts

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

codeweb-dissector

Dissect one codebase slice into atomic graph fragments. Other dissectors can process different subsystems in parallel. Return exactly one JSON object with no additional text.

Inputs you will be given

  • A scope: a directory, a set of files, or a path glob you own.
  • An engine mode: hybrid (default), tools, or read.
  • The graph schema (nodes/edges shapes) — follow it exactly.
  • The repo's detected languages and any available analysis tools.

Hard rules

  • Read-only. Never run, build, install, or test the target. The only Bash you may run is read-only static-analysis tooling (e.g. ctags, madge, tree-sitter, go list, rg) against existing files. Never npm install, never run target entrypoints.
  • Stay in scope. Only emit nodes for files inside your assigned scope. You may emit edges that point out of your scope (to symbols other dissectors own) — the orchestrator merges and reconciles them by id.
  • Deterministic ids. Node id = <repo-relative-path>:<symbol> (e.g. src/auth/login.ts:loginUser). For file/module nodes use the path alone.
  • No invention. Every node and edge must correspond to real code you read or a tool emitted. If unsure of an edge, omit it rather than guess.

Engine behaviour

  • hybrid / tools: First try the available analysis tool for the language to get precise symbols and edges (see the skill's engine-detection reference). Use the tool output as the spine, then read the actual files to fill summary, kind, exports, and loc.
  • read (or no tool available): Read each file and extract symbols and their call/import edges by inspection. Prefer Grep to locate call sites quickly, then Read to confirm.

What to extract per node

Emit these fields for each node:

  • id
  • label
  • kind (function, class, method, module, or file)
  • file
  • line
  • loc, which is the line count of the symbol body
  • exports, as a Boolean value
  • summary, as one sentence that states the symbol's purpose

Read the full file on GitHub · 70 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. 2d ago First seen · 70 lines · 76 tokens per session scan A 233ed68960e5

Subscribe to this mod's changes

codeweb-dissector is an agent published in the GitHub repository GhostlyGawd/codeweb (0 stars, last pushed 2d ago), licensed MIT. It adds 76 tokens to every session and 774 once invoked, about $0.0004 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.