18 lines
679 B
Plaintext
18 lines
679 B
Plaintext
---
|
||
description: 防 SEARCHED FILES 掐断 — 搜文件与 MCP 分轮
|
||
globs: "**/*"
|
||
alwaysApply: true
|
||
---
|
||
# 防「SEARCHED FILES」掐断(强制)
|
||
|
||
Cursor 单轮 ~30–45s;全盘 Grep/Glob 与 MCP/Shell 同批并行 → interrupted(非用户点停)。
|
||
|
||
| # | 必须 |
|
||
|:--|:---|
|
||
| 1 | 搜文件与 MCP **分轮**;本轮 Search 后禁止同轮 wait 前再堆 Shell |
|
||
| 2 | Grep/Glob 必须 path 限定目录,禁止无 path 全仓库 |
|
||
| 3 | head_limit ≤ 25;先 Glob 文件名再 Read |
|
||
| 4 | 禁止 find /Users/karuo、mdfind 全盘 |
|
||
| 5 | 单轮工具 ≤ 6 次;搜完短复盘 → wait → 下轮续搜 |
|
||
| 6 | interrupted → 当轮续跑,不当结束 |
|