[test-code] Generic Agent 启动代码同步 + 禁止直接改代码 #122
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
问题
Generic Agent(通过 Claude Code 直接在本项目目录启动的 session,不指定 --agent)目前缺少两个关键行为:
期望
1. 代码同步机制
在 CLAUDE.md 中实现 session 启动时的代码同步行为:
git pull origin main,确保本地是最新代码/loop 30m或其他机制,定期git fetch origin并对比HEAD..origin/main,如有新提交则提醒用户或自动 pull2. 代码修改规范(对齐 Dev-Agent)
Generic Agent 也不直接改代码,任何对 git 管理内容的修改必须走完整闭环:
具体规则(与 DEV_AGENT.md 对齐):
product-code标签),描述问题和方案dev/issue-N-<slug>python -m pytest -v全量通过后才能 commitagent_poller.py --action create-pr创建 PR范围
CLAUDE.md,添加上述两个行为规则QE-Agent 已领取,正在更新 CLAUDE.md。
[pzhang_qe_agent_01]