Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions bin/omarchy-agent
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ grok)
command=(grok --permission-mode bypassPermissions)
[[ -n ${prompt:-} ]] && command+=(-- "$prompt")
;;
gjc)
command=(gjc)
[[ -n ${prompt:-} ]] && command+=(-- "$prompt")
;;
openclaw)
# The launcher owns onboarding and the gateway dance: OpenClaw's terminal UI
# must attach to the running gateway (the embedded `openclaw chat` refuses to
Expand Down
5 changes: 3 additions & 2 deletions bin/omarchy-default-agent
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# omarchy:summary=Set and launch the default coding agent
# omarchy:args=[pi|omp|opencode|ori|claude|codex|grok|openclaw|agy|hermes|copilot|crush|cursor-agent|muse|kimi|qwen|dsh|mcode|kiro-cli|freebuff|kilo|devin|amp|commandcode]
# omarchy:args=[pi|omp|opencode|ori|claude|codex|grok|openclaw|agy|hermes|copilot|crush|cursor-agent|muse|kimi|qwen|dsh|mcode|kiro-cli|freebuff|kilo|devin|amp|commandcode|gjc]
# omarchy:examples=omarchy default agent | omarchy default agent codex | omarchy default agent claude

installing=false
Expand Down Expand Up @@ -32,6 +32,7 @@ claude | claude-code) agent="claude"; name="Claude Code" ;;
codex) agent="codex"; name="Codex" ;;
crush) agent="crush"; name="Crush" ;;
grok) agent="grok"; name="Grok" ;;
gjc | gajae-code) agent="gjc"; name="Gajae Code"; agent_package="npm:@gajae-code/coding-agent" ;;
openclaw) agent="openclaw"; name="OpenClaw"; agent_installer="omarchy-install-openclaw-cli" ;;
agy | antigravity | antigravity-cli | gemini | gemini-cli) agent="agy"; name="Antigravity"; agent_package="antigravity-cli" ;;
hermes) agent="hermes"; name="Hermes"; agent_installer="omarchy-install-hermes-cli" ;;
Expand Down Expand Up @@ -65,7 +66,7 @@ devin | devin-cli)
amp | ampcode) agent="amp"; name="Amp" ;;
commandcode | command-code | cmdc) agent="commandcode"; name="Command Code"; agent_package="npm:command-code" ;;
*)
echo "Usage: omarchy-default-agent <pi|omp|opencode|ori|claude|codex|grok|openclaw|agy|hermes|copilot|crush|cursor-agent|muse|kimi|qwen|dsh|mcode|kiro-cli|freebuff|kilo|devin|amp|commandcode>"
echo "Usage: omarchy-default-agent <pi|omp|opencode|ori|claude|codex|grok|gjc|openclaw|agy|hermes|copilot|crush|cursor-agent|muse|kimi|qwen|dsh|mcode|kiro-cli|freebuff|kilo|devin|amp|commandcode>"
exit 1
;;
esac
Expand Down
5 changes: 3 additions & 2 deletions default/omarchy/omarchy-menu.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,9 @@
"setup.default.agent.dsh": {"icon":"","iconFont":"omarchy","label":"DeepSeek Harness","checked":"[[ \"$(omarchy-default-agent)\" == \"dsh\" ]]","action":"omarchy-default-agent dsh"},
"setup.default.agent.devin": {"icon":"","iconFont":"omarchy","label":"Devin CLI","checked":"[[ \"$(omarchy-default-agent)\" == \"devin\" ]]","action":"omarchy-default-agent devin"},
"setup.default.agent.freebuff": {"icon":"","iconFont":"omarchy","label":"Freebuff","checked":"[[ \"$(omarchy-default-agent)\" == \"freebuff\" ]]","action":"omarchy-default-agent freebuff"},
"setup.default.agent.grok": {"icon":"","iconFont":"omarchy","label":"Grok","checked":"[[ \"$(omarchy-default-agent)\" == \"grok\" ]]","action":"omarchy-default-agent grok"},
"setup.default.agent.hermes": {"icon":"","iconFont":"omarchy","label":"Hermes","checked":"[[ \"$(omarchy-default-agent)\" == \"hermes\" ]]","action":"omarchy-default-agent hermes"},
"setup.default.agent.grok": {"icon":"","iconFont":"omarchy","label":"Grok","checked":"[[ \"$(omarchy-default-agent)\" == \"grok\" ]]","action":"omarchy-default-agent grok"},

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.

P2 Existing icons disappear

Adding Gajae Code also clears the existing Grok and Hermes icons. Empty icon values hide their glyphs, so both existing choices lose their icons. Restore those two values; adding gjc does not require changing them.

