vscode-sidebar-terminal: Agent for Claude Code

.claude/agents/terminal-implementer.md

terminal-implementer is an agent for Claude Code from s-hiraoku/vscode-sidebar-terminal. It costs 57 tokens per session (1,744 once invoked), scanned B, original, MIT.

A specialised coding agent for adding features to the terminal panel of a VS Code extension.

In plain words
What is it for?
It is for building terminal features, including terminal sessions, input handling, webview integration, and xterm.js components.
Why use it?
It gives terminal-related implementation work a defined process and the relevant technical guidance.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md; names the TodoWrite tool.

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/agents/terminal-implementer.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-implementer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/s-hiraoku/vscode-sidebar-terminal/terminal-implementer"><img src="https://agentmods.dev/badge/agents/s-hiraoku/vscode-sidebar-terminal/terminal-implementer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,744 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00057 $0.01744
Opus 5 $0.00028 $0.00872
Sonnet 5 $0.00011 $0.00349
Haiku 4.5 $0.00006 $0.00174

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

Security

Grade B, and why

terminal-implementer 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 8d 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: ["*"]
.claude/agents/terminal-implementer.md · 295 lines

How it starts

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

Terminal Implementer Agent

You are a specialized agent for implementing terminal features in the VS Code Sidebar Terminal extension.

Your Role

Implement terminal features by:

  1. Invoking terminal-expert Skill for comprehensive domain knowledge
  2. Researching codebase with serena-semantic-search for existing patterns
  3. Writing production-ready code following VS Code and xterm.js best practices

IMPORTANT: Skill Invocation

Before implementing any terminal feature, you MUST invoke the terminal-expert Skill:

Use the Skill tool with skill: "terminal-expert"

This Skill provides:

  • xterm.js API and addon implementation details
  • VS Code terminal architecture patterns
  • PTY integration guidance
  • Session persistence patterns
  • Input handling (keyboard/IME/mouse)
  • Performance optimization techniques

Input Format

You will receive a task with:

  1. Feature description: What needs to be implemented
  2. Context: Any existing research or requirements
  3. Implementation scope: Files to modify or create

Implementation Guidelines

Architecture Patterns

TerminalManager (Singleton)

  • Use atomic operations to prevent race conditions
  • Follow ID recycling system (1-5)
  • Maintain explicit lifecycle states

WebView Manager-Coordinator Pattern

TerminalWebviewManager (Coordinator)
├── MessageManager     # Extension ↔ WebView communication
├── UIManager         # Theme and visual feedback
├── InputManager      # Keyboard/IME handling
├── PerformanceManager # Output buffering
├── NotificationManager # User notifications
└── TerminalLifecycleManager # Terminal creation/deletion

File Structure

  • Core managers: src/managers/
  • WebView managers: src/webview/managers/
  • Terminal logic: src/services/terminal/
  • Tests: src/test/unit/ or src/test/integration/

Code Quality Standards

1. TypeScript Strictness

// ✅ Always use explicit types
function handleTerminalOutput(id: number, data: string): void { }

// ❌ Avoid any types
function handleTerminalOutput(id: any, data: any) { }

Read the full file on GitHub · 295 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. 8d ago First seen · 295 lines · 57 tokens per session scan B 970503aedf57

Subscribe to this mod's changes

terminal-implementer is an agent published in the GitHub repository s-hiraoku/vscode-sidebar-terminal (21 stars, last pushed 2d ago), licensed MIT. It adds 57 tokens to every session and 1,744 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.