Skip to content

Commit 68f881e

Browse files
authored
chore: update Sourcegraph AMP to Amp CLI (#382)
## Description Update Sourcegraph AMP to Amp CLI as this seems the preferred name. <!-- Briefly describe what this PR does and why --> ## Type of Change - [ ] New module - [ ] Bug fix - [ ] Feature/enhancement - [x] Documentation - [ ] Other ## Module Information <!-- Delete this section if not applicable --> **Path:** `registry/coder-labs/modules/sourcegraph-amp` **New version:** `v1.0.2` **Breaking change:** [ ] Yes [x] No ## Testing & Validation - [x] Tests pass (`bun test`) - [x] Code formatted (`bun run fmt`) - [x] Changes tested locally ## Related Issues <!-- Link related issues or write "None" if not applicable -->
1 parent 94d9381 commit 68f881e

File tree

1 file changed

+15
-15
lines changed
  • registry/coder-labs/modules/sourcegraph-amp

1 file changed

+15
-15
lines changed
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
---
2-
display_name: Sourcegraph AMP
2+
display_name: Amp CLI
33
icon: ../../../../.icons/sourcegraph-amp.svg
44
description: Sourcegraph's AI coding agent with deep codebase understanding and intelligent code search capabilities
55
verified: false
66
tags: [agent, sourcegraph, amp, ai, tasks]
77
---
88

9-
# Sourcegraph AMP CLI
9+
# Sourcegraph Amp CLI
1010

11-
Run [Sourcegraph AMP CLI](https://sourcegraph.com/amp) in your workspace to access Sourcegraph's AI-powered code search and analysis tools, with AgentAPI integration for seamless Coder Tasks support.
11+
Run [Amp CLI](https://ampcode.com/) in your workspace to access Sourcegraph's AI-powered code search and analysis tools, with AgentAPI integration for seamless Coder Tasks support.
1212

1313
```tf
14-
module "sourcegraph-amp" {
14+
module "amp-cli" {
1515
source = "registry.coder.com/coder-labs/sourcegraph-amp/coder"
16-
version = "1.0.1"
16+
version = "1.0.2"
1717
agent_id = coder_agent.example.id
1818
sourcegraph_amp_api_key = var.sourcegraph_amp_api_key
1919
install_sourcegraph_amp = true
@@ -31,19 +31,19 @@ module "sourcegraph-amp" {
3131
```tf
3232
data "coder_parameter" "ai_prompt" {
3333
name = "AI Prompt"
34-
description = "Write an initial prompt for AMP to work on."
34+
description = "Write an initial prompt for Amp to work on."
3535
type = "string"
3636
default = ""
3737
mutable = true
3838
3939
}
4040
41-
# Set system prompt for Sourcegraph Amp via environment variables
41+
# Set system prompt for Amp CLI via environment variables
4242
resource "coder_agent" "main" {
4343
# ...
4444
env = {
4545
SOURCEGRAPH_AMP_SYSTEM_PROMPT = <<-EOT
46-
You are an AMP assistant that helps developers debug and write code efficiently.
46+
You are an Amp assistant that helps developers debug and write code efficiently.
4747
4848
Always log task status to Coder.
4949
EOT
@@ -53,14 +53,14 @@ resource "coder_agent" "main" {
5353
5454
variable "sourcegraph_amp_api_key" {
5555
type = string
56-
description = "Sourcegraph AMP API key"
56+
description = "Sourcegraph Amp API key. Get one at https://ampcode.com/settings"
5757
sensitive = true
5858
}
5959
60-
module "sourcegraph-amp" {
60+
module "amp-cli" {
6161
count = data.coder_workspace.me.start_count
6262
source = "registry.coder.com/coder-labs/sourcegraph-amp/coder"
63-
version = "1.0.1"
63+
version = "1.0.2"
6464
agent_id = coder_agent.example.id
6565
sourcegraph_amp_api_key = var.sourcegraph_amp_api_key # recommended for authenticated usage
6666
install_sourcegraph_amp = true
@@ -69,8 +69,8 @@ module "sourcegraph-amp" {
6969

7070
## How it Works
7171

72-
- **Install**: Installs Sourcegraph AMP CLI using npm (installs Node.js via NVM if required)
73-
- **Start**: Launches AMP CLI in the specified directory, wrapped with AgentAPI to enable tasks and AI interactions
72+
- **Install**: Installs Sourcegraph Amp CLI using npm (installs Node.js via NVM if required)
73+
- **Start**: Launches Amp CLI in the specified directory, wrapped with AgentAPI to enable tasks and AI interactions
7474
- **Environment Variables**: Sets `SOURCEGRAPH_AMP_API_KEY` and `SOURCEGRAPH_AMP_START_DIRECTORY` for the CLI execution
7575

7676
## Troubleshooting
@@ -80,11 +80,11 @@ module "sourcegraph-amp" {
8080
- If AgentAPI fails to start, verify that your container has network access and executable permissions for the scripts
8181

8282
> [!IMPORTANT]
83-
> For using **Coder Tasks** with Sourcegraph AMP, make sure to pass the `AI Prompt` parameter and set `sourcegraph_amp_api_key`.
83+
> For using **Coder Tasks** with Amp CLI, make sure to pass the `AI Prompt` parameter and set `sourcegraph_amp_api_key`.
8484
> This ensures task reporting and status updates work seamlessly.
8585
8686
## References
8787

88-
- [Sourcegraph AMP Documentation](https://ampcode.com/manual)
88+
- [Amp CLI Documentation](https://ampcode.com/manual)
8989
- [AgentAPI Documentation](https://github.com/coder/agentapi)
9090
- [Coder AI Agents Guide](https://coder.com/docs/tutorials/ai-agents)

0 commit comments

Comments
 (0)