"setup.default.agent.gjc": {"icon":"","iconFont":"omarchy","label":"Gajae Code","checked":"[[ \"$(omarchy-default-agent)\" == \"gjc\" ]]","action":"omarchy-default-agent gjc"},

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.

P1 Translation check fails

The new setup.default.agent.gjc row has no matching entry in default/i18n/en/menu.json. i18n-test.sh requires every menu row to have an English catalog entry, so the PR's translation check will fail. Add the matching label to the English catalog, as required by docs/i18n.md.

File Used: docs/i18n.md (source)

"setup.default.agent.hermes": {"icon":"","iconFont":"omarchy","label":"Hermes","checked":"[[ \"$(omarchy-default-agent)\" == \"hermes\" ]]","action":"omarchy-default-agent hermes"},
"setup.default.agent.kilo": {"icon":"","iconFont":"omarchy","label":"Kilo","checked":"[[ \"$(omarchy-default-agent)\" == \"kilo\" ]]","action":"omarchy-default-agent kilo"},
"setup.default.agent.kimi": {"icon":"","iconFont":"omarchy","label":"Kimi","checked":"[[ \"$(omarchy-default-agent)\" == \"kimi\" ]]","action":"omarchy-default-agent kimi"},
"setup.default.agent.kiro-cli": {"icon":"","iconFont":"omarchy","label":"Kiro CLI","checked":"[[ \"$(omarchy-default-agent)\" == \"kiro-cli\" ]]","action":"omarchy-default-agent kiro-cli"},
Expand Down
1 change: 1 addition & 0 deletions etc/mise/conf.d/omarchy-tools.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ cursor-agent = { version = "latest", lazy = true, auto_update = "4h", minimum_re
gh = { version = "latest", lazy = true, minimum_release_age = "0s" }
ghui = { version = "latest", lazy = true, minimum_release_age = "0s" }
grok = { version = "latest", lazy = true, auto_update = "4h", minimum_release_age = "0s" }
"npm:@gajae-code/coding-agent" = { version = "latest", lazy = true, auto_update = "4h", lazy_bins = ["gjc"], minimum_release_age = "0s" }
hey-cli = { version = "latest", lazy = true, minimum_release_age = "0s" }
"http:devin" = { version = "latest", lazy = true, auto_update = "4h", lazy_bins = ["devin"], minimum_release_age = "0s", platforms_linux_x64_url = "https://static.devin.ai/cli/{{ version }}/devin-{{ version }}-x86_64-unknown-linux.tar.gz", platforms_linux_arm64_url = "https://static.devin.ai/cli/{{ version }}/devin-{{ version }}-aarch64-unknown-linux.tar.gz", bin_path = "bin", version_list_url = "https://static.devin.ai/cli/current/manifest.json", version_json_path = ".version" }
"http:kiro-cli" = { version = "latest", lazy = true, auto_update = "4h", lazy_bins = ["kiro-cli"], minimum_release_age = "0s", platforms_linux_x64_url = "https://prod.download.cli.kiro.dev/stable/{{version}}/kirocli-x86_64-linux.tar.gz", platforms_linux_arm64_url = "https://prod.download.cli.kiro.dev/stable/{{version}}/kirocli-aarch64-linux.tar.gz", version_list_url = "https://prod.download.cli.kiro.dev/stable/latest/manifest.json", version_json_path = ".version" }
Expand Down
1 change: 1 addition & 0 deletions manual/17-ai.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Omarchy includes launchers for the coding agents below without choosing a defaul
| `dsh` | [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) |
| `freebuff` | [Freebuff](https://freebuff.com), Codebuff's free, ad-supported coding agent |
| `grok` | [Grok Build](https://x.ai/build) from xAI |
| `gjc` | [Gajae Code](https://gajae.com/) |
| `hermes` | [Hermes](https://hermes-agent.nousresearch.com/), Nous Research's agent |
| `kilo` | [Kilo](https://kilo.ai/docs/code-with-ai/platforms/cli), an OpenCode-based coding agent |
| `kimi` | [Kimi Code](https://www.kimi.com/code/docs/en/) |
Expand Down
13 changes: 10 additions & 3 deletions test/shell.d/default-agent-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export OMARCHY_PATH="$ROOT"
export OMARCHY_MISE_CONFIG_PATH="$test_tmp/etc/mise/config.toml"

grok_package="grok"
gjc_package="npm:@gajae-code/coding-agent"
omp_package="oh-my-pi"
crush_package="crush"
agy_package="antigravity-cli"
Expand Down Expand Up @@ -183,6 +184,7 @@ assert_lazy_stub() {
}

assert_lazy_stub "$grok_package" grok
assert_lazy_stub "$gjc_package" gjc
assert_lazy_stub "$omp_package" omp
assert_lazy_stub "$crush_package" crush
assert_lazy_stub "$ori_package" ori
Expand All @@ -204,7 +206,7 @@ for tool in "$ori_package" basecamp; do
grep -Eq "^$tool = \\{ version = \"latest\", lazy = true, minimum_release_age = \"0s\" \\}$" "$lazy_config" ||
fail "user setup declares $tool as a native lazy tool"
done
for tool in codex claude copilot opencode pi "\"$kimi_package\""; do
for tool in codex claude copilot opencode pi "\"$gjc_package\"" "\"$kimi_package\""; do

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.

P2 Test checks text only

Adding gjc_package to this loop only checks the text of the declaration just added. AGENTS.md explicitly prohibits tests that grep source or config for the new string. Remove this added text check before merging; keep the tests that exercise agent selection and launch arguments.

Suggested change
for tool in codex claude copilot opencode pi "\"$gjc_package\"" "\"$kimi_package\""; do
for tool in codex claude copilot opencode pi "\"$kimi_package\""; do

File Used: AGENTS.md (source)

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

grep -Eq "^$tool = \\{ version = \"latest\", lazy = true, auto_update = \"4h\", " "$lazy_config" ||
fail "user setup declares $tool as a self-updating native lazy tool"
done
Expand Down Expand Up @@ -242,12 +244,12 @@ for agent in "${!declared_option_bins[@]}"; do
fail "user setup declares ${!tool_var} with ${option%%=*} inside its table"
done
done
[[ $(grep -c 'auto_update = "4h"' "$lazy_config") == 21 ]] || fail "only the agent CLIs update themselves"
[[ $(grep -c 'auto_update = "4h"' "$lazy_config") == 22 ]] || fail "only the agent CLIs update themselves"
for tool in node uv; do
grep -Eq "^$tool = \\{ version = \"latest\", lazy = true, minimum_release_age = \"0s\" \\}$" "$lazy_config" ||
fail "user setup declares $tool as a native lazy tool"
done
[[ $(grep -c 'lazy = true' "$lazy_config") == 31 ]] || fail "user setup declares every default mise tool as lazy"
[[ $(grep -c 'lazy = true' "$lazy_config") == 32 ]] || fail "user setup declares every default mise tool as lazy"
grep -Fx "reshim --system" "$mise_history" >/dev/null || fail "user setup builds the system lazy bootstrap shims"
pass "user setup configures system lazy tools from registry shorthands"
: >"$stub_log"
Expand Down Expand Up @@ -337,6 +339,8 @@ declare -A expected_agents=(
[codex]="codex"
[crush]="crush"
[grok]="grok"
[gjc]="gjc"
[gajae-code]="gjc"
[agy]="agy"
[antigravity]="agy"
[antigravity-cli]="agy"
Expand Down Expand Up @@ -383,6 +387,7 @@ declare -A expected_packages=(
[codex]="codex"
[crush]="$crush_package"
[grok]="$grok_package"
[gjc]="$gjc_package"
[agy]="$agy_package"
[copilot]="copilot"
[kimi]="$kimi_package"
Expand Down Expand Up @@ -720,6 +725,7 @@ assert_launch codex env -u CODEX_HOME OMARCHY_AGENT_CODEX_HOME= codex --approve-
assert_launch muse muse --approval-mode never -- "Review this project"
assert_launch crush crush run "Review this project"
assert_launch grok env -u GROK_HOME OMARCHY_AGENT_GROK_HOME= grok --permission-mode bypassPermissions -- "Review this project"
assert_launch gjc gjc -- "Review this project"
assert_launch cursor-agent cursor-agent --yolo --trust agent -- "Review this project"
assert_launch hermes env -u HERMES_SESSION_SOURCE hermes chat --yolo --tui "--query=Review this project"
assert_launch agy agy --dangerously-skip-permissions --prompt-interactive "Review this project"
Expand Down Expand Up @@ -773,6 +779,7 @@ assert_bypass codex env -u CODEX_HOME OMARCHY_AGENT_CODEX_HOME= codex --approve-
assert_bypass muse muse --approval-mode never
assert_bypass crush crush --yolo
assert_bypass grok env -u GROK_HOME OMARCHY_AGENT_GROK_HOME= grok --permission-mode bypassPermissions
assert_bypass gjc gjc
assert_bypass cursor-agent cursor-agent --yolo --trust
assert_bypass hermes hermes --yolo
assert_bypass agy agy --dangerously-skip-permissions
Expand Down