提示词
提示词
# Stray file pre-commit gate
State: path, size, and a short preview of each newly staged file.
Ask: Choice among belongs / scratch / dump / build output / local-only.
Then: block the commit when non-belong confidence clears your threshold; never send files matched by local secret rules.
需要授权:gitpre-commit
它是怎么搭起来的
步骤(实验性)
- 在 pre-commit 钩子里只检查新加入的路径。
- 对密钥和已知垃圾文件名先用本地规则处理,不调用 Jev。
- 对其余文件各问 Jev 一个 Choice 问题,并在代码里用置信度门控。
来源
此模式处于实验阶段。行为为作者自报——请用你自己的提交数据校准。
为什么它好用
拦住忽略规则漏掉的智能体残留文件
本案例收集自公开的 Jev 社区,版权归原作者所有。提示词属于参考资料:运行前请先审阅内容, 并且不要让机器人超出你实际授予的权限行事。