Amp
Sourcegraph's multi-model AI coding agent
Amp is Sourcegraph's AI coding agent. It uses a server-side proxy architecture where all LLM requests route through ampcode.com, supporting multiple models behind selectable modes.
Key Features
- Multi-Model Modes: Smart (Claude Opus 4.6), Rush (Claude Haiku 4.5), Deep (GPT-5.2 Codex), and more
- Server-Side Proxy: All requests route through ampcode.com — no direct provider API keys needed
- Specialized Subagents: Uses additional models for code review, search, and research tasks
- Thinking Support: Extended thinking in Deep mode for complex problems
Sesame automatically downloads and caches the Amp CLI binary when a session starts. You do not need to install it manually.
Getting Started
1. Get an API Key
- Go to ampcode.com and sign in (or create an account)
- Navigate to your account settings
- Generate or copy your API key
2. Configure in Sesame
- Go to Settings → Credentials (or click the key icon on Amp in the session form)
- Expand the Amp section
- Paste your API key
- Click Save
3. Create a Session
- Select Amp as the agent
- Choose a mode from the model dropdown:
- Smart — Default. Uses Claude Opus 4.6 for maximum capability
- Rush — Uses Claude Haiku 4.5 for faster, cheaper tasks
- Deep — Uses GPT-5.2 Codex with extended thinking for complex problems
- Free — Free tier (experimental, may have limitations)
- Enter your prompt and start the session
Modes
Amp uses modes instead of direct model selection. Each mode bundles a primary model, system prompt, and tool configuration together on the server side.
| Mode | Primary Model | Best For |
|---|---|---|
| Smart | Claude Opus 4.6 | General coding tasks (default) |
| Rush | Claude Haiku 4.5 | Small, well-defined tasks |
| Deep | GPT-5.2 Codex | Complex problems requiring deep reasoning |
| Free | (Unspecified) | Experimentation (may have limitations) |
Deep mode is an experimental mode. Sesame automatically enables it in Amp's settings when selected.
Specialized Subagents
In addition to the primary model, Amp uses specialized models for subtasks:
| Role | Model | Purpose |
|---|---|---|
| Review | Gemini 3 Pro | Code review and bug detection |
| Search | Gemini 3 Flash | Codebase retrieval |
| Oracle | GPT-5.2 | Complex code reasoning |
| Librarian | Claude Sonnet 4.5 | External code research |
| Image/PDF | Gemini 3 Flash | Multimodal input processing |
These subagents are managed by Amp's server — you don't need to configure them.
Authentication
Amp uses a single API key (AMP_API_KEY) for authentication. All requests are proxied through ampcode.com, so you don't need separate API keys for the underlying model providers.
System-Wide Configuration
Set the API key as an environment variable:
AMP_API_KEY=your-api-key-hereUI Configuration
Add your API key in Settings → Credentials → Amp.
Permissions
Amp runs with --dangerously-skip-permissions in Sesame. Amp's own permission system uses declarative rules rather than interactive prompts, and does not expose an API for programmatic permission responses. This means Amp has full access to read, write, and execute within the sandbox.
Since Amp bypasses its own permission system, rely on Sesame's sandbox security for protection. The sandbox restricts filesystem and network access at the OS level.
Session Continuity
Amp supports session continuity. When you send a follow-up message in a Sesame session, Amp resumes the previous conversation using its internal session ID via --continue. This preserves context across turns.
Network Requirements
Amp requires access to:
ampcode.com*.ampcode.com
These domains are automatically allowed when using Sesame's sandbox security.
Troubleshooting
"AMP_API_KEY not configured"
Ensure you've added your API key in Settings → Credentials → Amp, or set the AMP_API_KEY environment variable.
"Amp process exited unexpectedly"
- Check the session logs for stderr output
- Verify your API key is valid (try logging in at ampcode.com)
- Ensure the sandbox has network access to
ampcode.com
Deep Mode Not Working
Deep mode requires an experimental flag. Sesame handles this automatically by writing amp.experimental.modes: ["deep"] to Amp's settings file before execution. If it still fails:
- Check the session logs for errors
- Ensure your Amp account has access to the Deep mode
Bootstrap Failed
If the Amp binary fails to download:
- Check that the sandbox has internet access
- Verify network/firewall rules allow HTTPS to
storage.googleapis.com - Check the session logs for specific download errors