Skip to content

Add Amp as a default coding agent - #6844

Open
daveashworth wants to merge 7 commits into
omacom:quattrofrom
daveashworth:add-amp-default-agent
Open

daveashworth wants to merge 7 commits into
omacom:quattrofrom
daveashworth:add-amp-default-agent

Conversation

@daveashworth

@daveashworth daveashworth commented Aug 14, 2026 •

Copy link
Copy Markdown

Summary

  • add Amp to the default coding agent picker and launcher
  • install Amp through its official native installer, then launch it from the installer-managed ~/.local/bin path
  • restore the standard user command path generically for locally installed agents in long-running sessions
  • preserve the current default when installation fails and forward initial prompts byte-for-byte
  • add Amp's official monochrome mark to the Omarchy icon font and agent menu

Visual 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

Before: Codex selected Installing Amp Amp loaded
Codex selected and Amp available Official Amp installer downloading the native binary Interactive Amp TUI loaded after installation

The disposable shell inherited Omarchy's production PATH without ~/.local/bin; Amp was absent before selection. After installation, ~/.local/bin/amp pointed 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 unrelated origin/quattro failure caused by the renamed Tokyo Night background; reproduced on a clean base worktree
  • ShellCheck on the changed shell scripts and tests
  • Bash syntax checks and git diff --check origin/quattro
  • clean-home graphical installation and launch shown above
  • merged icon font rendered and verified in the running menu with Amp at U+E908

daveashworth and others added 2 commits August 12, 2026 14:38
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]>
Copilot AI balanced review requested due to automatic review settings August 14, 2026 02:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 in AGENTS.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.

Comment thread test/shell.d/default-agent-test.sh Resolved
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]>
Copilot AI review requested due to automatic review settings August 14, 2026 02:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 7 changed files in this pull request and generated no new comments.

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]>
Copilot AI review requested due to automatic review settings August 14, 2026 03:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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]>
Copilot AI review requested due to automatic review settings August 14, 2026 03:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 7 changed files in this pull request and generated no new comments.

# Conflicts:
#	default/fonts/omarchy/README.md
#	default/fonts/omarchy/omarchy.ttf
#	test/shell.d/menu-test.sh
Copilot AI review requested due to automatic review settings August 14, 2026 03:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 7 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings August 14, 2026 13:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 7 changed files in this pull request and generated no new comments.

@omarchybot omarchybot added the enhancement New feature or request label Sep 27, 2026
dhh added a commit that referenced this pull request Oct 15, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants