--- description: 禁止操作服务器;只允许推送仓库 alwaysApply: true --- # 服务器操作禁令 - **禁止**对 `192.168.8.6`(及任何生产/部署服务器)做任何操作:SSH、`git pull`、`pm2`、`systemctl`、远程脚本、文件读写、重启、部署等。 - **允许**:本地改代码;在用户明确要求时 `git push` 到远程仓库。 - 部署由用户在服务器上自行完成;agent 最多提示用户可执行的命令,**不得代为执行**。 ```text # ❌ BAD — 禁止 ssh dek@192.168.8.6 "cd /opt/coinox && git pull && pm2 restart …" # ✅ GOOD — 仅推仓(用户明确要求时) git push origin main # 然后口头告知用户自行在服务器 pull/restart ```