Skip to content

Add AFK as a default coding agent - #10079

Open
lcavadas wants to merge 6 commits into
omacom:quattrofrom
lcavadas:add-afk-default-agent
Open

lcavadas wants to merge 6 commits into
omacom:quattrofrom
lcavadas:add-afk-default-agent

Conversation

@lcavadas

@lcavadas lcavadas commented Sep 3, 2026 •

Copy link
Copy Markdown

Summary

  • add AFK as a browser-first default coding agent
  • provision an AFK mise wrapper during user setup and migration
  • pass the current project and optional task to AFK
  • add menu, icon-font, migration, launcher, and wrapper test coverage

Testing

  • bash -n bin/omarchy-agent bin/omarchy-default-agent bin/omarchy-mise-install bin/omarchy-remove-preinstalls migrations/1787709254.sh test/shell.d/default-agent-test.sh test/shell.d/menu-test.sh
  • ./test/shell.d/default-agent-test.sh
  • bash test/shell.d/menu-test.sh
  • ./test/cli
  • verified afk open --help and the configured Forgejo package source with mise ls-remote

The full shell suite was also run; five pre-existing environment-dependent tests failed (bar geometry, config, Snapper package checkout, theme install guard, and unowned-system-paths checkout).

Generated with AFK

@lcavadas

lcavadas commented Sep 4, 2026

Copy link
Copy Markdown
Author

A brief clarification on scope and relationship to the companion PRs: this is the focused AFK integration. It wires AFK into the existing default-agent setup, migration, launcher, icon, and browser handoff paths without introducing the general third-party harness extension point. PR #10171 is the broader, follow-on harness architecture; this PR can be reviewed independently as the concrete AFK integration, or considered alongside #10171 if the preferred direction is to land the generalization first. Focused validation is listed above, including the default-agent, menu, CLI, migration, and launcher coverage.

@lcavadas
lcavadas force-pushed the add-afk-default-agent branch from 218db3e to c7771eb Compare September 8, 2026 12:38
@lcavadas
lcavadas force-pushed the add-afk-default-agent branch 2 times, most recently from b9af340 to 95437ef Compare September 11, 2026 22:12
@omarchybot omarchybot added the enhancement New feature or request label Sep 27, 2026
@lcavadas
lcavadas force-pushed the add-afk-default-agent branch 2 times, most recently from 14ee9da to 64731f0 Compare October 3, 2026 20:45
@greptile-apps

greptile-apps Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge; no new actionable issues were found.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no new actionable issues were found.

Summary

Adds AFK as a selectable browser-first coding agent.

  • AFK opens the current project with an optional task.
  • AFK has a desktop launcher and matching theme icons.

Reviews (21) · Last reviewed commit: "Stage each AFK install under its own nam..." · Reviewed by Greptile

Comment thread default/omarchy/omarchy-menu.jsonc Resolved
Comment thread install/user/mise.sh Resolved
Comment thread bin/omarchy-remove-preinstalls Resolved
Comment thread default/fonts/omarchy/README.md Resolved
Comment thread test/shell.d/default-agent-test.sh Resolved
@lcavadas
lcavadas force-pushed the add-afk-default-agent branch from bc8f5a6 to b46bd50 Compare October 8, 2026 21:46
Comment thread default/omarchy/omarchy-menu.jsonc Resolved
@greptile-apps

greptile-apps Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Want your agent to iterate on Greptile's feedback? Try greploops.

