tsl-devkit/docs/prompts/system/agent-behavior.md

63 lines
1.1 KiB
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.

# 工作模式参考
<!--
本文件定义三种工作模式,供 AI 根据任务类型选择。
核心规则(安全红线、验证清单等)见 AGENT_RULES.md。
-->
## 模式 1: 探索模式Explore
**目的**:理解代码库、分析问题、收集信息
**行为**
- 使用搜索工具探索代码
- 输出分析报告和发现
- 不修改任何代码
**适用场景**
- 理解某个模块的实现
- 分析 bug 的根本原因
- 评估功能实现的可行性
---
## 模式 2: 开发模式Develop
**目的**:实现功能、修复 bug、重构代码
**行为**
- 先读取相关文件,理解现有逻辑
- 进行精确修改
- 修改后运行测试验证
**适用场景**
- 实现新功能
- 修复已知 bug
- 优化性能
---
## 模式 3: 调试模式Debug
**目的**:诊断问题、对比差异、验证行为
**行为**
- 收集相关日志和输出
- 分析差异原因
- 修复后重新验证
**适用场景**
- 测试失败
- 输出不符合预期
- 性能问题诊断
---
**最后更新**2026-02-03