Amp is an agentic coding tool built by Sourcegraph. It runs in VS Code (and compatible forks like Cursor, Windsurf, and VSCodium) and as a command-line tool. It’s also multiplayer — you can share threads and collaborate with your team.
Sign in to ampcode.com and follow the instructions to install Amp in VS Code (or compatible forks like Cursor, Windsurf, and VSCodium) and the CLI.
Amp currently uses Claude Sonnet 4 for most tasks. For the best results, follow these guidelines:
AGENT.md
file to guide Amp on how to run your tests and build steps and to avoid doing inappropriate things.Here are some examples of prompts we’ve used with Amp:
<build command>
and fix all the errors”<local development server url>
to see this UI component. Then change it so that it looks more minimal. Frequently check your work by screenshotting the URL.”git diff
to see the code someone else wrote; review the code thoroughly and point out any potential edge cases that were missed”git diff
to see the current changes, remove debug statements”psql
to connect to my local database, then rewire all uploads in the image uploads table to be owned by my user, bob@example.com”Also see Thorsten Ball’s How I Use Amp.
If you’re on a team, use Amp’s thread sharing to learn from each other.
AGENT.md
An AGENT.md
file in your workspace gives Amp information about your project’s codebase structure, development practices, and coding standards. Amp offers to generate an AGENT.md
for you if none exists.
Planned: Support for scoped AGENT.md
files in subdirectories and other more granular agent guidance.
Amp supports image uploads, allowing you to share screenshots, diagrams, and visual references with the AI. Images can provide important context for debugging visual issues or understanding UI layouts.
To upload images, you can:
You can mention files directly in your prompts by typing @ followed by a pattern to fuzzy-search. It can help speed up responses by avoiding the need to search the codebase.
Amp uses different shortcuts depending on the operating system and editor you’re using.
Command | Shortcut |
---|---|
New Thread | CmdL |
Toggle Agent Visibility | CmdI |
Go to Next Thread | CmdShift] |
Go to Previous Thread | CmdShift[ |
Threads are conversations with the agent, containing all your messages, context, and tool calls. Your threads are synced to ampcode.com. If you’re on a team, your threads are also shared with your team by default, just like Git branches on a shared remote repository.
Including links to Amp threads with your changes when submitting for code review helps provide context. Reading and searching your team’s threads can help you see what’s going on and how other people are using Amp.
Threads can be public (visible to anyone on the internet with the link), team-shared (visible to your team members), or private (visible only to you).
If you’re on a team, your threads are shared by default with your team members.
If you are not on a team, your threads are only visible to you by default.
You can change a thread’s visibility at any time through the sharing menu at the top of the thread.
As you work with Amp, your thread accumulates context within the model’s context window. Amp shows your context window usage and warns when approaching limits.
When approaching the thread context limit, you can hover over the context window indicator and use the following:
Amp tracks changes that the agent makes to files during your conversation, which you can track and revert:
Editing a message in a thread automatically reverts any changes the agent made after that message
Amp Tab is our new in-editor completion engine, designed to anticipate your next actions and reduce the time spent manually writing code.
It uses a custom model that was trained to understand what you are trying to do next, based on your recent changes, your language server’s diagnostics, and what we call semantic context.
Amp Tab can suggest regular single or multi-line edits to change entire code blocks, next to your cursor or farther away, somewhere else in your current document.
Enable Amp Tab by adding the following to your VS Code settings:
{
"amp.tab.enabled": true
}
Currently, Amp Tab is free to use as a research preview for all Amp users.
Teams provide collaborative workspaces where knowledge can be shared across your organization. Create a team from the settings page. To join a team, you need an invitation from an existing team member.
Team threads are visible to all team members by default, making it easy to learn from others and build on their work.
Teams provide pooled billing of usage, making it easier to manage costs across your organization. If a member of your team joins with free personal usage available, their free usage will be used before the paid team usage.
Each team includes a leaderboard that tracks thread activity and contributions from team members, encouraging engagement and highlighting active participants.
Tools are what the underlying model uses to assist with tasks. For the highest quality results we recommend you use a curated set of tools, with prompts adjusted to fit the underlying model.
Amp comes with a curated set of built-in tools specifically designed for coding. You can find the list of built-in tools inside Amp’s extension settings.
You can extend Amp by adding tools from MCP (Model Context Protocol) servers.
You can configure MCP servers in amp.mcpServers
in your configuration file. In VS Code, you can also press + Add MCP Server in Amp’s Settings interface.
For best results:
amp.tools.disable
in your configuration file.Stdio MCP servers (running a local command):
"amp.mcpServers": {
"playwright": {
"command": "npx",
"args": ["-y", "@playwright/mcp@latest", "--headless", "--isolated"]
},
"postgres": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-postgres", "postgresql://localhost/amp"],
"env": {
"PGDATABASE": "mydb"
}
}
}
HTTPS/SSE MCP server (connecting to a remote server):
"amp.mcpServers": {
"semgrep": {
"url": "https://mcp.semgrep.ai/sse"
}
}
You can connect the Amp CLI or VS Code extension to JetBrains IDEs using MCP. This gives Amp access to JetBrains IDE diagnostics, which help the agent iterate against compiler errors and other information provided by the JetBrains IDE.
To use Amp with JetBrains IDEs:
Install the JetBrains MCP Server plugin into the JetBrains IDE. Ensure the JetBrains IDE is running with the plugin installed.
Add npx -y @jetbrains/mcp-proxy
as an MCP server to Amp. In VS Code, you can add this in the MCP Servers settings panel in the editor or add the following to VS Code settings. In the CLI, add the following to your configuration file:
"amp.mcpServers": {
"jetbrains": {
"command": "npx",
"args": ["-y", "@jetbrains/mcp-proxy"]
}
}
Amp has a built-in safety system specifically for terminal commands that determines which commands require explicit permission before execution.
By default, Amp automatically allows certain read-only and safe commands like ls
, cat
, and git status
. Common development commands like go test
, cargo build
, and pnpm run build
are also pre-approved. For all other commands, Amp will prompt for permission before execution to protect your system.
You can configure Amp to execute additional commands without prompting for permission each time by adding them to the "amp.commands.allowlist"
array in your extension or CLI settings:
"amp.commands.allowlist": [
"pnpm exec tsc --build",
"pnpm -C web check",
"pnpm -C server test"
]
Both the Amp extension and CLI use this same setting format. You can use simple command patterns like make build
or wildcards like npm run * --test
to allow multiple similar commands.
Amp can be configured through settings in VS Code (.vscode/settings.json
) and the CLI configuration file. All settings use the amp.
prefix.
The CLI configuration file location varies by operating system:
path
C:\Users\USERNAME\AppData\Roaming\amp\settings.json
path
/Users/USERNAME/.config/amp/settings.json
path
/home/USERNAME/.config/amp/settings.json
When using the Amp CLI in corporate networks with proxy servers or custom certificates, set these standard Node.js environment variables in your shell profile or CI environment as needed:
export HTTP_PROXY=your-proxy-url
export HTTPS_PROXY=your-proxy-url
export NODE_EXTRA_CA_CERTS=/path/to/your/certificates.pem
string
https://ampcode.com/
https://ampcode.com/
boolean
default: true
boolean
default: true
boolean
default: true
array
default: "[]"
["read_file", "create_file", "edit_file", "undo_edit", "list_directory", "glob", "format_file", "Grep", "codebase_search", "Bash", "read_web_page", "web_search", "get_diagnostics", "think", "mermaid", "todo_write", "todo_read", "Task", "run_routine", "builtin:edit_file"]
number
default: 300
boolean
default: false
number
default: 1
boolean
default: true
string
default: "vscode-terminal"
vscode-terminal
,node-spawn
number
default: 90
vscode-terminal
environmentstring
default: "always"
.bashrc
, .zshrc
, .envrc
) as visible from the workspace root directoryalways
,never
,daily
object
array
default: "[]"
["pnpm exec tsc --build", "pnpm -C web check", "pnpm -C server test"]
See the Amp Security Reference document.
Join the Amp Discord to connect with the Amp team and other Amp users, share tips and tricks, and get help from the community.
For billing questions, contact amp-billing-help@sourcegraph.com.
Upon signing up, most users get $10 USD in free usage. You can purchase more as an individual or for your team. Unused credits expire after one year of account inactivity.
Usage is consumed based on LLM usage and usage of certain other tools (like web search) that cost us to serve. We pass these costs through to you directly with no markup, for individuals and non-enterprise teams.
Enterprise usage is 50% more expensive than individual and team usage, and includes SSO (Okta, SAML, etc.) and zero data retention for text inputs in LLM inference. See Amp Security Reference for more information.
To start using Amp Enterprise, go to your team and click “Change Plan” in the top right corner. This requires a special one-time $1,000 USD purchase, which grants your team $1,000 USD of Amp Enterprise usage and upgrades your team to Enterprise.
With Amp Enterprise Premium, invoice payments are offered for purchases of $5,000+ USD, and volume discounts are available for purchases of $25,000+ USD. Contact amp-devs@sourcegraph.com for access to these purchasing options and for general information about Amp Enterprise.
We may ask you to share your thread with authorized Sourcegraph staff members to help diagnose quality issues:
You can also share your thread via the CLI:
amp threads share --support <thread-id>
This will allow authorized Sourcegraph staff members to view your thread for debugging purposes.
We may ask you to generate a support bundle and share it directly with authorized Sourcegraph staff members to help diagnose quality issues. You can email support bundles to amp-devs@sourcegraph.com.
To generate a support bundle:
npx @sourcegraph/amp doctor
.json.gz
file in your current directoryWhat’s included in a support bundle:
AMP_
prefixSupport bundles are automatically redacted using Amp’s built-in secret detection patterns but we recommend manually reviewing the information before sharing support bundles as log files gathered may contain sensitive information.
We may ask you to share information from your Visual Studio Code Developer Console.
To open the Developer Console:
macOS/Windows/Linux:
Ctrl/Cmd+Shift+P
to open the Command PaletteOr:
Ctrl/Cmd+Option/Alt+I
The Developer Console will open as a separate window or panel, showing the Console, Network, and other debugging tabs that can help authorized Sourcegraph staff members diagnose quality issues.
Check ampcodestatus.com for service status and to sign up for alerts via email, RSS, Slack. Alternatively, follow @ampcodestatus on X.
Follow Amp's News for the changelog and other updates from the Amp team.
Amp provides REST APIs for programmatic access to team data and metrics. See the dedicated API documentation for complete details on available endpoints, authentication, and examples.
See Amp's Frequently Ignored Feedback for the most common valid feedback that we've chosen to not address.