moonproxy-desktop: Instructions file for Codex

AGENTS.md

moonproxy-desktop AGENTS.md is an instructions file for Codex, OpenCode from MoonProxyHQ/moonproxy-desktop. It costs 3,883 tokens per session, scanned A, original, MIT.

Project instructions for MoonProxy, a desktop app for configuring and running frpc, the client used to create network tunnels through an frp server. The app supports proxy rules, connection status, traffic monitoring, scheduling, tray operation, and updates.

In plain words
What is it for?
Use them when working on proxy configuration, frpc start and stop states, traffic displays, scheduled connections, system-tray behavior, or application updates.
Why use it?
They explain how the desktop interface, background process, stored settings, connection checks, and update paths fit together. This reduces mistakes when changing networking or startup behavior.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is MoonProxyHQ/moonproxy-desktop's own configuration. It tells Codex and OpenCode how to work on moonproxy-desktop 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 moonproxy-desktop configures →

Reuse

Borrowing it

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

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 moonproxy-desktop AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/moonproxyhq/moonproxy-desktop/agents-md"><img src="https://agentmods.dev/badge/instructions/moonproxyhq/moonproxy-desktop/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,883 This file is loaded in full into every session.
When invoked 3,883 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.03883 $0.03883
Opus 5.5 $0.01553 $0.01553
Sonnet 5.5 $0.00777 $0.00777
Haiku 4.5 $0.00388 $0.00388

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

Security

Grade A, and why

moonproxy-desktop 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 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.

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 · 228 lines

How it starts

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

MoonProxy

跨平台、面向非技术用户的 frp 桌面客户端, 基于 Tauri v2 构建,支持 Windows 与 macOS。

用户视角的介绍请看 README.md;本文档面向在仓库里改代码的工程师。

功能

  • 用户填入自己的 frps 服务端(地址、端口、Token、用户名),或预置自定义服务商快速切换
  • 可视化管理代理规则(TCP / UDP / HTTP / HTTPS),主页实时显示本地端口连通性
  • 实时流量监控:主页上下行速率曲线、连接数与累计流量(内置 TCP 中转层计数)
  • 一键启动 / 停止 frpc:启动按钮分 4 态(已停止 / 连接中 / 已连接 / 连接错误), 连接状态由 frpc 自身证据支撑(/api/status 探测 + 30s 超时回退)
  • 系统托盘常驻:关闭窗口默认隐藏到托盘,frpc 继续后台运行
  • 开机启动 + 静默启动(自启时隐藏到托盘)
  • 开机自动连接(仅 OS 自启路径触发,手动启动不会误连)
  • 定时连接(按星期多选 + 起止时间,分钟对齐 + 启动补跑 + 热加载)
  • frpc 引擎自更新:GitHub Release → SHA256 校验 → 原子替换,无需重装应用
  • 应用本体自更新:基于 tauri-plugin-updater 的「重启并安装」
  • 通过 Tauri sidecar 机制内置 frpc 二进制,用户无需单独安装

技术栈

  • 前端:Vue 3 + TypeScript + Vite 6
  • 后端:Rust + Tauri v2
  • frpc 版本:v0.69.1(已内置;可通过 pnpm sync:frpc 同步其他平台)

目录结构

