Home - D0n9X1n/copilot-relay GitHub Wiki
copilot-relay Wiki
Edit these pages in
wiki/in the code repo, not here. This tab is published automatically from that folder on every merge tomain, so edits made in the browser editor are overwritten on the next publish. Keeping the source in the repo means a doc change is reviewed in the same pull request as the code it describes.请在代码仓库的
wiki/目录下修改,不要直接在这里编辑。 本页面由该目录在每次合并到main时自动发布,浏览器里的改动会在下次发布时被覆盖。
This is the complete documentation for copilot-relay — using it, running it as
a service, and working on it. Every page exists in English and 中文.
这里是 copilot-relay 的全部文档 —— 如何使用、如何长期运行、以及如何参与开发。
每一页都有英文和中文两个版本。
English
Using it
- How copilot-relay works — the short version
- Configuration — every key, hot reload vs restart
- Commands — every command, its options and exit codes
- Prompt caching — what Copilot caches, what the relay sends, measuring the hit rate
- Logs and troubleshooting — log format, grep recipes, failure modes
Running it as a long-lived background service — setup, verification, shutdown:
Each service page covers registering the relay so it survives reboots, a
three-layer check for whether it is actually working rather than merely
listening, and how to stop it — including how copilot-relay stop interacts with
the platform's own restart policy.
Working on it
- Architecture — the map: modules, request flow, boundaries
- Internals — precise mechanics, invariants, and why they hold
- Development — setup, tests, CI matrix, workflow, releasing
中文
使用
- 运行原理 —— 简版说明
- 配置说明 —— 每个配置键、热重载与需要重启
- 命令 —— 每个命令、它的选项与退出码
- Prompt 缓存 —— Copilot 缓存什么、中继发送什么、如何测量命中率
- 日志与问题排查 —— 日志格式、grep 配方、故障模式
后台长期运行 —— 注册、验证、停止:
每个平台页面都包含:如何注册成重启后仍然存活的服务、如何用三层检查确认它真的能用
(而不只是端口在监听)、以及如何停止它 —— 包括 copilot-relay stop 与平台自身重启策略
之间的关系。
开发