Comment thread default/omarchy/omarchy-menu.jsonc Resolved
Comment thread default/omarchy/omarchy-menu.jsonc Resolved
@lcavadas
lcavadas force-pushed the add-afk-default-agent branch from a16d810 to 30c26e1 Compare November 2, 2026 20:44
Comment thread migrations/1787709254.sh Resolved
Comment thread test/shell.d/default-agent-test.sh Resolved
Comment thread bin/omarchy-remove-preinstalls Resolved
@lcavadas
lcavadas force-pushed the add-afk-default-agent branch from 567b125 to 06790dc Compare November 20, 2026 09:12
Comment thread migrations/1787709254.sh Resolved
@omarchybot omarchybot added enhancement New feature or request and removed enhancement New feature or request labels Nov 20, 2026
@lcavadas
lcavadas force-pushed the add-afk-default-agent branch from 8c04e5b to 3f33c0e Compare November 26, 2026 21:31
Comment thread bin/omarchy-install-afk-cli Resolved
Comment thread test/shell.d/default-agent-test.sh Resolved
Luis Serralheiro added 4 commits November 30, 2026 22:14
AFK ships from its own Forgejo release rather than one of Omarchy's curated
packages, so it installs the way Hermes and OpenClaw do: an installer of its
own with the same --check/--now contract. It reads the current release from
the project's API, verifies the published checksum before unpacking, and
replaces the command in a rename. A symlink or directory at the command's
path is the user's, and is refused rather than overwritten.

It opens the session itself, so the project and a prompt go on its command
line and it runs inline instead of in a terminal that would only wrap a
command opening a browser tab.

Generated with AFK
Co-Authored-By: AFK <[email protected]> using deepseek-flash
--check looked only at ~/.local/bin, but omarchy-agent runs whichever afk comes
first on PATH, so an AFK the user installed elsewhere - /usr/local/bin, or one
a mise config puts earlier - was reported missing. A second copy written over
it would not have been the one the agent started. Both answer from the command
PATH resolves, and --now now says so when the copy it wrote is not that command.

Generated with AFK
Co-Authored-By: AFK <[email protected]> using deepseek-flash
AFK has no row in the agents panel, which lists subscriptions, and no hotkey of
its own, as no harness does. Without a launcher it would be reachable only by
someone who already knew to run omarchy default agent afk, so choosing it now
puts it in the dock and the app grid beside every other harness.

The wordmark is drawn the way each icon set draws its app icons: AFK in a 16 by
14 grid of pixels for arcade, and the same letters in rounded blocks over a
hard shadow for papercraft, with a 512 pixel plate beside them.

Generated with AFK
Co-Authored-By: AFK <[email protected]> using deepseek-flash
The harnesses with a launcher are checked in one place: selecting one installs
its entry and every icon set carries its icon. Asserting the same for AFK
restated that file's own contents without checking anything new, which is the
test the repository asks not to write for a declarative addition.

Generated with AFK
Co-Authored-By: AFK <[email protected]> using deepseek-flash
@lcavadas
lcavadas force-pushed the add-afk-default-agent branch from 129a6cd to 55be3c6 Compare November 30, 2026 22:15
Comment thread bin/omarchy-install-afk-cli Resolved
Comment thread bin/omarchy-default-agent Resolved
Comment thread bin/omarchy-install-afk-cli Resolved
The asset URL appended the download route to the API base, which answers 404:
the API reads a release, and the file is served from the repository's own
download route. Nothing could install until this was right.

A missing AFK could not come back either. AFK is not one of Omarchy's packages,
so a saved default whose command had gone asked omarchy-install-ai-cli for a
package it does not have, and the launch was refused. It reinstalls through
omarchy-install-afk-cli, which is the installer that put it there.

The binary was staged in the temporary directory and moved into place, which is
only a rename while both are on one filesystem; across two, mv copies, and a
launch during the copy can start a half-written command. It is staged beside
its destination so the replace stays one rename, and a run that ends early
takes the staging copy with it.

Generated with AFK
Co-Authored-By: AFK <[email protected]> using deepseek-flash
Comment thread bin/omarchy-install-afk-cli Resolved
Two launches while the command is missing start two installers, and both staged
the new binary at the same name beside it: one could rename the file the other
was still writing, and either run's cleanup could delete the other's staging
copy and fail it. Each run stages under a name of its own, so the rename it
makes is of the file it wrote.

Generated with AFK
Co-Authored-By: AFK <[email protected]> using deepseek-flash
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