Command-line interface for Amp, Sourcegraph's AI coding agent with interactive and execute modes, custom slash commands, shell integration, and CI/CD support for terminal-based autonomous coding workflows.
Shell mode with $ and $$ for direct command execution
Piped input support for command chaining
Thread resumption with /continue command
Message queuing with /queue and /dequeue
Context compacting with /compact command
Permission rules configuration
AGENTS.md file generation for guidance
Workspace-specific and user-level command customization
API key authentication for automation
Editor integration with $EDITOR variable
Pros
Multiple installation methods for flexibility
Interactive and execute modes for different workflows
Custom slash commands extend functionality
Shell mode enables seamless command execution
Piped input supports Unix-style command chaining
Thread resumption maintains context across sessions
Message queuing for batch operations
Built by Sourcegraph with enterprise backing
Free tier with credits for new users
Praised by developers as superior to alternatives
Cons
Execute mode not available in free tier
Requires API key setup for CI/CD usage
Learning curve for slash commands and custom commands
Use Cases
Best For:
Terminal-focused developersCI/CD pipeline integrationDevelopers who prefer command-line workflowsAutomation and scripting use casesTeams using Sourcegraph ecosystemPower users who want customizable commandsUnix/Linux users comfortable with piping
Not Recommended For:
Developers who exclusively use IDEsUsers unfamiliar with terminal/CLI toolsThose seeking GUI-only solutions