Files
nexus/wiki/concepts/AI结对执行.md

42 lines
1.4 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: "AI 结对执行"
type: concept
tags: [vibe-coding, AI, pair-programming]
---
## Definition
AI 结对执行AI Pair Programming是 Vibe Coding 范式的第三原则开发者扮演导演角色AI 扮演执行者角色类似结对编程Pair Programming但人类提供方向判断和审美决策AI 负责具体实现。
## Human vs AI Responsibilities
| 角色 | 人类(导演) | AI执行者 |
|------|------------|-------------|
| 架构决策 | ✅ | ❌ |
| 需求理解 | ✅ | ✅(辅助澄清) |
| 代码编写 | ❌ | ✅ |
| 测试验证 | ✅(审查) | ✅(自测脚本) |
| 审美判断 | ✅ | ❌ |
| Bug 修复 | ✅(引导) | ✅(执行) |
## Tools That Enable It
- **Cursor**Composer 模型支持多文件编辑和 AI 对话
- **Windsurf**Tab 自动补全 + AI 建议
- **Trae**Remote SSH 开发环境
- **Claude Code**Print Mode 非交互批量执行
## Relationship to Vibe Coding Formula
Vibe Coding = 规划驱动 + 上下文固定 + AI 结对执行
- 规划驱动:确定做什么
- 上下文固定:保证 AI 不跑偏
- AI 结对执行:具体怎么做
## Related Concepts
- [[Vibe Coding]]AI 结对执行是 Vibe Coding 三要素之一
- [[规划驱动]]:结对前的人类准备工作
- [[上下文固定]]:结对时的行为约束机制
- [[Cursor]]AI 结对执行的首选 IDE
## Aliases
- AI Pair Programming
- 氛围结对
- 导演模式