vllm-reasoning-parsers

vllm-reasoning-parsers is a skill for Claude Code from air-gapped/skills. It costs 121 tokens per session (6,212 once invoked), scanned A, original, MIT.

A guide to parsers that separate a reasoning model's private thinking from its final answer in a chat response. A reasoning model produces both streams together, and the parser puts them into separate response fields.

In plain words
What is it for?
Use it to select or build a vLLM reasoning parser and connect it correctly to chat clients and structured-output checks.
Why use it?
Without the right parser, thinking text can appear as the user-facing answer, and clients may read the wrong field.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter.

Part of the vllm plugin — 16 skills shipped together

Good fit Use it to select or build a vLLM reasoning parser and connect it correctly to chat clients and structured-output checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/air-gapped/skills/vllm-reasoning-parsers
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 air-gapped/skills --skill vllm-reasoning-parsers
Clone the repo
git clone --depth 1 https://github.com/air-gapped/skills

Made for: Claude Code.

Or install vllm, the plugin that ships this one along with the rest of its 16 skills.

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 vllm-reasoning-parsers

README.md
[![agentmods](https://agentmods.dev/badge/skills/air-gapped/skills/vllm-reasoning-parsers/github.svg)](https://agentmods.dev/skills/air-gapped/skills/vllm-reasoning-parsers)
Your own site
<a href="https://agentmods.dev/skills/air-gapped/skills/vllm-reasoning-parsers"><img src="https://agentmods.dev/badge/skills/air-gapped/skills/vllm-reasoning-parsers/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 vllm-reasoning-parsers

Your own site · 80×15
<a href="https://agentmods.dev/skills/air-gapped/skills/vllm-reasoning-parsers"><img src="https://agentmods.dev/badge/skills/air-gapped/skills/vllm-reasoning-parsers.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 121 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,212 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.00121 $0.06212
Opus 5.5 $0.00048 $0.02485
Sonnet 5.5 $0.00024 $0.01242
Haiku 4.5 $0.00012 $0.00621

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

Security

Grade A, and why

vllm-reasoning-parsers 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 6d 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.

.claude/skills/vllm-reasoning-parsers/SKILL.md · 191 lines

How it starts

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

vLLM reasoning parsers

Target: operators wiring up --reasoning-parser NAME on a chat-completion endpoint, or developers authoring a parser for a new thinking model. Source of truth: vllm/reasoning/ on main.

What a reasoning parser actually does

When a reasoning-trained model emits a single token stream like

<think>user asked X, let me check Y...</think>The answer is 42.

vLLM splits this into two fields on the chat-completion response: reasoning (the CoT) and content (the final answer). --reasoning-parser NAME selects the class that does the split. Without it, the whole stream lands in content.

Field-name note. The response field is reasoning (ChatMessage.reasoning in vllm/entrypoints/openai/chat_completion/protocol.py, DeltaMessage.reasoning in vllm/entrypoints/generate/base/protocol.py). reasoning_content was removed from the output in v0.16.0 (#33402, merge c5113f60), and v0.28.0 documents the result as a breaking client change (#50624). Many third-party docs and clients still call it reasoning_content. The asymmetry is the trap: input still accepts the old name and normalizes it, output never emits it. So a request looks fine and a client reading reasoning_content off the response sees null every time, with no error, even when the parser ran correctly. Serving v0.16.0 or newer, read reasoning.

The parser is also the gating authority for xgrammar / structured output: by default, grammar enforcement is held off until is_reasoning_end(input_ids) flips true, so the model thinks freely before being constrained to JSON. Flip that default with --structured-outputs-config.enable_in_reasoning=true — then the grammar applies from token 0 regardless of reasoning state (useful for structured CoT).

The contract (ReasoningParser ABC)

vllm/reasoning/abs_reasoning_parsers.py. Every parser implements:

Read the full file on GitHub · 191 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. 6d ago Changed · +1 lines 720869ef8c05
  2. 21d ago Changed · +3 lines 5f5bd75ec1e2
  3. 1mo ago Changed · +7 lines 6531b3102bb0
  4. 1mo ago Changed · +5 lines · -16 tokens per session ffdd6b42f20d
  5. 2mo ago Changed · +2 lines 207dcec90bd8
  6. 2mo ago Changed · +4 lines · +10 tokens per session 02ffa2ef6826
  7. 2mo ago Changed · +14 tokens per session 0f98562ea9de
  8. 2mo ago First seen · 169 lines · 113 tokens per session scan A c6a2d4eb5c75

Subscribe to this mod's changes

vllm-reasoning-parsers is a skill published in the GitHub repository air-gapped/skills (8 stars, last pushed 6d ago), licensed MIT. It adds 121 tokens to every session and 6,212 once invoked, about $0.0005 per session on Opus 5.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-09-03.

Related

vllm-reasoning-parsers compared with skills from other repositories

vllm-reasoning-parsers next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
vllm-reasoning-parsersair-gapped/skillsSkill86d agoMITA121Claude Code
serving-llms-vllmNousResearch/hermes-agentSkill267ktodayMITA27Claude Code, Codex
omni-inferencediegosouzapw/OmniRouteSkill91k2d agoMITA47Claude Code, Codex
gemini-live-api-devasgeirtj/system_prompts_leaksSkill74k2d agoCC0-1.0A110Claude Code, Codex
inference-serving-sglangdavila7/claude-code-templatesSkill35ktodayMITA76Claude Code, Codex
gemini-api-agent-platformdavila7/claude-code-templatesSkill35ktodayMITA61Claude Code, Codex
liter-llm-running-the-proxyxberg-io/liter-llmSkill269todayMITA45Claude Code