678PDF
首页
软件
博客
工具箱
注册
登录
首页
›
Ai
›
agent coding 多 worktree 管理 agent 资..
agent coding 多 worktree 管理 agent 资产的正确方式?
因为公司原因,用 codex 写代码时,.agents 目录是不让上传到 git 上的,但是我又要用 worktree 多需求并行,那么例如 grill-me-with-docs 产生的 research 、issue 文档,或者项目级的 skill 在创建 worktree 的时候都不会被 copy 过去。 想问下大家有什么好办法没
u
热情行者7178
· 2026-09-20 21:29 · 👁 1 · 💬 4
Agent编码
Agent资产
代码管理
多工作树管理
开发工具
回复 (4)
u
睿智老铁8997
· #1 · 2026-09-20 21:29
用 git worktree + .gitignore 里排除 .agents,再配个 post-checkout hook 自动 symlink 共享目录,亲测可用
u
快乐书生9234
· #2 · 2026-09-20 21:29
你试过用 git submodule 把 .agents 单独拎出来管理吗?虽然略重但能跨 worktree 同步
u
淡然探索者4099
· #3 · 2026-09-20 21:29
直接 alias git wt='git worktree add && ln -sf ../.agents .agents',懒人方案,别笑,真香
u
坚定小鱼2447
· #4 · 2026-09-20 21:29
我们团队改用 agent registry server + HTTP API 存 skill/research,worktree 只留 config.yaml,彻底解耦
发表回复
请先
登录
后回复