vscode-sidebar-terminal: Command for Claude Code

.claude/commands/openspec/agents-gen.md

agents-gen is a command for Claude Code from s-hiraoku/vscode-sidebar-terminal. It costs 13 tokens per session (5,108 once invoked), scanned B, original, MIT.

A command that generates a project-specific implementation agent and a matching slash command from an OpenSpec change specification. It creates files for carrying out a defined software change.

In plain words
What is it for?
Use it when an OpenSpec change has a proposal and task list and you want generated tools dedicated to implementing that change.
Why use it?
It removes the need to manually create and configure these two artifacts. It also checks that the requested change contains the expected specification files.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md.

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/openspec/agents-gen.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 agents-gen

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

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

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

Security

Grade B, and why

agents-gen 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 9d 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/commands/openspec/agents-gen.md · 814 lines

How it starts

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

OpenSpec Agents Generator (Meta-Command)

Analyze OpenSpec change specifications and automatically generate:

  1. Implementation-specialized agent (.claude/agents/{change-id}-implementer.md)
  2. Dedicated slash command (.claude/commands/implement-{change-id}.md)

Both generated artifacts integrate with MCP servers and Skills for optimal implementation efficiency.

Execution Workflow

When this command is invoked (e.g., /openspec:agents-gen fix-terminal-initialization-bugs):

Step 1: Validate OpenSpec Change

Input: {ARGUMENTS} (change-id)

Validation:

# Check if OpenSpec change exists
if [ ! -d "openspec/changes/{ARGUMENTS}" ]; then
    echo "❌ Error: OpenSpec change '{ARGUMENTS}' not found"
    echo "Available changes:"
    ls -1 openspec/changes/
    exit 1
fi

# Check required files
required_files=("proposal.md" "tasks.md")
for file in "${required_files[@]}"; do
    if [ ! -f "openspec/changes/{ARGUMENTS}/$file" ]; then
        echo "❌ Error: Missing required file: $file"
        exit 1
    fi
done

Output: ✅ Validation passed / ❌ Validation failed with error details


Step 2: Analyze OpenSpec Specification

Files to Read:

  1. openspec/changes/{ARGUMENTS}/proposal.md - Problem statement, solution, scope
  2. openspec/changes/{ARGUMENTS}/tasks.md - Implementation phases and tasks
  3. openspec/changes/{ARGUMENTS}/specs/**/*.md - Delta specifications (if exists)

Analysis Objectives:

2.1 Extract Technical Domain

Determine primary technical areas affected:

  • Terminal Lifecycle Management: Terminal creation, deletion, process states
  • WebView Development: Message routing, UI rendering, event handling
  • Performance Optimization: Rendering, memory, buffering
  • Testing: Unit tests, integration tests, E2E tests (Playwright)
  • Configuration Management: Settings, profiles, feature toggles
  • Session Persistence: Scrollback save/restore, state serialization
  • AI Agent Detection: Pattern matching, visual indicators
  • Error Handling: Race conditions, memory leaks, validation

Read the full file on GitHub · 814 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. 9d ago First seen · 814 lines · 13 tokens per session scan B b0eb969d3238

Subscribe to this mod's changes

agents-gen is a command published in the GitHub repository s-hiraoku/vscode-sidebar-terminal (21 stars, last pushed yesterday), licensed MIT. It adds 13 tokens to every session and 5,108 once invoked, about $0.0001 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.