moonproxy-desktop/
├── src/                          # Vue 前端
│   ├── App.vue                   # 顶层壳:TitleBar + 视图路由 + 全局键盘 / 右键 + 事件订阅
│   ├── main.ts                   # 挂载入口(按 ?view= 区分主窗 / 日志窗)
│   ├── state/                    # 跨组件响应式状态(拆分到各文件)
│   │   ├── index.ts              # 统一导出
│   │   ├── runtime.ts            # 运行时:frpc 状态 / 日志 / 启动时间
│   │   ├── config.ts             # 服务商 / 代理配置
│   │   ├── prefs.ts              # 偏好:语言 / 启动项 / 定时
│   ├── styles.css                # HSL 设计令牌 + 通用组件类
│   ├── composables/              # 按主题拆分的可复用状态 / 命令
│   │   ├── useToast.ts
│   │   ├── useFrpcUpdate.ts      # frpc 引擎自更新
│   │   ├── useAppUpdate.ts       # 应用本体自更新
│   │   ├── useProxyHealth.ts     # 主页端点健康点 + 指数退避轮询(3→6→12→24s)
│   │   ├── useTraffic.ts         # 实时流量:累计 / 滚动窗口 / 瞬时速率
│   │   └── useAppEvents.ts       # 应用级事件订阅 + 启动初始化
│   ├── components/
│   │   ├── TitleBar.vue          # 跨平台标题栏
│   │   ├── BrandIcon.vue         # 单色品牌标识
│   │   ├── CloseConfirm.vue      # frpc 运行时的关闭确认弹窗
│   │   ├── Toast.vue             # 顶部 Toast 渲染
│   │   ├── home/                 # HomeView 子组件(启动按钮 / 流量图表 / 端点列表 …)
│   │   └── settings/             # 设置面板 Tab 子组件
│   │       ├── ProviderTab.vue   # 服务商
│   │       ├── ProxyTab.vue      # 代理规则
│   │       ├── InterfaceTab.vue  # 界面语言切换
│   │       ├── LaunchTab.vue     # 开机启动 / 静默启动 / 开机自动连接
│   │       ├── ScheduleSection.vue  # 定时连接(LaunchTab 内嵌)
│   │       ├── LogsTab.vue       # 运行日志
│   │       └── AboutTab.vue      # 关于(含软件更新 + 核心引擎)
│   └── views/
│       ├── HomeView.vue          # 主面板:流量图表 / 启动按钮 / 端点列表 / 引导卡片
│       ├── ServicesView.vue      # 「服务」视图:复用 ProviderTab + ProxyTab
│       └── SettingsView.vue      # 设置面板:分段控件 + Tab 切换
├── src-tauri/
│   ├── src/
│   │   ├── main.rs               # Windows release 抑制控制台
│   │   ├── lib.rs                # Tauri Builder 配置 + setup hook + invoke_handler + ExitRequested 兜底
│   │   ├── types.rs              # 共享类型:StartArgs / ProxyConfig
│   │   ├── config.rs             # frpc.toml 生成 + 客户端配置持久化
│   │   ├── process.rs            # frpc 子进程生命周期
│   │   ├── frpc_state.rs         # 连接状态机 + 日志环形缓冲
│   │   ├── proxy_health.rs       # 代理本地端口连通性探测
│   │   ├── proxy_relay.rs        # frpc↔本地服务 TCP 中转层 + 流量统计
│   │   ├── latency.rs            # 服务端 TCP 握手延迟探测
│   │   ├── frpc_update.rs        # frpc 自更新
│   │   ├── prefs.rs              # 应用偏好
│   │   ├── scheduler.rs          # 按星期定时启停 frpc
│   │   ├── tray.rs               # 系统托盘
│   │   └── assets/               # 编译期嵌入资源(托盘图标)
│   ├── binaries/                 # frpc sidecar 二进制(按平台目标命名;不入库,本地放置)
│   ├── capabilities/
│   │   ├── default.json          # 主窗权限
│   │   └── logs.json             # 独立日志窗权限
│   ├── tauri.conf.json           # 窗口 400×740、无装饰、sidecar 声明、updater 端点
│   └── tauri.macos.conf.json     # macOS 平台覆盖:系统交通灯 + Overlay + hiddenTitle
├── docs/app-icons/               # 图标设计源(APP Icon + 托盘图标),含 README 规范
└── scripts/                      # 仓库辅助脚本
    ├── sync-frpc.sh              # 按 .env 版本同步 frpc 二进制到 src-tauri/binaries/
    └── check-icons.py            # 图标规范校验(更新图标后必跑)

Read the full file on GitHub · 228 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 · 228 lines · 3,883 tokens per session scan A 86e126670c66

Subscribe to this mod's changes

moonproxy-desktop AGENTS.md is an instructions file published in the GitHub repository MoonProxyHQ/moonproxy-desktop (65 stars, last pushed 12d ago), licensed MIT. It adds 3,883 tokens to every session, about $0.0155 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

moonproxy-desktop AGENTS.md compared with instructions from other repositories

moonproxy-desktop AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
moonproxy-desktop AGENTS.mdMoonProxyHQ/moonproxy-desktopInstructions file6512d agoMITA3,883Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,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