因为公司原因,用 codex 写代码时,.agents 目录是不让上传到 git 上的,但是我又要用 worktree 多需求并行,那么例如 grill-me-with-docs 产生的 research 、issue 文档,或者项目级的 skill 在创建 worktree 的时候都不会被 copy 过去。 想问下大家有什么好办法没
agent coding 多 worktree 管理 agent 资产的正确方式?
回复 (4)
发表回复
请先 登录 后回复
因为公司原因,用 codex 写代码时,.agents 目录是不让上传到 git 上的,但是我又要用 worktree 多需求并行,那么例如 grill-me-with-docs 产生的 research 、issue 文档,或者项目级的 skill 在创建 worktree 的时候都不会被 copy 过去。 想问下大家有什么好办法没
用 git worktree + .gitignore 里排除 .agents,再配个 post-checkout hook 自动 symlink 共享目录,亲测可用
你试过用 git submodule 把 .agents 单独拎出来管理吗?虽然略重但能跨 worktree 同步
直接 alias git wt='git worktree add && ln -sf ../.agents .agents',懒人方案,别笑,真香
我们团队改用 agent registry server + HTTP API 存 skill/research,worktree 只留 config.yaml,彻底解耦
请先 登录 后回复