Amp

Sourcegraph's agentic coding assistant

Visit Website

Amp is Sourcegraph's AI coding agent designed for team collaboration. It features autonomous reasoning, comprehensive code editing, and can work as both a VS Code extension and CLI tool. With 200K token context and thread sharing, it excels at complex multi-file tasks.

Quick Reference

amp: Start interactive session

Thread sharing: Collaborate with teammates

200K token context window

Subagents: Handle complex multi-step tasks

AGENT.md: Project context file

Works in VS Code, Cursor, VSCodium, CLI

Compact Thread: Manage context efficiently

New Thread with Summary: Preserve knowledge

DevContainer compatible

Enterprise security options

Setup Guide

# Getting Started with Amp ## Installation ### VS Code Extension 1. Open Extensions (Cmd+Shift+X) 2. Search "Amp" by Sourcegraph 3. Install and authenticate ### CLI ```bash npm install -g @sourcegraph/amp-cli amp auth login ``` ## Key Features ### Agentic Coding Amp can autonomously: - Edit multiple files - Run commands - Execute tests - Iterate on results ### Thread Sharing Share conversation threads with teammates: - Collaborative problem solving - Knowledge transfer - Code review assistance ### 200K Token Context Generous context window allows: - Understanding large codebases - Multi-file refactoring - Complex architectural changes ### Subagents For complex tasks, Amp spawns subagents: - Each has own context and tools - Keeps main thread clean - Handles extensive output ## AGENT.md Files Create an `AGENT.md` at project root: ```markdown # Project Context ## Build Commands - `npm run build` - `npm test` ## Code Conventions - Use TypeScript strict mode - Follow ESLint rules ## Architecture - src/api: REST endpoints - src/components: React components ```