Mode Overview
- Agentic Mode
- Legacy Mode
Autonomous AI agent that can independently execute actionsIn agentic mode, the AI functions as an autonomous coding agent with access to a suite of tools. It can:
- Read and analyze files in your codebase
- Make direct edits using sophisticated tools
- Search for code patterns and symbols
- Execute shell commands
- Manage multi-file changes autonomously
Configuring Modes
Set your preferred mode in your Avante configuration:lua/avante/config.lua:31
The default mode is
"agentic". This provides the most powerful autonomous workflow but requires you to trust the AI with file operations.Agentic Mode Deep Dive
When to Use Agentic Mode
Agentic mode excels at:- Complex refactoring: Multi-file changes with automatic file reading and editing
- Feature implementation: Building complete features that span multiple files
- Code exploration: AI can autonomously search and analyze your codebase
- Debugging: AI can read error logs, check diagnostics, and propose fixes
- Rapid prototyping: Quick iterations with autonomous file creation and modification
How Agentic Mode Works
When you make a request in agentic mode:- Planning: AI analyzes your request and plans necessary actions
- Tool execution: AI calls tools like
view,str_replace,bash, etc. - Iteration: AI can chain multiple tool calls to complete complex tasks
- Completion: AI signals completion with
attempt_completiontool
Tool Permissions
Control AI’s autonomy with permission settings:- Auto-approve All (Fastest)
- Prompt for All (Most Controlled)
- Selective Auto-approve
Fast Apply Mode
Avante supports Fast Apply mode in agentic mode for near-instant code application:- Code changes apply at 2500-4500+ tokens/second
- 96-98% accuracy with specialized apply models
- Seamless workflow without noticeable delays
Legacy Mode Deep Dive
When to Use Legacy Mode
Legacy mode is preferred for:- Code review: When you want to carefully examine each suggestion
- Learning: Understanding AI’s reasoning before applying changes
- Simple edits: Quick, focused changes that don’t require autonomy
- Sensitive code: When working on critical systems requiring manual approval
- Explanations: Getting detailed code explanations without automatic changes
How Legacy Mode Works
In legacy mode, the workflow is more traditional:- Ask: You ask a question or request changes
- Response: AI provides suggestions in the chat sidebar
- Review: You review the suggested code in the diff view
- Apply: You manually apply changes using keybindings
Diff Application
Legacy mode uses Neovim’s diff system for change visualization:- Visual diff: Side-by-side comparison of current vs suggested code
- Conflict markers: Git-style conflict markers for manual resolution
- Selective application: Choose specific changes to apply
Comparing the Modes
- Feature Comparison
- Workflow Comparison
- Code Example
| Feature | Agentic Mode | Legacy Mode |
|---|---|---|
| Tool execution | ✅ Automatic | ❌ Not available |
| File reading | ✅ Autonomous | ⚠️ Manual context |
| Multi-file edits | ✅ Automatic | ⚠️ One at a time |
| Shell commands | ✅ Available | ❌ Not available |
| Change preview | ⚠️ Via logs | ✅ Full diff view |
| Manual control | ⚠️ Permission system | ✅ Complete control |
| Speed | ⚡ Fastest | 🐌 Slower |
| Complexity | 🎯 Handles complex tasks | 📝 Best for simple tasks |
Mode-Specific Tools
Certain tools are only available in specific modes:Agentic Mode Only
lua/avante/llm_tools/str_replace.lua:12
Available in Both Modes
Switching Modes
You can change modes at any time by updating your configuration:Best Practices
For Agentic Mode
- Start with auto-approval off: Learn what tools do before auto-approving
- Use with version control: Always have uncommitted work backed up
- Review tool logs: Check what the AI actually did
- Set appropriate permissions: Balance speed with control
- Use prompt logging: Enable
prompt_logger.enabled = truefor debugging
For Legacy Mode
- Provide explicit context: Add relevant files manually with
@file - Review diffs carefully: Check all changes before applying
- Use conflict markers: Take advantage of Git-style conflict resolution
- Apply incrementally: Test changes one at a time for safer iterations
- Leverage chat history: Build up context over multiple exchanges
Next Steps
Agentic Workflow
Deep dive into tools and autonomous execution
Providers
Configure AI providers for each mode
Configuration
Complete configuration reference
Keybindings
Customize mode-specific keybindings