claude-code-plus AGENTS.md

claude-code-plus AGENTS.md is an instructions file for Codex, OpenCode from touwaeriol/claude-code-plus. It costs 3,013 tokens per session, scanned A, original, MIT.

Architecture notes for Claude Code Plus, an IntelliJ IDEA plugin that connects Claude AI to the IDE. They focus on the HTTP connections used for actions such as opening files, showing changes, and searching project files.

In plain words
What is it for?
Use them when working on file opening, change previews, file searches, file reading, or other request-and-response web actions in Claude Code Plus. They describe the relevant HTTP routes and frontend bridge.
Why use it?
They explain how the plugin communicates with IntelliJ IDEA and other web features without requiring developers to infer the request format or endpoint behavior. This reduces confusion when tracing an action from the interface to the server.

Instructions file for CodexOpenCode

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/touwaeriol/claude-code-plus/agents-md
Clone the repo
git clone --depth 1 https://github.com/touwaeriol/claude-code-plus

Made for: Codex, OpenCode.

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 claude-code-plus AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/touwaeriol/claude-code-plus/agents-md.svg)](https://agentmods.dev/instructions/touwaeriol/claude-code-plus/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/touwaeriol/claude-code-plus/agents-md"><img src="https://agentmods.dev/badge/instructions/touwaeriol/claude-code-plus/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,013 This file is loaded in full into every session.
When invoked 3,013 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.03013 $0.03013
Opus 5 $0.01507 $0.01507
Sonnet 5 $0.00603 $0.00603
Haiku 4.5 $0.00301 $0.00301

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

Security

Grade A, and why

claude-code-plus AGENTS.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 3d 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.

AGENTS.md · 410 lines

How it starts

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

1=特别提醒:请使用简体中文进行交流 特别提醒:git commit、changelog 不使用中文,而是使用英文

Claude Code Plus - 架构说明

📋 项目概述

Claude Code Plus 是一个 IntelliJ IDEA 插件,集成了 Claude AI 助手,提供智能代码编辑、文件操作、终端执行等功能。

🏗️ 整体架构

🔌 三种通信方式

2️⃣ IDEA 集成通信 (纯 HTTP)

用途: 打开文件、显示 Diff、搜索文件等 IDEA 原生功能

前端:

// frontend/src/services/ideaBridge.ts
import { ideService } from '@/services/ideaBridge'

// 打开文件
await ideService.openFile('/path/to/file.ts', { line: 10 })

// 显示 Diff
await ideService.showDiff({
    filePath: '/path/to/file.ts',
    oldContent: '...',
    newContent: '...'
})

后端:

// claude-code-server/src/main/kotlin/com/claudecodeplus/server/HttpApiServer.kt
post("/api/") {
    when (action) {
        "ide.openFile" -> ideActionBridge.openFile(request)
        "ide.showDiff" -> ideActionBridge.showDiff(request)
        "ide.searchFiles" -> ideActionBridge.searchFiles(query, maxResults)
        "ide.getFileContent" -> // 读取文件内容
    }
}

协议: HTTP POST

  • 请求-响应模式
  • 同步调用
  • 简单可靠

3️⃣ 通用 Web 功能 (纯 HTTP)

用途: 其他不需要流式响应的功能

协议: HTTP GET/POST

  • RESTful API
  • 标准 HTTP 请求

🔧 关键技术细节

随机端口机制

问题: 多个 IDEA 项目同时打开时,端口冲突

解决方案:

// claude-code-server/src/main/kotlin/com/claudecodeplus/server/HttpApiServer.kt
fun start(port: Int = 8765): String {
    val actualPort = try {
        embeddedServer(Netty, port = port) { ... }.start()
        port
    } catch (e: BindException) {
        val availablePort = findAvailablePort()
        embeddedServer(Netty, port = availablePort) { ... }.start()
        availablePort
    }
    return "http://localhost:$actualPort"
}

前端获取后端地址 & 环境检测

IDEA 插件模式: 通过 URL 参数 ?ide=true 触发后端注入

// jetbrains-plugin/.../VueToolWindowFactory.kt
val ideUrl = "$serverUrl?ide=true"  // 带上 ide=true 参数
browser.loadURL(ideUrl)
// claude-code-server/.../HttpApiServer.kt
get("/") {
    val isIdeMode = call.request.queryParameters["ide"] == "true"

    if (isIdeMode) {
        // IDEA 插件模式:注入 window.__serverUrl
        val injection = """
            <script>
                window.__serverUrl = 'http://localhost:$serverPort';
                console.log('✅ Environment: IDEA Plugin Mode');
            </script>
        """.trimIndent()
        html = html.replace("</head>", "$injection\n</head>")
    }
}

Read the full file on GitHub · 410 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. 3d ago First seen · 410 lines · 3,013 tokens per session scan A 9571be6767f1

Subscribe to this mod's changes

claude-code-plus AGENTS.md is an instructions file published in the GitHub repository touwaeriol/claude-code-plus (144 stars, last pushed 4mo ago), licensed MIT. It adds 3,013 tokens to every session, about $0.0151 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-30.

Related

Other instructions, from other repositories

jetbrains-claude-subscription CLAUDE.md

Claude Code instructions for vanssata/jetbrains-claude-subscription, covering claude.md, build, -> build/distributions/jetbrains-claude-subscription- .zip, verifying a change and gotchas.

vanssata/jetbrains-claude-subscription · 856 tokens

keen-code AGENTS.md

Instructions for mochow13/keen-code, covering keen code, important guidelines, architecture and permission system.

mochow13/keen-code · 273 tokens

vibing.nvim CLAUDE.md

Instructions for shabaraba/vibing.nvim, covering claude.md, project overview, commands, install dependencies and build with watch mode (for development).

shabaraba/vibing.nvim · 1,659 tokens

bear-notes-mcp CLAUDE.md

Claude Code instructions for vasylenko/bear-notes-mcp, covering project purpose, rules of absolute importance, core technical documentation for this project, source layout and additional technical context.

vasylenko/bear-notes-mcp · 1,025 tokens

bear-notes-mcp copilot-instructions.md

Copilot instructions for vasylenko/bear-notes-mcp, covering when performing a code review for a pr, review objective, review guidelines and when working on a new feature or an idea.

vasylenko/bear-notes-mcp · 279 tokens

memctx CLAUDE.md

Instructions for bbhunterpk-ux/memctx: Last session: Database Schema UI Coverage Analysis — COMPLETED Completed: Analyzed database schema to identify all stored fields, Audited ProjectDetail and SessionDetail UI components, Compared API queries against UI display logic Up next: Add token usage display to ProjectDetail…

bbhunterpk-ux/memctx · 116 tokens