vanehub-ai: Instructions file for Claude Code

AGENTS.md

vanehub-ai AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from cdavid817/vanehub-ai. It costs 3,221 tokens per session, scanned A, original, Apache-2.0.

Project instructions for VaneHub AI, a desktop and web interface for managing several AI coding assistants. They define its required technologies and architecture rules.

In plain words
What is it for?
Use it when modifying the React interface, Tauri desktop code, Rust services, SQLite handling, or logging.
Why use it?
They prevent changes from bypassing service boundaries, mixing desktop and web behavior, or introducing unapproved tools.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: PostToolUse hook event, but also the file is AGENTS.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is cdavid817/vanehub-ai's own configuration. It tells Claude Code, Codex and OpenCode how to work on vanehub-ai 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 vanehub-ai configures →

Reuse

Borrowing it

Nothing to install: this file belongs to cdavid817/vanehub-ai. 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/cdavid817/vanehub-ai/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/cdavid817/vanehub-ai

Made for: Claude Code, 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 vanehub-ai AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/cdavid817/vanehub-ai/agents-md/github.svg)](https://agentmods.dev/instructions/cdavid817/vanehub-ai/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/cdavid817/vanehub-ai/agents-md"><img src="https://agentmods.dev/badge/instructions/cdavid817/vanehub-ai/agents-md/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 vanehub-ai AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/cdavid817/vanehub-ai/agents-md"><img src="https://agentmods.dev/badge/instructions/cdavid817/vanehub-ai/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,221 This file is loaded in full into every session.
When invoked 3,221 The same file — it is already loaded in full.
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.03221 $0.03221
Opus 5.5 $0.01288 $0.01288
Sonnet 5.5 $0.00644 $0.00644
Haiku 4.5 $0.00322 $0.00322

Measured 1mo ago against content hash 2fd6a0b06624, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

vanehub-ai 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 1mo 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 · 120 lines

How it starts

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

AGENTS.md

本文件是 VaneHub AI 项目所有 AI 编程助手(Claude Code / Gemini CLI / Antigravity CLI / OpenCode / Codex 等)的统一入口。 CLAUDE.md、GEMINI.md 均指向本文件,请勿分别维护三份不同内容。 详细技术选型说明与完整代码规范见 openspec/project.md;具体场景的实现示例见 .claude/skills/。

项目概览

VaneHub AI 是一个桌面端多 AI 编程助手管理终端,用于统一管理和切换多个 AI 编程代理:内置原生 Agent OnePiece,headless 传输的 Claude Code、Codex CLI、OpenCode、Gemini CLI、Antigravity CLI,ACP 传输的 Qwen Code、Kimi Code CLI、Qoder CLI、CodeBuddy Code、GitHub Copilot CLI、Cursor Agent CLI,以及仅终端的历史兼容条目 iFlow CLI(逐 Agent 能力以 docs/reference/agents/capability-matrix.md 为准)。同一套 React UI 既可运行在 Tauri 桌面客户端内,也可通过 Web/mock adapter 以浏览器页面形式运行。

技术栈(严格约束,不允许引入替代方案)

  • 前端:React 19 + TypeScript(strict mode)+ Vite
  • 桌面运行时:Tauri 2.x(Rust)
  • 状态管理:仅用 React 内置 state/context,不引入 Redux/Zustand/MobX
  • 样式:Tailwind CSS,不写内联 style,不引入 styled-components/CSS Modules/其他 UI 组件库
  • 数据库:SQLite,通过 Rust 侧访问,前端不直接连库
  • 测试:Vitest(单元/组件测试,CI 强制覆盖率门槛)+ Playwright(E2E)
  • 包管理:npm(项目已有 package-lock.json,不要切到 pnpm/yarn)

架构核心约束

  • React 组件必须依赖 src/services/agent-service.ts 定义的服务接口,禁止组件内直接调用 Tauri invoke()
  • src/services/tauri-agent-client.ts(桌面实现)与 src/services/web-agent-client.ts(Web/mock 实现)必须保持接口一致,新增能力要同时改两处
  • src-tauri/ 负责 Rust 侧的 CLI 检测、启动路由、SQLite 注册表与会话状态,不要把这类逻辑下沉到前端

日志规范

  • 新增诊断日志、操作日志、前端持久化日志事件时,必须遵循 openspec/specs/unified-log-management/spec.md
  • Rust/native 侧日志必须通过统一日志服务写入,禁止新增 feature-local 日志文件或绕过脱敏直接落盘
  • SDK/CLI/任务类操作输出必须保留页面内展示能力,同时写入统一日志目录
  • React 组件不得直接写本地日志文件;需要持久化的前端错误必须通过 service boundary 上报到 native logging service
  • 日志必须支持 error、warn、info、debug 级别语义,敏感信息必须在落盘前脱敏

代码规范(可执行规则,详细版见 openspec/project.md)

  • 提交前必须跑通本文件末尾「校验命令」一节的全部命令。不要在这里另维护一份子集——两份清单迟早漂移,而漂移的那一半正是 CI 会拦下来的东西
  • TypeScript:禁止 any,禁止 // @ts-ignore(需要绕过时用 // @ts-expect-error 并写明原因)
  • React:函数组件 + Hooks,禁止 class component;单文件不超过 300 行
  • Rust:跨 Tauri command 边界的错误必须转换为 Result<T, String> 或自定义 error enum,unwrap()/expect() 仅限测试代码
  • 注释只写"为什么这样做",不写代码翻译式注释

项目文件规范(概要,完整版见 openspec/project.md)

src/
├─ components/       # 纯展示型 React 组件,不直接依赖 Tauri API
├─ services/         # 前端服务边界层(唯一允许被组件依赖的一层)
├─ hooks/            # 自定义 hook
src-tauri/
├─ src/commands/     # 每个 Tauri command 一个文件,按功能域分组
├─ src/platform/database/  # SQLite 访问层(schema 与迁移)
openspec/
├─ changes/          # 未归档的变更提案
│  └─ archive/       # 已完成变更的历史记录
├─ specs/            # 已确认规范(唯一真源)
└─ project.md         # 项目上下文和详细规范

Read the full file on GitHub · 120 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. 1mo ago Changed · +81 tokens per session 2fd6a0b06624
  2. 1mo ago Changed · +31 tokens per session 9e335f69a013
  3. 1mo ago Changed · +42 tokens per session 1505a44de2a2
  4. 1mo ago First seen · 120 lines · 3,067 tokens per session scan A 195139c3391c

Subscribe to this mod's changes

vanehub-ai AGENTS.md is an instructions file published in the GitHub repository cdavid817/vanehub-ai (109 stars, last pushed 4d ago), licensed Apache-2.0. It adds 3,221 tokens to every session, about $0.0129 per session on Opus 5.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

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,581 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens