IDE-Adapter CLAUDE.md

IDE-Adapter CLAUDE.md is an instructions file for coding agents from godstale/IDE-Adapter. It costs 1,398 tokens per session, scanned A, original, MIT.

Development instructions for a VS Code extension that runs a local WebSocket server. They describe the extension's parts, commands, and rules for adding request handlers.

In plain words
What is it for?
Use them when compiling the extension, running its tests and checks, understanding its server and message flow, or adding a new handler or protocol feature.
Why use it?
They give coding agents the project context needed to make changes that fit the existing design. They also document how to build, lint, and manually test the extension.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/godstale/ide-adapter/claude-md
Clone the repo
git clone --depth 1 https://github.com/godstale/IDE-Adapter

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 IDE-Adapter CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/godstale/ide-adapter/claude-md.svg)](https://agentmods.dev/instructions/godstale/ide-adapter/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/godstale/ide-adapter/claude-md"><img src="https://agentmods.dev/badge/instructions/godstale/ide-adapter/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,398 This file is loaded in full into every session.
When invoked 1,398 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.01398 $0.01398
Opus 5 $0.00699 $0.00699
Sonnet 5 $0.00280 $0.00280
Haiku 4.5 $0.00140 $0.00140

Measured 4d ago against content hash 076caeb9efc2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

IDE-Adapter CLAUDE.md 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 4d 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.md · 125 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Commands

npm run compile          # TypeScript build → out/
npm run watch            # Incremental watch build
npm run lint             # ESLint (src/**/*.ts)

Build output goes to out/. Press F5 in VS Code to launch the Extension Development Host for manual testing.

Architecture

This is a VS Code extension that runs a local WebSocket server (default port 7200). External CLI apps connect as clients.

activate()
  ├── IdeaLogger          — EventEmitter, 500-entry ring buffer, emits 'entry'
  ├── HandlerRegistry     — topic string → IHandler map
  ├── IdeaServer          — WebSocketServer; injects logger + clientId into each session
  │    └── ClientSession  — per-connection state machine: handshake → request/response loop
  ├── IdeaPanel           — WebviewViewProvider (Activity bar sidebar)
  │    ├── Settings tab   — server toggle, port change, protocol doc buttons, dev info
  │    └── Logs tab       — real-time log stream, inline JSON expand/collapse
  └── ProtocolViewer      — on-demand WebviewPanel for docs/IDEA_*.md files

Module system: "module": "Node16" — all intra-project imports must use .js extension (e.g. import { Foo } from './Foo.js').

Adding a New Handler

  1. Create src/handlers/<Name>Handler.ts implementing IHandler from src/protocol/types.ts.
  2. Register it in activate() in src/extension.ts: registry.register('/app/vscode/...', new NameHandler()).
  3. Document the input params in docs/IDEA_InputProtocol.md and result shape in docs/IDEA_OutputProtocol.md.

Protocol Rules

  • First message from client must be { type: 'handshake', workspacePath: string }. Any other message closes the socket.
  • Subsequent messages are requests: { topic, requestId, params }. Responses echo topic and requestId.
  • Error responses have error: { code, message }; success responses have result: { ... }.
  • Error codes: PARSE_ERROR, INVALID_REQUEST, UNKNOWN_TOPIC, WORKSPACE_NOT_FOUND, HANDLER_ERROR.

Read the full file on GitHub · 125 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. 4d ago First seen · 125 lines · 1,398 tokens per session scan A 076caeb9efc2

Subscribe to this mod's changes

IDE-Adapter CLAUDE.md is an instructions file published in the GitHub repository godstale/IDE-Adapter (3 stars, last pushed 6mo ago), licensed MIT. It adds 1,398 tokens to every session, about $0.0070 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-08-31.