lauren-framework/lauren-ai/inspecting-streams
Claude Code and agent skill by lauren-framework/lauren-ai
- community
Checking that the SKILL.md file is still in the repository.
Inspects the raw token stream a real LLM emits for a given system + user prompt, with chunk boundaries preserved. Use when debugging dense / unformatted model output (run-on text, missing newlines, glued-on emoji), validating that a system-prompt change produces the markdown structure you expected, or comparing two prompts / models side-by-side without spinning up the agentic loop or any tools.
Install
npx vskill@latest install lauren-framework/lauren-ai/inspecting-streamsSKILL.md
The same SKILL.md was published earlier as lauren-framework/lauren-ai/inspecting-streams.
Usecodemap find "SymbolName"to locate any symbol before reading — it givesexact file + line range and is faster than grep across the whole repo.
Inspecting LLM Streams
When to use
You added a "use blank lines between paragraphs" directive to your agent's system prompt and want proof the model now emits \n\n between sentences. You have a chat UI that renders messages as run-on text and you suspect the model itself is the source rather than the renderer. You want to compare how two models (Claude 3.5 Sonnet vs. a free open-source model) handle the same prompt structurally.
In all these cases you want the raw token deltas from the transport, not an aggregated Completion object — chunk boundaries reveal what the model actually emitted versus what your wire format / parser preserved.
What it does
inspect_stream.py calls a transport's complete(..., stream=True) directly, prints each chunk.delta with repr() (so \n shows explicitly), then prints the full accumulated text and a count of newlines. No agent loop, no tool calls, no SSE framing — just LLM input → LLM output.
Running the script
Or import the helper into a one-off REPL session:
Interpreting the output
- `'\\n\\n'` between chunks → the model is emitting paragraph breaks.
Renderer should produce real paragraphs.
- `' '` (single space) where you expected `'\\n'` → the model is
treating the boundary as a soft break. Either tighten the system prompt's formatting directive or accept the result.
- `-` followed immediately by content with no preceding `'\\n'` →
the model is jamming list items onto the same line as the heading. System-prompt fix: show a concrete bullet-list example.
- Trailing `' \\n'` (two spaces + newline) → CommonMark hard line
break. GFM renders this as <br>; harmless but worth noting.
Why bypass the agent loop
The agentic loop adds tool execution, hooks, signal emission, and sometimes a follow-up turn. When you only want to know "what does this model emit for this exact prompt", those layers obscure the picture. This skill reaches past AgentRunner.run_stream straight to Transport.complete(..., stream=True) for the cleanest signal.
Anti-patterns
- Don't use this to test agent behaviour end-to-end. Use
AgentTestClient (see testing-agents skill) for that — it covers tools, hooks, multi-turn flows, and assertions.
- **Don't add ad-hoc whitespace heuristics on the renderer side because
this script shows dense output.** Fix the system prompt. Renderer heuristics inevitably misfire on legitimate identifiers (SecureBank, OAuth, GitHub) that look structurally identical to missing-space sentence boundaries.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/inspecting-streams/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/lauren-framework/lauren-ai/inspecting-streams)