Repository navigation
Add Amp as a default coding agent - #6844
daveashworth wants to merge 7 commits into
Conversation
Wire Amp through the default-agent picker, launcher, menu, and mise wrapper using npm:@ampcode/cli, matching the Grok install path. Amp-Thread-ID: https://ampcode.com/threads/T-019ff763-d87a-70ef-b923-bcd2502ab40d Co-authored-by: Amp <[email protected]>
Install Amp through its supported native installer, preserve the current default when installation fails, and launch it from the path the installer configures. Use Amp's official monochrome mark in the agent menu and cover installation, prompt forwarding, and icon behavior. Amp-Thread-ID: https://ampcode.com/threads/T-019ff77c-dbde-7698-9087-494b79ab6683 Co-authored-by: Amp <[email protected]>
There was a problem hiding this comment.
Pull request overview
Adds Amp as a selectable coding agent with native installation, launcher integration, menu branding, and tests.
Tip
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
Changes:
- Adds Amp to the default-agent menu and icon font documentation.
- Installs Amp using its official installer.
- Adds launcher behavior and shell coverage for Amp.
Reviewed changes
Copilot reviewed 4 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
bin/omarchy-agent |
Adds Amp launch and prompt handling. |
bin/omarchy-default-agent |
Adds Amp selection and installation. |
default/omarchy/omarchy-menu.jsonc |
Adds the Amp menu entry. |
default/fonts/omarchy/README.md |
Documents the Amp glyph. |
test/shell.d/default-agent-test.sh |
Tests Amp installation and launching. |
test/shell.d/menu-test.sh |
Tests Amp menu and glyph registration. |
Suppressed comments (2)
test/shell.d/default-agent-test.sh:179
- The quoted variable on the right side of
[[ ]]violates the repository's shell style (AGENTS.md:17), which explicitly leaves variables unquoted in these conditionals.
[[ -L $test_home/.local/bin/amp && $(readlink "$test_home/.local/bin/amp") == "$official_amp_target" ]] ||
fail "Remove Preinstalls preserves an independent Amp installation"
test/shell.d/default-agent-test.sh:400
- This newly quotes a variable inside
[[ ]], contrary to the established shell style inAGENTS.md:17. Restore the unquoted expansion used by these conditionals.
[[ ${actual[$index]} == "${expected[$index]}" ]] ||
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Restore the standard user command path for any locally installed agent when a long-running desktop session predates the current environment bootstrap. Cover the behavior with a non-Amp provider so the launcher no longer embeds an Amp-specific PATH condition. Amp-Thread-ID: https://ampcode.com/threads/T-019ff77c-dbde-7698-9087-494b79ab6683 Co-authored-by: Amp <[email protected]>
Normalize the standard user command path once before selecting an installation backend, so stale sessions can find local tools without adding repeated entries during Amp's nested install flow. Cover an already-correct PATH with a regression test. Amp-Thread-ID: https://ampcode.com/threads/T-019ff77c-dbde-7698-9087-494b79ab6683 Co-authored-by: Amp <[email protected]>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 7 changed files in this pull request and generated no new comments.
Suppressed comments (3)
test/shell.d/default-agent-test.sh:287
- Project Bash style requires variable expansions to remain unquoted inside
[[ ]](AGENTS.md:17). Remove the quotes around the comparison operand.
[[ $(<"$path_log") == "$path_with_local_bin" ]] ||
test/shell.d/default-agent-test.sh:430
- Project Bash style requires variable expansions to remain unquoted inside
[[ ]](AGENTS.md:17). This change reverses the established form, so keep the array expansion unquoted.
[[ ${actual[$index]} == "${expected[$index]}" ]] ||
test/shell.d/default-agent-test.sh:185
- Project Bash style requires variable expansions to remain unquoted inside
[[ ]](AGENTS.md:17). Remove the quotes around the comparison operand.
This issue also appears in the following locations of the same file:
- line 287
- line 430
[[ -L $test_home/.local/bin/amp && $(readlink "$test_home/.local/bin/amp") == "$official_amp_target" ]] ||
Leave variables unquoted in Bash conditionals as required by the project style. Use a case branch where an arbitrary expected command must remain a literal rather than becoming a glob pattern. Amp-Thread-ID: https://ampcode.com/threads/T-019ff77c-dbde-7698-9087-494b79ab6683 Co-authored-by: Amp <[email protected]>
# Conflicts: # default/fonts/omarchy/README.md # default/fonts/omarchy/omarchy.ttf # test/shell.d/menu-test.sh
Amp-Thread-ID: https://ampcode.com/threads/T-019ff77c-dbde-7698-9087-494b79ab6683 Co-authored-by: Amp <[email protected]> # Conflicts: # test/shell.d/default-agent-test.sh
Amp (amp) joins the default agent picker, installed through mise's registry amp package (npm:@ampcode/cli) instead of the curl | bash installer, with a lazy stub and migration like the other agents. The launcher runs it with --dangerously-allow-all, and seeds a prompt by piping it in, which Amp takes as the first message of an interactive session; a positional message only works with --execute, which exits after one turn. From #6844. Co-authored-by: Dave Ashworth <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Summary
~/.local/binpathVisual proof
The continuous demo starts with Codex selected in a clean disposable home, selects Amp, runs the official installer from scratch, and ends in the loaded interactive Amp TUI.
Watch the 25-second end-to-end demo
The disposable shell inherited Omarchy's production PATH without
~/.local/bin; Amp was absent before selection. After installation,~/.local/bin/amppointed to the newly installed~/.amp/bin/amp, and that executable was the running TUI process.Verification
./test/shell— all 176 test files passed (2,172 assertions)./test/cli— reaches an unrelatedorigin/quattrofailure caused by the renamed Tokyo Night background; reproduced on a clean base worktreegit diff --check origin/quattroU+E908