ccx
AGENTS.md4k starsChanged 2 months agoMITView on GitHub
- Reads credentials
Trending
Quiet since September.thin dataabout the whole repository
Who's talking about BenedictKing/ccx
- Soju06/codex-lb“bug: compaction fails”GitHub · Jun 13, 2026 · 2 reactions
- AppImage/appimage.github.io“Add -_CCX”GitHub · Sep 27, 2026
- Phala-Network/phala-cloud“feat: add ccx template”GitHub · May 30, 2026
The biggest 3 of 3 mentions linking to the repository that our crawl found. Each line is their own headline.
In this repository9 other files it gives its agents.
- backend-go/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- desktop/CLAUDE.mdCLAUDE.md
- frontend/CLAUDE.mdCLAUDE.md
- github-releaseSkill
- model-updateSkill
- store-updateSkill
- upstream-checkSkill
- version-bumpSkill
The file
We found no rules to list in this file: it reads as prose or reference rather than instructions.
Files
仓库协作指南
重要约定
- 始终使用简体中文回复。
- 遵循 SOLID / KISS / DRY / YAGNI;优先修复根因,避免无关重构。
- 禁止停止或杀掉本项目正在运行的服务进程;默认用户已通过开发命令启动服务,如需让代码生效,只能提示用户手动重启或使用用户明确指定的安全方式。
- 修改文档时,优先以以下文件为事实源:
VERSION、Makefile、backend-go/Makefile、frontend/package.json、backend-go/main.go。
项目概览
- CCX 是一个多上游 AI API 代理与协议转换网关,当前正式支持六类渠道:
messages、chat、responses、gemini、images、vectors。 - 根目录
VERSION是唯一发布版本源;后端构建时通过backend-go/Makefile的-ldflags注入运行时版本信息。
项目结构与模块
backend-go/:主 Go 服务(Gin),负责路由、认证、调度、协议转换、指标与日志;前端构建产物嵌入到backend-go/frontend/dist/。frontend/:Vue 3 + Vite + Vuetify 管理界面。dist/:发布构建产物,禁止手动编辑。.config/:运行时配置与持久化目录(如config.json、metrics.db、backups/)。refs/:外部参考项目存档,仅供对照,默认只读。- 文档入口:
README.md、README.zh-CN.md、backend-go/README.md、docs/guide/architecture.md、docs/guide/development.md、docs/guide/environment.md、docs/guide/release.md。
构建 / 测试 / 开发命令
- 全栈开发(推荐):根目录
make dev(前端bun run dev+ 后端air热重载)。 - 根目录常用命令:
make run、make build、make frontend-dev、make clean。 - 仅后端:
cd backend-go && make dev|run|build|test|test-cover|fmt|lint|deps。 - 后端本地构建:
cd backend-go && make build-local。 - 前端:
cd frontend && bun install后执行bun run dev|build|preview|type-check|lint。 - Docker:
docker-compose up -d用于接近生产环境的验证。
代码风格
- Go:保持包职责单一、接口清晰;修改后运行
go fmt ./...。 - 前端:遵循现有 Vuetify / TypeScript / Prettier 风格;保持 strict 类型约束。
- 不要手动编辑生成产物:
dist/、frontend/dist/、backend-go/frontend/dist/。 - 配置/密钥:
.env/.json只提交示例文件或文档化内容,禁止提交真实密钥。
路由与能力边界
- 实际代理与管理路由以
backend-go/main.go为准。 - 常见代理入口包括:
/v1/messages/v1/chat/completions/v1/responses/v1/images/generations/v1/images/edits/v1/images/variations/v1/embeddings/v1beta/models/*/v1/alpha/*(Codex 记忆层 history/notes 透传,粘 Responses 渠道池;上游未实现时如实透传错误)
- 管理入口统一位于
/api/{type}/channels/*。 - 能力测试当前只适用于
messages、chat、responses、gemini;不要假设images或vectors具备 capability-test。 - 渠道保活验证位于
backend-go/internal/healthcheck/:L1(带 key 拉模型列表)六类渠道通用,L2(最便宜模型的普通真实调用)仅messages、chat、responses、gemini;配置为全局/渠道级healthCheck,频率硬下限 30 分钟;管理端点GET /api/{type}/channels/:id/health与POST /api/{type}/channels/:id/health/check。
测试规范
- 新增/修改后端逻辑尽量补
_test.go,优先表驱动 +httptest。 - 前端当前以构建验证为主;如增加复杂逻辑,再补轻量单测。
- 文档或接口说明调整后,至少验证:
make build、cd backend-go && make test、cd frontend && bun run build。
安全与配置提示
- 部署前必须设置强
PROXY_ACCESS_KEY;如需分离管理权限,再配置ADMIN_ACCESS_KEY。 .config/config.json支持热重载;修改backend-go/.env后需要重启服务。- 代理端点统一鉴权(
x-api-key/Authorization: Bearer);生产环境不建议依赖 querykey。 - 记录或展示日志时注意脱敏,尤其是 API Key、Authorization 头和 multipart 请求内容。
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
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.

