Skip to content

Add Ghost to Install > AI - #11250

Open
ferdousbhai wants to merge 2 commits into
omacom:quattrofrom
ferdousbhai:install-ai-ghost
Open

ferdousbhai wants to merge 2 commits into
omacom:quattrofrom
ferdousbhai:install-ai-ghost

Conversation

@ferdousbhai

@ferdousbhai ferdousbhai commented Sep 11, 2026 •

Copy link
Copy Markdown

Adds Ghost to Install > AI and Remove > AI. Ghost is an orchestration layer over the agent CLIs you are signed into (Claude Code, Codex, Grok, OpenCode, pi), with its own HUD as an omarchy-shell plugin. Its package is in omarchy-pkgs (pkgbuilds/ghost, merged in omacom/omarchy-pkgs#390; now at 0.10.0).

  • Install > AI > Ghost (omarchy-install-ai-ghost): omarchy-pkg-add ghost, then starts ghostd for this login and links the HUD plugin into ~/.config/omarchy/plugins/ with ln -sfnT (plain ln -sfn onto an existing directory nests the link inside it). It enables the plugin once the shell has discovered it, with the same bounded wait as omarchy-plugin-add, and refuses with the remedy if a real directory is in the way.
  • Remove > AI > Ghost (omarchy-remove-ai-ghost): takes the HUD out of the running shell and drops ghost. omarchy-pkg-drop's pacman -Rns takes ghost-runtime with it when it came in as Ghost's dependency, and ghostd is stopped first in that case; a runtime installed on its own for another app stays, daemon running. A real plugin directory left by an older install is moved aside, as omarchy-plugin-remove does. The user's ghost homes (~/ghosts) stay.
  • Both call omarchy-plugin-list / -enable / -remove directly. The labels are in the English catalog only; the manual's Install > AI paragraph names Ghost.

Rebased onto quattro as one commit. Per AGENTS.md "When to add a test", the test files are gone: the menu rows are declarative, and the scripts' real logic (the discovery wait and the directory refusal) is tested in Ghost's own repository, from which these files are copied verbatim.

🤖 Generated with Claude Code

@ferdousbhai

Copy link
Copy Markdown
Author

Rebased onto current quattro (Ghost now sits beside the Claude Desktop entries), and updated for a change upstream of this PR: Ghost's HUD is now an omarchy-shell plugin rather than its own Quickshell process and systemd unit, so the install script links and enables ferdousbhai.ghost instead of starting a second unit, and it contributes a bar widget. Both shell tests cover the new lifecycle. Still gated on omacom/omarchy-pkgs#390 landing so omarchy-pkg-add ghost can resolve.

@ferdousbhai

Copy link
Copy Markdown
Author

Pushed a fix to this branch: the install script used ln -sfn for the plugin symlink, which does not replace an existing directory — it creates the link inside it and reports success, leaving ~/.config/omarchy/plugins/ferdousbhai.ghost/plugin and a HUD the shell never loads. Anyone who had a directory there from an earlier manual setup would have hit it with no error to go on.

It now uses ln -sfnT and turns the refusal into the remedy (move it aside, run again). test/shell.d/ghost-install-test.sh gains a case for it; I confirmed the case fails when the old ln -sfn is put back, and the whole file still passes (8 assertions).

@ferdousbhai

Copy link
Copy Markdown
Author

Small correction pushed to this branch: a comment in the install script still said the package carries the browser relay. As of Ghost 0.4.1 the relay is its own extension in its own repository, installed from the browser, so the package ships the daemon, HUD plugin, CLI, and computer-use helper. No behavior change — the comment was the only thing that was wrong — and the description above is corrected to match.

Still gated on omacom/omarchy-pkgs#390 landing so omarchy-pkg-add ghost can resolve.

ferdousbhai added a commit to ferdousbhai/ghost that referenced this pull request Sep 21, 2026
The Omarchy install script travels upstream verbatim, so this repo is its
source of truth — but the fix pushed to omacom/omarchy#11250 never came back
here, and the next render would have regressed it. Plain `ln -sfn` onto an
existing directory creates the link *inside* it and reports success, leaving
~/.config/omarchy/plugins/ferdousbhai.ghost/plugin and a HUD the shell never
loads; -T refuses instead, with the remedy. The contribution test now pins
both the -T and the absence of the old form.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
ferdousbhai added a commit to ferdousbhai/ghost that referenced this pull request Sep 21, 2026
…ository

Two claims the 0.4.x releases falsified. The install script that travels to
omacom/omarchy#11250 verbatim still told the owner the package carries the
browser relay, but the extension became its own product and its own repository
in 0.4.1 and is installed from the browser. And packaging/arch/README.md still
denied Ghost any pacman repository or package-signing key, which 0.4.0 gave it
as the interim install path until Omarchy's repository carries the package.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@omarchybot omarchybot added the enhancement New feature or request label Sep 27, 2026
@greptile-apps

greptile-apps Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no blocking issue was found.

Summary

Adds Ghost under Install > AI and Remove > AI.

  • Installing Ghost starts its service and enables its HUD.
  • Removing Ghost takes out its HUD while keeping user homes.

No new actionable issues were found. The earlier findings are addressed in the current changes.

Reviews (7) · Last reviewed commit: "Ghost removal: keep a runtime installed ..." · Reviewed by Greptile

Comment thread bin/omarchy-install-ai-ghost Resolved
Comment thread test/shell.d/remove-ai-test.sh Resolved
@ferdousbhai

Copy link
Copy Markdown
Author

Pushed fixes for both Greptile findings.

HUD could stay disabled after install. omarchy-shell shell rescanPlugins returns before the shell has walked the plugin directories, so omarchy plugin enable ferdousbhai.ghost could run before the plugin was known and abort as an unknown plugin, with the package and daemon installed but the HUD off. The install script now polls omarchy plugin list --json until it lists ferdousbhai.ghost (40 tries 50ms apart, the same bounded wait omarchy plugin add and omarchy plugin clone use) and only then enables it. If the shell never lists it, the script exits with the enable command to run by hand, rather than calling an enable that cannot succeed.

In test/shell.d/ghost-install-test.sh, the omarchy stub now behaves like a real rescan: it lists the plugin only from the third poll on and refuses to enable it before then. A new case covers a shell that never discovers the plugin: the install fails, does not call enable, and prints the remedy. I confirmed the file fails against the previous script with the same "plugin 'ferdousbhai.ghost' is not known" abort, and it passes with the fix (10 assertions).

Unlink check accepted dangling links. I applied the suggestion: remove-ai-test.sh now checks ! -L as well as ! -e, so a link left behind fails even where /usr/share/ghost/plugin doesn't exist. I checked that it fails when the script's rm -f of the link is taken out. remove-ai-test.sh (37), menu-test.sh, menu-guards-test.sh and menu-plugin-test.sh all pass.

Also, the gate I mentioned earlier is cleared: omacom/omarchy-pkgs#390 has merged and ghost 0.6.0-2 is published on all channels, so omarchy-pkg-add ghost now resolves.

🤖 Generated with Claude Code

@omarchybot omarchybot removed the enhancement New feature or request label Oct 13, 2026
Comment thread default/omarchy/omarchy-menu.jsonc Resolved
Comment thread test/shell.d/ghost-install-test.sh Resolved
@ferdousbhai

Copy link
Copy Markdown
Author

Rebased onto current quattro and pushed fixes for both new Greptile findings.

Menu labels missing from the English catalog. default/i18n/en/menu.json now has install.ai.ghost ("Ghost") and remove.ai.ghost ("Ghost UI"), beside the Claude Desktop entries. i18n-test.sh no longer reports them; its one remaining failure, da/menu.json and system.reboot-boot-menu, fails identically on quattro without this branch.

Numeric comparisons. The three line-order checks in ghost-install-test.sh and remove-ai-test.sh now use (( )).

The rebase kept T3 Code in the manual's app list and the new OpenClaw restart-record test beside Ghost's. ghost-install-test.sh, remove-ai-test.sh and menu-test.sh pass.

🤖 Generated with Claude Code

@omarchybot omarchybot added the enhancement New feature or request label Oct 21, 2026
Comment thread bin/omarchy-remove-ai-ghost Resolved
Comment thread bin/omarchy-remove-ai-ghost Resolved
ferdousbhai added a commit to ferdousbhai/ghost that referenced this pull request Oct 29, 2026
… directory aside

Greptile on omacom/omarchy#11250:

- Dropping ghost-runtime outright removed a runtime the owner had
  installed on its own for another app. The menu now drops only ghost:
  omarchy-pkg-drop's pacman -Rns takes ghost-runtime with it when it was
  Ghost's dependency and leaves an explicitly installed one, and ghostd
  stops only when the runtime goes.
- A real plugin directory left by an older install made rm -f fail with
  no shell to answer, stopping the removal halfway under set -e. It is
  moved aside instead, as omarchy-plugin-remove does.

The payload test runs both cases.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
ferdousbhai and others added 2 commits November 14, 2026 13:12
Ghost is an orchestration layer over the agent CLIs the owner is signed
into, with its own HUD, packaged in omarchy-pkgs (pkgbuilds/ghost).

- Install > AI > Ghost installs the package, starts ghostd for this
  login, links the HUD plugin and enables it once the shell has
  discovered it (the same bounded wait as omarchy-plugin-add).
- Remove > AI > Ghost stops ghostd, takes the HUD out of the shell and
  drops ghost and ghost-runtime; every ghost home stays.
- Both call omarchy-plugin-list/-enable/-remove directly, and the labels
  are in the English catalog only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…n directory aside

From review: drop only ghost and let omarchy-pkg-drop's pacman -Rns take
ghost-runtime when it came in as Ghost's dependency, so a runtime the
owner installed on its own for another app stays, and ghostd stops only
when the runtime goes. A real plugin directory from an older install is
moved aside rather than failing rm -f under set -e.

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.

2 participants