Skip to content

weisily2001/copilot-cli-profile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Copilot CLI Profile

这是一套可跨主机复用的 Copilot CLI 配置仓库。

仓库包含稳定配置、诊断脚本、模板、技能、代理和治理文档。

仓库不包含运行时日志、会话状态、自动生成的本机配置缓存和其他临时产物。

使用方式

把仓库克隆到用户目录下的 .copilot 位置:

git clone https://github.com/weisily2001/copilot-cli-profile.git $HOME\.copilot

如果目标主机已经有 .copilot 目录,先备份原目录,再执行覆盖式迁移。

首次启动 Copilot CLI 后,程序会自动生成本机自己的 config.json

Profile 分层

  • profiles.json 定义 defaultresearchheavy 三档能力组合
  • default 适合日常开发与普通问答
  • research 强化资料查询、设计分析和文档查证
  • heavy 适合复杂多阶段任务,按需打开更重的 MCP / 浏览器能力
  • 稳定主线的 LSP 面只保留 typescriptpython
  • 可通过 diagnostics\inspect-profiles.ps1 查看 profile 与 MCP / LSP 引用是否一致
powershell -ExecutionPolicy Bypass -File "C:\Users\HP\.copilot\diagnostics\inspect-profiles.ps1"

MCP 健康诊断

运行:

powershell -ExecutionPolicy Bypass -File "C:\Users\HP\.copilot\diagnostics\check-mcp-health.ps1"

输出:

  • 结构化结果会打印到终端
  • 默认写入当前仓库根目录下的 mcp-health.json
  • 标准部署到 C:\Users\HP\.copilot 时,输出文件位于 C:\Users\HP\.copilot\mcp-health.json
  • 使用 -SkipHttpProbe 时,远程 MCP 会以 degraded 返回,便于离线或快速检查

更多字段说明见 C:\Users\HP\.copilot\mcp-observability.md

更新方式

拉取稳定更新:

Set-Location $HOME\.copilot
git pull origin main

试验新改动:

Set-Location $HOME\.copilot
git checkout -b feat/update-profile

稳定使用建议

  • 日常默认使用 default
  • 做资料查证、方案分析和文档研究时使用 research
  • heavy 只在复杂多阶段任务时按需启用,不作为日常默认面
  • 以下文件属于运行态或本机态,不纳入稳定主线:config.jsonpermissions-config.jsonhook-metrics.jsonlstartup-metrics.jsonlmcp-health.json

回滚方式

查看可回滚标签:

Set-Location $HOME\.copilot
git tag

回到稳定标签:

Set-Location $HOME\.copilot
git checkout baseline-2026-04-26

如果要回到稳定分支最新状态:

Set-Location $HOME\.copilot
git checkout main
git pull origin main

全局记忆治理验证

运行全局记忆沉淀 smoke:

powershell -ExecutionPolicy Bypass -File "C:\Users\HP\.copilot\diagnostics\check-global-memory-distillation-smoke.ps1"

运行 hook 回归 smoke:

powershell -ExecutionPolicy Bypass -File "C:\Users\HP\.copilot\diagnostics\hook-metrics-smoke.ps1"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors