-
Notifications
You must be signed in to change notification settings - Fork 59
feat: amp upgrades for better ux #390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
@@ -36,54 +36,97 @@ variable "icon" { | |||
default = "/icon/sourcegraph-amp.svg" | |||
} | |||
|
|||
variable "folder" { | |||
variable "workdir" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason we changed this since folder is used across almost all modules?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes sense, let me know your thoughts
#362 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a few comments.
I'm going to pull and test this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I'm cool with the shift in variable standards in Agent Modules, I just wanted to make sure this was intentional.
} | ||
``` | ||
|
||
## Prerequisites | ||
|
||
- Include the [Coder Login](https://registry.coder.com/modules/coder-login/coder) module in your template | ||
- Node.js and npm are automatically installed (via NVM) if not already available | ||
- **Node.js and npm must be sourced/available before the amp cli installs** - ensure they are installed in your workspace image or via earlier provisioning steps |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- **Node.js and npm must be sourced/available before the amp cli installs** - ensure they are installed in your workspace image or via earlier provisioning steps | |
- **Node.js and npm must be sourced/available before the Amp cli installs** - ensure they are installed in your workspace image or via earlier provisioning steps |
instruction_prompt = <<-EOT | ||
# Instructions | ||
- You are an Amp assistant that helps developers debug and write code efficiently. | ||
EOT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this is just an illustrative example to show how the instruction_prompt
works and is not required for the agent. It should already know its Amp.
> For using **Coder Tasks** with Amp CLI, make sure to pass the `AI Prompt` parameter and set `sourcegraph_amp_api_key`. | ||
> To use tasks with Amp CLI, create a `coder_parameter` named `"AI Prompt"` and pass its value to the amp-cli module's `ai_prompt` variable. The `folder` variable is required for the module to function correctly. | ||
> For using **Coder Tasks** with Amp CLI, make sure to set `amp_api_key`. | ||
> This ensures task reporting and status updates work seamlessly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@35C4n0r, can we give an example of how to use it with Coder Tasks? Something the user can copy and drop in their existing template. Please also test with tasks-docker template.
Closes #
Description
Type of Change
Module Information
Path:
registry/coder-labs/modules/sourcegraph-amp
New version:
v2.0.0
Breaking change: [x] Yes [ ] No
Testing & Validation
bun test
)bun run fmt
)Related Issues