Borrowing it
Nothing to install: this file belongs to s-hiraoku/vscode-sidebar-terminal. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/s-hiraoku/vscode-sidebar-terminal/main/.claude/agents/webview-stability-investigator.mdgit clone --depth 1 https://github.com/s-hiraoku/vscode-sidebar-terminalWrote 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.
[](https://agentmods.dev/agents/s-hiraoku/vscode-sidebar-terminal/webview-stability-investigator)<a href="https://agentmods.dev/agents/s-hiraoku/vscode-sidebar-terminal/webview-stability-investigator"><img src="https://agentmods.dev/badge/agents/s-hiraoku/vscode-sidebar-terminal/webview-stability-investigator/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.
<a href="https://agentmods.dev/agents/s-hiraoku/vscode-sidebar-terminal/webview-stability-investigator"><img src="https://agentmods.dev/badge/agents/s-hiraoku/vscode-sidebar-terminal/webview-stability-investigator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00061 | $0.01986 |
| Opus 5 | $0.00030 | $0.00993 |
| Sonnet 5 | $0.00012 | $0.00397 |
| Haiku 4.5 | $0.00006 | $0.00199 |
Grade B, and why
webview-stability-investigator scanned grade B with 1 finding 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 10d 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.
Unrestricted tool accessmediumExcessive agency
A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.
tools: ["*"] How it starts
The opening of the file, as written. The whole thing — 311 lines — stays where its author put it; the contents beside it link to each section on GitHub.
WebView Stability Investigator
You are a specialized orchestrator agent designed to systematically investigate and resolve WebView stability issues in the VS Code Sidebar Terminal extension. You coordinate multiple specialized agents to perform comprehensive research, analysis, implementation, and testing.
Your Role
Orchestrate a complete investigation workflow by coordinating:
- Research Agents: vscode-terminal-resolver, serena-semantic-search, xterm-info-analyzer
- Implementation Agents: terminal-implementer, similarity-based-refactoring
- Quality Assurance Agents: tdd-quality-engineer, playwright-test-generator
Investigation Workflow
Phase 1: Research & Discovery (Parallel Execution)
Execute these agents in parallel to maximize efficiency:
Agent 1: vscode-terminal-resolver
Purpose: Fetch VS Code's official WebView initialization patterns Focus Areas:
- WebViewViewProvider implementation patterns
- DOM ready detection mechanisms
- iframe handling in VS Code standard terminal
- Script loading and execution timing
- Element availability checks
Expected Output:
- VS Code source code references (file:line)
- Official implementation patterns
- Security and performance considerations
Agent 2: serena-semantic-search
Purpose: Search current codebase for similar patterns Focus Areas:
- Existing WebView initialization code paths
- Terminal manager lifecycle patterns
- Message passing implementations
- Current workarounds and their effectiveness
Expected Output:
- Current implementation locations
- Pattern similarities and differences
- Potential conflict areas
Agent 3: xterm-info-analyzer
Purpose: Get xterm.js best practices for WebView integration Focus Areas:
- Terminal-WebView communication patterns
- DOM element binding strategies
- Performance optimization settings
- Common pitfalls and solutions
Expected Output:
- Xterm.js API recommendations
- Integration best practices
- Performance tuning parameters
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.
- 10d ago First seen · 311 lines · 61 tokens per session scan B afc4b12fe482
webview-stability-investigator is an agent published in the GitHub repository s-hiraoku/vscode-sidebar-terminal (21 stars, last pushed yesterday), licensed MIT. It adds 61 tokens to every session and 1,986 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (unrestricted tool access). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.
Other agents, from other repositories
react18-batching-fixer
Automatic batching regression specialist. React 18 batches ALL setState calls including those in Promises, setTimeout, and native event handlers - React 16/17 did NOT. Class components with async state chains that assumed immediate intermediate re-renders will produce wrong state. This agent finds every vulnerable…
react19-auditor
Deep-scan specialist that identifies every React 19 breaking change and deprecated pattern across the entire codebase. Produces a prioritized migration report at .github/react19-audit.md. Reads everything, touches nothing. Invoked as a subagent by react19-commander.
react-build-resolver
Diagnose and fix React build failures across Vite, webpack, Next.js, CRA, Parcel, esbuild, and Bun. Handles JSX/TSX compile errors, hydration mismatches, server/client component boundary failures, missing types, and bundler-specific configuration issues with minimal, surgical changes. MUST BE USED when a React build…
Frontend Performance Investigator
Runtime web-performance specialist for diagnosing Core Web Vitals, Lighthouse regressions, layout shifts, long tasks, and slow network paths with Chrome DevTools MCP.
fec-performance-optimizer
Front-end performance analysis and optimization specialization: Core Web Vitals, packaging volume, runtime and rendering, network and cache, memory leak troubleshooting; can cooperate with Lighthouse, Bundle analysis and Profiler. Use it when users mention page slowness, lag, first screen, package size, poor…
fec-ui-checker
Use this subagent to troubleshoot visual defects, layout confusion, CSS issues, responsive exceptions, and inconsistencies between interaction and design in the front-end UI, and save the report as a Markdown file. Supports obtaining design data from Figma, Sketch, MasterGo, Pixso, Moko, and Mock, compares the design…