Linux command
aider 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Start
aider [file1.py] [file2.py]
Example
aider --model [gpt-4] [file.py]
Example
aider --architect [file.py]
Example
aider --auto-commits [file.py]
Example
aider --model ollama/[llama2] [file.py]
说明
aider is an AI pair programming assistant that works in your terminal. It lets you have conversations with AI models (GPT-4, Claude, Ollama models, etc.) about your code, and the AI can directly edit your source files. The tool integrates with git, can automatically commit changes, and understands your entire codebase context. You can add files to the conversation, ask questions, request changes, and watch the AI implement them.
参数
- --model _name_
- AI model to use (gpt-4, gpt-3.5-turbo, claude-3-opus, etc.)
- --architect
- Use architect mode: an architect model proposes changes, then a separate editor model implements the file edits
- --edit-format _format_
- Edit format: diff, whole, diff-fenced
- --auto-commits
- Automatically commit AI changes (enabled by default)
- --no-auto-commits
- Disable automatic commits
- --dark-mode
- Use colors for dark terminal background
- --light-mode
- Use colors for light terminal background
- --map-tokens _n_
- Max tokens for repository map
- --no-git
- Disable git integration
- --yes
- Automatically confirm all prompts
- --message _text_
- Send a message and exit
FAQ
What is the aider command used for?
aider is an AI pair programming assistant that works in your terminal. It lets you have conversations with AI models (GPT-4, Claude, Ollama models, etc.) about your code, and the AI can directly edit your source files. The tool integrates with git, can automatically commit changes, and understands your entire codebase context. You can add files to the conversation, ask questions, request changes, and watch the AI implement them.
How do I run a basic aider example?
Run `aider [file1.py] [file2.py]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --model _name_ do in aider?
AI model to use (gpt-4, gpt-3.5-turbo, claude-3-opus, etc.)