pwn-ai-agent-dispatch

A tool-call dispatcher that receives a structured request, finds the matching registered tool, runs it and returns a JSON result. It also repairs some common mistakes made by local language models, such as slightly wrong tool names or loose JSON.

In plain words
What is it for?
Use it as the routing layer between a language model and registered tools, especially when model output may contain misspelled names, trailing commas, single quotes or bare arguments.
Why use it?
It prevents minor formatting errors from wasting an extra model turn or stopping a tool call before the intended tool runs.

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/0dayinc/pwn/dispatch
Any agent
npx skills add 0dayInc/pwn --skill dispatch
Clone the repo
git clone --depth 1 https://github.com/0dayInc/pwn

Made for: Claude Code, Codex.

Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 480 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.00021 $0.00480
Opus 5 $0.00010 $0.00240
Sonnet 5 $0.00004 $0.00096
Haiku 4.5 $0.00002 $0.00048

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

Security

Grade A, and why

pwn-ai-agent-dispatch 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.

etc/default_skills/pwn/ai/agent/dispatch/SKILL.md · 51 lines

What it actually says

PWN::AI::Agent::Dispatch

Tool-call dispatch: takes a single tool_call object (OpenAI shape), looks up the registered handler, parses args, runs it, and returns a JSON string suitable for a role:'tool' message. TOLERANT DISPATCH (local-model scaffolding) ------------------------------------------- Local models running on Ollama frequently emit almost- right tool calls: run_shell instead of shell, trailing commas, single-quoted JSON, arguments as a bare string. Strict parsing burns an iteration and often spirals. Dispatch now: * repair_name — Levenshtein-matches unknown names to the closest registered tool and records a Mistakes fingerprint (source: :repair) so the KNOWN MISTAKES block eventually teaches the model the right name. * parse_args — falls back to a JSON5-ish clean-up pass (strip trailing commas, swap single→double quotes, wrap a bare scalar as the tool's sole required arg). Frontier engines never hit these paths — repair is a no-op when the name/JSON are already valid.

When to use

Call PWN::AI::Agent::Dispatch from pwn_eval when the task needs this module. Do not reimplement it in shell.

Methodologies

Generated from pwn/ai/agent/dispatch.rb. Prefer the public class methods below. Class methods take (opts = {}) and read opts.

How to call

PWN::AI::Agent::Dispatch.help
PWN::AI::Agent::Dispatch.call(opts)

Public methods

  • call
  • repair_name
  • tool_calls_from_text
  • effect
  • authors
  • help

Source

pwn/ai/agent/dispatch.rb

Verification

PWN::AI::Agent::Dispatch.respond_to?(:call) after the module is loaded. Read the source for parameter names.

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 · 51 lines · 21 tokens per session scan A 2fb549a6eacc

Subscribe to this mod's changes

pwn-ai-agent-dispatch is a skill published in the GitHub repository 0dayInc/pwn (76 stars, last pushed 4d ago), licensed MIT. It adds 21 tokens to every session and 480 once invoked, about $0.0001 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-30.

Related

Other skills, from other repositories

analyzing-linux-elf-malware

Analyze malicious Linux ELF binaries — botnets, cryptominers, ransomware, and rootkits targeting Linux servers, containers, and cloud infrastructure — through static analysis, dynamic tracing, and reverse engineering of x8664 and ARM samples. Use when investigating Linux malware, triaging a suspicious ELF binary…

mukul975/Anthropic-Cybersecurity-Skills · 82 tokens

osmedeus-expert

Expert guide for the Osmedeus security automation workflow engine. Use when: (1) writing or editing YAML workflows (modules and flows), (2) running osmedeus CLI commands (scan, workflow management, installation, server), (3) configuring steps, runners, triggers, or template variables, (4) debugging workflow execution…

j3ssie/osmedeus · 113 tokens

writing-great-skills

Reference for writing and editing skills well — the vocabulary and principles that make a skill predictable.

GreyDGL/PentestGPT · 24 tokens

performing-jwt-none-algorithm-attack

Execute and test the JWT none algorithm attack to bypass signature verification by manipulating the alg header field in JSON Web Tokens.

xalgorix/xalgorix · 34 tokens

performing-ai-assisted-vulnerability-discovery

Using LLMs to accelerate vulnerability research and pentest workflows — generating syntax-valid fuzzing seeds and evolving grammars, fine-tuned mutation dictionaries, parallel agent-based proof-of-vulnerability generation, and evidence-driven passive analysis of real HTTP traffic via the Burp MCP server. Covers…

xalgorix/xalgorix · 91 tokens

ask-matt

Ask which skill or flow fits your situation. A router over the user-invoked skills in this repo.

GreyDGL/PentestGPT · 26 tokens