Omarchy’s password prompt will show which coding agent is asking for root
When Claude, Codex or another agent runs pkexec, the polkit dialog will swap its padlock for the agent’s icon and name it in the request. Just treat it as a hint, not a guarantee.
Image: jankeesvw, omacom/omarchy PR 20103 (GitHub)
When a root password dialog pops up on your Omarchy desktop, you’ll soon know which coding agent asked for it. On November 25, 2026, DHH merged “Show which agent a polkit prompt comes from, and its label on two lines” by Jankees van Woezik into the quattro branch. It’s coming in the next version.
The change is in the shell’s polkit dialog. If the prompt comes from a coding agent, the agent’s icon from the agents plugin takes the padlock’s place. If the prompt has no label, the line above the password field names the agent: instead of “Authorize running ‘…'”, a known agent’s request reads “Authorize Claude to run ‘…'”, wording DHH suggested on X the same day.
Commands can also explain themselves. A label set through the shell’s omarchy.polkit expect call now gets the first line to itself, with the command pkexec will run on a dimmer line underneath, so a long reason can’t push the actual command out of view. The label only sticks if the prompt comes within a minute, and a long command line gets cut the same way pkexec cuts it (over 80 bytes, down to its first 38 and last 37) so the two still match. The PR’s first commit fixes an older bug where those labels never showed at all: Quickshell sets isActive before it emits authenticationRequestStarted, so the label was being cleared right after it was read.
The detection is the clever part. Quickshell doesn’t say which process triggered a prompt, so a new helper, requester.py, finds the current user’s waiting pkexec that runs the command shown in the dialog. It then walks up that process’s parents until it hits a known agent. The merged list covers Claude, Codex, Antigravity, Grok, OpenCode, Cursor, Copilot, Hermes, Kimi, Qwen, Devin, Muse, DeepSeek and MiniMax, including agents running under Node, Bun, Deno or Python. If none turns up, it checks the environment for variables like CLAUDECODE or AI_AGENT. If two waiting pkexecs disagree, no agent is shown, and if the lookup hangs, the padlock comes back after a second.
The PR is upfront about the limits: “It’s a hint, not proof: anything can call itself claude.” Any program can name itself after an agent, so the icon tells you who probably asked, not who definitely did. You should still read the command line before typing your password. It lands a day after the fix that stopped a crafted plugin manifest from posing as first-party and touches the same question of who you’re trusting, but this one is about clarity, not a security boundary.
The design came together on X. Van Woezik posted a few layouts, and DHH replied: “I like A plus the clever idea of changing the lock out for the agent’s icon.” Van Woezik says his own agents ask for root through agent-root, his project to “let your coding agent ask for root, and say why,” which passes a short reason with each request.
DHH added two commits of his own before merging. They replaced the original shell helper with requester.py, widened the list of agents and tightened how program names are matched. According to the PR, test/shell.d/polkit-test.sh passes with new cases that run requester.py against a fake /proc. On the author’s desktop, a pkexec from Claude Code showed Claude’s icon with or without a label, one under a codex process showed the Codex icon, and one started by Hyprland kept the padlock. The PR notes it was written with Claude Opus 5.5 in Claude Code.
