Files
nexus/wiki/concepts/Agent-Mode.md
2026-04-22 16:03:25 +08:00

43 lines
1.6 KiB
Markdown
Raw 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.
---
title: "Agent模式"
type: concept
tags: [cursor, ai, agent, interaction-mode]
sources: []
last_updated: 2026-04-22
---
## Overview
Agent 模式是 Cursor Composer 模块中的一种交互方式,允许 AI 自动执行内嵌命令并处理工具调用,显著减少手动操作步骤,实现命令链路的自动打通。
## Aliases
- Agent Mode
- Composer Agent 模式
- 自动执行模式
## Agent模式 vs Normal模式
| 特性 | Agent 模式 | Normal 模式 |
|------|-----------|-------------|
| 命令执行 | 自动执行 | 用户手动复制执行 |
| 工具调用 | 自动触发和处理 | 需要用户确认 |
| 效率 | 高,适合批量任务 | 低,适合精确控制 |
| 风险 | 可能误操作(建议关闭 Yolo Mode | 安全 |
| 使用门槛 | 低,无需干预 | 高,需用户操作 |
## Key Features
- **自动工具链**:自动调用 MCP 工具并整合结果
- **命令链路打通**:减少用户在不同环境间切换的操作步骤
- **对话标识**Agent 模式下对话界面下方会显示"agent"标识
- **可关闭**:用户可随时切换回 Normal 模式
## Yolo Mode
Agent 模式下的危险选项。开启后会自动无确认执行所有命令,可能造成误操作(如误删文件)。官方默认关闭,建议用户谨慎使用。
## Connections
- [[Cursor]] — Agent 模式所在的模块
- [[MCPModel Context Protocol]] — Agent 模式可调用的协议
- [[Sequential Thinking]] — Agent 模式下可触发的 MCP 工具
- [[Tool Calling]] — Agent 模式自动执行的调用机制
## Sources
- [[mcp在cursor中的集成与应用详解]]