vscode-sidebar-terminal: Command for Claude Code

.claude/commands/terminal-research.md

terminal-research is a command for Claude Code from s-hiraoku/vscode-sidebar-terminal. It costs 7 tokens per session (684 once invoked), scanned A, original, MIT.

A terminal research command that asks three specialised AI agents to investigate a technical question. It combines source-code searches with documentation research about terminal tools.

In plain words
What is it for?
It is for researching how terminal features work, such as input handling, terminal managers, web views, and xterm.js integrations.
Why use it?
It reduces the need to investigate an implementation manually across source code, semantic search, and documentation.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

This is s-hiraoku/vscode-sidebar-terminal's own configuration. It tells Claude Code how to work on vscode-sidebar-terminal itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything vscode-sidebar-terminal configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/s-hiraoku/vscode-sidebar-terminal/main/.claude/commands/terminal-research.md
Clone the repo
git clone --depth 1 https://github.com/s-hiraoku/vscode-sidebar-terminal

Made for: Claude Code.

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 terminal-research

README.md
[![agentmods](https://agentmods.dev/badge/commands/s-hiraoku/vscode-sidebar-terminal/terminal-research/github.svg)](https://agentmods.dev/commands/s-hiraoku/vscode-sidebar-terminal/terminal-research)
Your own site
<a href="https://agentmods.dev/commands/s-hiraoku/vscode-sidebar-terminal/terminal-research"><img src="https://agentmods.dev/badge/commands/s-hiraoku/vscode-sidebar-terminal/terminal-research/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 terminal-research

Your own site · 80×15
<a href="https://agentmods.dev/commands/s-hiraoku/vscode-sidebar-terminal/terminal-research"><img src="https://agentmods.dev/badge/commands/s-hiraoku/vscode-sidebar-terminal/terminal-research.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 684 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.00007 $0.00684
Opus 5 $0.00003 $0.00342
Sonnet 5 $0.00001 $0.00137
Haiku 4.5 $0.00001 $0.00068

Measured 10d ago against content hash f53352680030, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

terminal-research 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 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.

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/commands/terminal-research.md · 92 lines

How it starts

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

Terminal Research Command

Research terminal implementation by invoking three specialized agents in parallel.

Execution Instructions

When this command is invoked with a query (e.g., /terminal-research How does VS Code handle IME?):

  1. Launch three agents in parallel using a single message with multiple Task tool calls:

    Agent 1: vscode-terminal-resolver

    • Task description: "Analyze VS Code terminal implementation"
    • Prompt: "Search the VS Code repository for how it handles: {ARGUMENTS}. Focus on terminal-related source code in src/vs/workbench/contrib/terminal/. Provide code references and implementation patterns."

    Agent 2: serena-semantic-search

    • Task description: "Search codebase semantically"
    • Prompt: "Use Serena MCP to semantically search the current codebase for implementations related to: {ARGUMENTS}. Focus on terminal managers, WebView components, and xterm.js integrations. Provide file paths and line numbers."

    Agent 3: xterm-info-analyzer

    • Task description: "Get xterm.js documentation"
    • Prompt: "Retrieve xterm.js documentation and best practices for: {ARGUMENTS}. Include API references, configuration options, and usage examples."
  2. Wait for all agents to complete their tasks

  3. Synthesize results into a comprehensive report with this structure:

## Terminal Research Results: {ARGUMENTS}

### VS Code Implementation
{vscode-terminal-resolver findings}
- Key patterns
- Code references (file:line)

### Current Codebase
{serena-semantic-search findings}
- Existing implementations
- File references (file:line)

### Xterm.js Best Practices
{xterm-info-analyzer findings}
- API documentation
- Configuration recommendations

### Synthesis & Recommendations
- Compare approaches (VS Code vs current vs xterm.js)
- Identify gaps or improvements
- Provide actionable next steps with code references

Example Usage

/terminal-research How does VS Code handle IME composition events?
/terminal-research What are xterm.js performance optimization techniques?
/terminal-research How should terminal process lifecycle be managed?

Read the full file on GitHub · 92 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. 10d ago First seen · 92 lines · 7 tokens per session scan A f53352680030

Subscribe to this mod's changes

terminal-research is a command published in the GitHub repository s-hiraoku/vscode-sidebar-terminal (21 stars, last pushed 2d ago), licensed MIT. It adds 7 tokens to every session and 684 once invoked, about $0.0000 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-09-01.