惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Cisco Talos Blog
Cisco Talos Blog
量子位
小众软件
小众软件
Microsoft Azure Blog
Microsoft Azure Blog
V
Visual Studio Blog
I
InfoQ
Jina AI
Jina AI
The Cloudflare Blog
Recorded Future
Recorded Future
Recent Announcements
Recent Announcements
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
G
Google Developers Blog
Stack Overflow Blog
Stack Overflow Blog
阮一峰的网络日志
阮一峰的网络日志
Microsoft Security Blog
Microsoft Security Blog
美团技术团队
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Martin Fowler
Martin Fowler
T
Tailwind CSS Blog
博客园 - Franky
酷 壳 – CoolShell
酷 壳 – CoolShell
F
Fortinet All Blogs
WordPress大学
WordPress大学
P
Proofpoint News Feed
D
DataBreaches.Net
爱范儿
爱范儿
雷峰网
雷峰网
D
Docker
B
Blog
Engineering at Meta
Engineering at Meta
腾讯CDC
N
Netflix TechBlog - Medium
C
Check Point Blog
博客园 - 【当耐特】
Apple Machine Learning Research
Apple Machine Learning Research
T
Tenable Blog
GbyAI
GbyAI
Security Archives - TechRepublic
Security Archives - TechRepublic
博客园 - 三生石上(FineUI控件)
T
The Blog of Author Tim Ferriss
博客园 - 聂微东
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
SecWiki News
SecWiki News
S
Security @ Cisco Blogs
S
Security Affairs
V
V2EX
Application and Cybersecurity Blog
Application and Cybersecurity Blog
云风的 BLOG
云风的 BLOG
C
CERT Recently Published Vulnerability Notes
Y
Y Combinator Blog

博客园 - AI健康

Git & GitHub 协作操作手册(三人团队) Copilot: 如何把kiro的spec转到leanSpec来 小龙虾作者peterSteinberger同时推进多少个项目?-来自copilot-edge chatGpt- 图片文件的群识别工程可落地 chatGpt-pc端监控获取微信群中照片 sonnet4.6: 如何在windows/android上使用无障碍功能保存微信群图片 openclaw-zero-token worked, respect and thanks the author and contributors openclaw-zero-token仓库支持的免费模型如下: 各AI平台 Web 使用政策-from sonnet4.5 openclaw-zero-token在wsl启用备忘 trae's tools include: figma, editor,etc. and its shortcut is c-a-/ opencode答复:Atlas vs Sisyphus 的关系 github-copilot源码调研kimi-cli:没有显示它支持全局规则文件 三大GUI AI 编程助手快捷键全解析:Antigravity、Trae 与 Kiro 对比指南 mouseless(少鼠) 技术调研 调研 骨传导麦克风 具体在图书馆等安静场合,微小声音模式下语音输入-结论是暂时不可行 opencode server,web两命令, --mDNS 参数的使用场景 跟 ChatGPT 对话:运行wsl+open code资源消耗-没验证 静态为主轻交互微信小程序开发环境推荐-chatgpt推荐 AI coding大模型+工具的组合实际效用对比
Windows 下 AI IDE/CLI 规则加载实测:硬链接能解决什么,不能解决什么
AI健康 · 2026-02-07 · via 博客园 - AI健康

硬链接能做什么,不能做什么

背景

在 Windows 11 环境下同时使用 Claude Code、Trae / TraeCN、OpenCode(CLI) 时,规则文件往往需要在多个位置维护。
社区常见解法是使用硬链接或规则同步工具,但规则是否真的被读取、是否支持热加载,长期缺乏实测结论。

因此我做了一次最小、可复现的规则加载实验


实验方法(极简)

  • 系统:Windows 11

  • Shell:PowerShell

  • 方法:

    • 使用同一份规则文件

    • 通过 Hard Link 暴露给不同工具

    • 验证两个问题:

      1. 是否读取规则
      2. 修改规则后是否 无需重启即可 reload

实测结果(关键结论)

Claude Code

  • 读取 CLAUDE.md:✅ YES
  • 不重启 reload:✅ YES

Claude Code 在当前版本下既能读取规则,也支持运行中感知变更


Trae / TraeCN

  • 读取 .traerules:✅ YES
  • 不重启 reload:✅ YES

Trae 的规则机制虽然没有完整公开文档,但实测可用且支持热更新


OpenCode(CLI)

  • 读取规则文件:✅ YES
  • 不重启 reload:✅ YES

在 CLI 工具中,规则文件的加载与变更感知同样成立。


一个容易被误解、但被实测澄清的点

硬链接 ≠ 魔法,但也不只是“静态一致性”

在这次测试中:

  • 硬链接保证了所有工具看到的是同一份规则
  • 更重要的是:
    三个工具在当前版本下,均能在运行中感知规则变更

这说明:

至少在这些工具和版本中,规则并非只在启动时读取。


可迁移经验

  1. 规则加载行为必须实测,不能只看文档或社区猜测
  2. 硬链接 + 规则同步工具(如 ais)在 Windows 下是可行且高效的
  3. 对支持热加载的工具,可以大胆采用 “单一事实源规则” 的工作流

当前实践总结

我使用硬链接 / ais 维护统一规则源,
在 Claude Code、Trae、OpenCode 中均可实时生效,
没有再遇到“改了规则但 AI 不认”的问题。

AIS 在这里。。。