Key AI Features
Agent Panel
The Agent Panel provides a conversational interface for AI-assisted development:- Multi-turn conversations with context awareness
- File and directory context integration
- Terminal command execution with AI assistance
- Code editing with diff preview and review
- Thread history for organizing conversations
- Multiple AI agents including native Zed Agent and custom external agents
Inline Assistant
The Inline Assistant brings AI directly into your editor:- Code generation from natural language prompts
- Code transformation and refactoring
- Multi-selection support for batch operations
- Streaming completions with real-time preview
- Alternative suggestions from multiple models
- Undo/redo support for AI-generated changes
Terminal Assistant
AI-powered terminal command assistance:- Command generation from natural language
- Error explanation and debugging help
- Command history integration
- Safe command execution with confirmation prompts
Use Cases
Code Generation
Generate code from natural language descriptions:Code Review
Use the Agent Panel to review changes:Refactoring
Transform code structure with the Inline Assistant:Documentation
Generate documentation from code:Debugging
Get help understanding and fixing issues:Learning
Ask questions about your codebase:AI Providers
Zed supports multiple AI providers out of the box:- Anthropic (Claude models)
- OpenAI (GPT models)
- Google AI (Gemini models)
- Zed Cloud (Powered by various providers)
- Ollama (Local models)
- Custom providers (OpenAI-compatible APIs)
Model Selection
Configure different models for different tasks:Context Awareness
Zed’s AI features understand your development context:- File contents and structure
- Active selections and cursor position
- Git repository state and history
- Language server information (types, definitions, diagnostics)
- Terminal output and history
- Project structure and dependencies
Privacy & Security
- API keys are stored securely in your system keychain
- Code context is only sent when explicitly requested
- Tool permissions can be configured to control AI actions
- Local models (via Ollama) keep everything on your machine
Getting Started
- Enable AI features in Settings → Agent
- Configure a provider in Settings → Language Models
- Open the Agent Panel with
Cmd+Shift+A(macOS) orCtrl+Shift+A(Linux/Windows) - Use Inline Assistant by selecting code and pressing
Cmd+Enter
Next Steps
- Agent Panel Guide - Learn to use the conversational AI interface
- Inline Assistant - Master inline code generation
- Configuration - Customize AI behavior and models
- Providers Setup - Connect your preferred AI providers
