Files
Neo-ZQYY/.kiro/steering/agent-behavior.md

18 lines
583 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
inclusion: always
---
# AI 执行行为约束
## 上下文保护
目标:避免大量文件内容或命令输出涌入主对话,导致上下文爆炸。
### 委托子代理的场景
- 批量文件读取≥3 个文件)或大范围代码搜索
- 需要探索不熟悉的模块/目录结构
- CLI 命令输出量大或需要多步骤 shell 操作
### 主流程直接处理的场景
- 读取单个已知文件(路径明确、内容可预期)
- 简单的单条命令(如 `uv sync`、单个 pytest 文件)
- 小范围精确搜索(已知关键词和文件范围)