agentleFS
BenedictKingBenedictKing/ccx/desktop/CLAUDE.md

ccx / desktop

CLAUDE.md4k starsChanged 2 months agoMITView on GitHub

CCX 桌面后台 App,基于 Wails 3 提供系统托盘、配置向导、Agent 配置管理、健康检查与本地网关控制入口。 在 desktop/ 目录执行: 桌面前端命令参考 frontend/CLAUDE.md。 desktop/frontend/ 以 Bun 为主包管理器,bun.lock 是权威锁文件;pnpm-lock.yaml 仅用于兼容验证。 不要为了运行 npm audit 重新生成 package-lock.json。安全检查使用: 桌面外壳不强制自己编译启动后端:internal/backend/manager.go 的 doStart 会先调 findHealthyPort,从桌面数据目录 .env 的 PORT 起向上扫 20 个端口(PORT..PORT+20),命中第一个 /health 为 healthy 的实例就以 *attached(附着)模式复用*外部进程,不再启动内置二进制。

  • Reads credentials

Trending

Quiet since September.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 1 mentionJun 2026: 1 mentionJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 1 mentionOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the BenedictKing/ccx repository that our weekly crawl found: only 3 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

The file

Files
CLAUDE.md

desktop 模块文档

← 根目录

模块职责

CCX 桌面后台 App,基于 Wails 3 提供系统托盘、配置向导、Agent 配置管理、健康检查与本地网关控制入口。

技术栈

  • Go + Wails 3 桌面壳
  • Vue 3 + TypeScript + Vite 桌面前端
  • Bun 作为桌面前端主包管理器

常用命令

在 desktop/ 目录执行:

wails3 dev      # 启动桌面开发模式
wails3 build    # 构建桌面应用

桌面前端命令参考 frontend/CLAUDE.md。

目录说明

路径职责
frontend/桌面端 Vue 前端界面
bindings/Wails 生成的前后端绑定
internal/桌面端 Go 服务实现

桌面前端包管理

desktop/frontend/ 以 Bun 为主包管理器,bun.lock 是权威锁文件;pnpm-lock.yaml 仅用于兼容验证。

不要为了运行 npm audit 重新生成 package-lock.json。安全检查使用:

bun install --cwd frontend
bun audit --registry=https://registry.npmjs.org --cwd frontend

注意事项

  • 默认假设用户可能已启动 Wails / Vite 开发进程,不要自动杀进程重启
  • 修改 Go 服务导出接口后,确认 bindings/ 是否需要重新生成
  • 修改前端依赖优先进入 frontend/ 使用 Bun 命令
  • 桌面端配置管理相关逻辑集中在 internal/configservice/

后端发现与端口约定

桌面外壳不强制自己编译启动后端:internal/backend/manager.go 的 doStart 会先调 findHealthyPort,从桌面数据目录 .env 的 PORT 起向上扫 20 个端口(PORT..PORT+20),命中第一个 /health 为 healthy 的实例就以 attached(附着)模式复用外部进程,不再启动内置二进制。

  • 桌面数据目录(macOS):~/Library/Application Support/ccx-desktop/,端口配置在其 .env 的 PORT。
  • 本地想让 make desktop-dev 附着到某个已在跑的新版本调试实例时,把该 .env 的 PORT 改成目标端口即可(例如新版跑在 3399 就设 PORT=3399)。发现区间是 PORT..PORT+20,目标端口必须落在区间内、且前面没有更靠前的健康实例抢先占位。
  • 附着模式下该实例属「外部进程托管」,桌面外壳内的停止/重启会报错,需在原终端自行管理该进程。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.