Repository navigation
chore: 子项目与 Agent 项目完全解耦(实体 AGENTS.md + 去掉 .pi 交叉引用) - #10
Merged
Merged
Conversation
起因:用户 2026-11-08 决定「Agent 项目与子项目的 AGENTS.md、.pi 目录完全无关」,各自只放本项目真实需要的内容。 本次:AGENTS.md 由指向 Agent 项目的软链接改为本仓库实体文件(承载项目定位、负责 Agent、Worker 角色边界与文档索引);.pi/APPEND_SYSTEM.md 里描述旧软链机制的句子改为指向本仓库 AGENTS.md 与全局规则;.pi/settings.json 里对 Agent 项目资源目录的四条路径引用已删除(该文件原本只有这四条引用,故整个删除)。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
起因
用户 2026-11-08 决定:Agent 项目与子项目的
AGENTS.md、.pi目录之间完全无关——各自只放本项目真实需要的内容,不再靠软链接与路径引用互相牵连。原来的做法是「身份层挂
AGENTS.md → ../<Agent项目>/AGENTS.md软链接 + 能力层在.pi/settings.json里引用 Agent 项目的资源目录」。问题:改了什么
AGENTS.md由软链接改为本仓库的实体文件:写项目定位、负责 Agent、Worker 角色边界,以及各类规则的索引位置。.pi/APPEND_SYSTEM.md:把描述旧软链机制的那句话改为指向本仓库AGENTS.md与全局~/.pi/agent/AGENTS.md;「你的角色」整节移入AGENTS.md,不再两处重述。.pi/settings.json:删除对 Agent 项目extensions/skills/prompts/themes四个目录的路径引用(该文件原本只有这四条引用,故整个删除)。.pi/{extensions,skills,prompts,themes}本来就会被自动发现,以后本项目真的需要什么,直接放进自己目录即可。为什么删掉这些引用没有实际损失
pi 的全局层
~/.pi/agent/(全部团队规则、add/commit/bump/release技能、各类守卫扩展)在任何目录都会加载,项目级交叉引用带过来的东西远少于直觉。安全网一件不少。