LinJun: Instructions file for Claude Code

CLAUDE.md

LinJun CLAUDE.md is an instructions file for Claude Code from wangdabaoqq/LinJun. It costs 3,740 tokens per session, scanned A, original, MIT.

Project instructions for building LinJun, a cross-platform desktop app that manages the CLIProxyAPI service.

In plain words
What is it for?
Use them when developing or extending LinJun’s Electron, React, TypeScript, proxy-management, account, or desktop features.
Why use it?
They record the project’s planned technology choices, structure, integrations, and staged feature work for contributors.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions Claude Code; mentions Codex; mentions Gemini CLI.

This is wangdabaoqq/LinJun's own configuration. It tells Claude Code how to work on LinJun 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 LinJun configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is "../../resources/binaries",.

Reuse

Borrowing it

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

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 LinJun CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/wangdabaoqq/linjun/claude-md/github.svg)](https://agentmods.dev/instructions/wangdabaoqq/linjun/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/wangdabaoqq/linjun/claude-md"><img src="https://agentmods.dev/badge/instructions/wangdabaoqq/linjun/claude-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 LinJun CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/wangdabaoqq/linjun/claude-md"><img src="https://agentmods.dev/badge/instructions/wangdabaoqq/linjun/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,740 This file is loaded in full into every session.
When invoked 3,740 The same file — it is already loaded in full.
Security scan A 2 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.03740 $0.03740
Opus 5.5 $0.01496 $0.01496
Sonnet 5.5 $0.00748 $0.00748
Haiku 4.5 $0.00374 $0.00374

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

Security

Grade A, and why

LinJun CLAUDE.md scanned grade A with 2 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 2mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

const res = await axios.get(`${BASE_URL}/management/status`);

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

| **进程管理** | child_process | 管理 CLIProxyAPI 二进制 |
CLAUDE.md · 578 lines

How it starts

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

linjun - 跨平台 CLIProxyAPI 管理工具

项目概述

基于 CLIProxyAPI 构建的跨平台桌面应用,提供类似 Quotio 的功能,支持 Windows / macOS / Linux 三端。

参考项目

  • Quotio - macOS 原生 Swift 实现(仅 macOS)
  • CLIProxyAPI - 核心代理服务器(Go 实现)
  • ProxyPilot - Windows 原生实现
  • ZeroLimit - Tauri + React 实现(参考 UI 设计)

技术选型

方案:Electron + React + TypeScript

组件 技术栈 说明
框架 Electron 33+ 跨平台桌面应用框架
前端 React 18 + TypeScript UI 开发
样式 Tailwind CSS 快速 UI 开发
构建 Vite + electron-builder 开发构建工具链
进程管理 child_process 管理 CLIProxyAPI 二进制
系统托盘 Electron Tray API 原生托盘支持

Electron 优势

  1. 成熟生态:丰富的 npm 包支持,大量学习资源
  2. 开发效率:JavaScript/TypeScript 开发,热重载支持
  3. 跨平台一致:一套代码,三端运行
  4. 原生能力:完整的系统托盘、通知、菜单支持

CLIProxyAPI 集成方式

由于 CLIProxyAPI 是 Go 编写的,Electron 通过以下方式集成:

  1. 内嵌二进制:将 CLIProxyAPI 二进制打包到应用中
  2. 进程管理:使用 child_process 启动/停止代理进程
  3. HTTP 通信:通过 Management API 与代理交互

核心功能规划

Phase 1 - MVP

  • 内嵌 CLIProxyAPI 二进制,启动/停止代理服务
  • 系统托盘图标 + 基础菜单
  • 单账户 OAuth 登录(Claude/Gemini/OpenAI)
  • 基础状态显示(运行中/已停止)
  • 开机自启动

Phase 2 - 多账户管理

  • 多账户管理界面
  • Quota 用量追踪(实时刷新)
  • 账户切换/负载均衡策略配置(Round Robin / Fill First)
  • 自动 Failover 配置

Phase 3 - Agent 配置

  • 自动检测已安装的 CLI Agent(Claude Code, OpenCode, Gemini CLI, Amp CLI)
  • 一键配置 Agent 使用本地代理
  • 配置备份/恢复

Phase 4 - 高级功能

  • 请求日志查看
  • 实时流量监控图表
  • 多语言支持(中/英)
  • 自动更新(electron-updater)
  • API Key 管理

项目结构

cliPlus/
├── package.json
├── electron.vite.config.ts     # Vite + Electron 配置
├── electron-builder.yml        # 打包配置
├── tsconfig.json
│
├── src/
│   ├── main/                   # Electron 主进程
│   │   ├── index.ts            # 主进程入口
│   │   ├── tray.ts             # 系统托盘
│   │   ├── proxy/              # CLIProxyAPI 管理
│   │   │   ├── manager.ts      # 进程管理
│   │   │   ├── api.ts          # Management API 封装
│   │   │   └── binary.ts       # 二进制路径处理
│   │   ├── ipc/                # IPC 通信
│   │   │   └── handlers.ts
│   │   └── utils/
│   │       ├── store.ts        # electron-store 配置存储
│   │       └── autoLaunch.ts   # 开机自启动
│   │
│   ├── preload/                # 预加载脚本
│   │   └── index.ts
│   │
│   └── renderer/               # 渲染进程(React)
│       ├── index.html
│       ├── main.tsx
│       ├── App.tsx
│       ├── components/
│       │   ├── Dashboard/
│       │   ├── Providers/
│       │   ├── Agents/
│       │   ├── Quota/
│       │   └── Settings/
│       ├── hooks/
│       ├── stores/             # Zustand 状态管理
│       ├── services/           # API 调用
│       └── styles/
│
├── resources/                  # 静态资源
│   ├── icon.png
│   ├── icon.ico
│   ├── icon.icns
│   └── binaries/               # CLIProxyAPI 二进制
│       ├── darwin-arm64/
│       ├── darwin-x64/
│       ├── win32-x64/
│       └── linux-x64/
│
└── scripts/
    └── download-binary.ts      # 下载 CLIProxyAPI 二进制

Read the full file on GitHub · 578 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. 2mo ago First seen · 578 lines · 3,740 tokens per session scan A 871750f003cd

Subscribe to this mod's changes

LinJun CLAUDE.md is an instructions file published in the GitHub repository wangdabaoqq/LinJun (628 stars, last pushed 2mo ago), licensed MIT. It adds 3,740 tokens to every session, about $0.0150 per session on Opus 5.5. A static security scan graded it A with 2 findings (makes network calls, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

LinJun CLAUDE.md compared with instructions from other repositories

LinJun CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
LinJun CLAUDE.mdwangdabaoqq/LinJunInstructions file6282mo agoMITA3,740Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode