Skip to content

Add Devin CLI as a default agent option - #8124

Open
joaomcarlos wants to merge 62 commits into
omacom:quattrofrom
joaomcarlos:add-devin-agent
Open

joaomcarlos wants to merge 62 commits into
omacom:quattrofrom
joaomcarlos:add-devin-agent

Conversation

@joaomcarlos

@joaomcarlos joaomcarlos commented Aug 25, 2026 •

Copy link
Copy Markdown

Summary

  • Add omarchy-agent-usage-devin collector that reads token stats from the Devin CLI session database (~/.local/share/devin/cli/sessions.db) and rate limits from the TUI's user-status cache (~/.cache/devin/cli/user_status.*.bin)
  • Rate limits (daily and weekly quota percentages with reset times) come from the same GetUserStatus protobuf response the TUI's /usage slash command renders — the collector parses the cached file directly, so no network call or credentials are needed
  • Stale limit entries whose reset window has already passed are filtered out, matching the Claude collector's behavior
  • Add Devin panel mark (shell/plugins/agents/assets/devin.svg + light variant) and enable it in the manifest
  • Add Devin to the default agents option (omarchy-default-agent) and the AI manual page
  • Add the Devin glyph to the omarchy icon font
  • Symlink Omarchy skills into the Devin CLI skills directory

Test plan

  • ./test/shell passes all 12 Devin collector tests
  • Live omarchy-agent-usage-devin --force outputs correct limits (Daily 69%, Weekly 47%, matching /usage)
  • Panel shows Devin tab with tier label "Pro", limits meters, token charts
  • No red status card when everything is working
  • ready is True only when there are prompts or limits (matches Claude collector)

Preview

Token tracker panel:
image

Default agent menu (and devin icon in font):
image

Copilot AI balanced review requested due to automatic review settings August 25, 2026 00:48

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 Devin CLI as a default coding agent and integrates its local usage into the agents panel.

Changes:

  • Adds Devin selection, installation, and unattended launch support.
  • Adds a Devin SQLite usage collector and panel asset.
  • Updates menus, documentation, 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.

Reviewed changes

Copilot reviewed 6 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
bin/omarchy-agent Adds Devin launch arguments.
bin/omarchy-default-agent Adds Devin installation and selection.
bin/omarchy-agent-usage-devin Collects usage from Devin’s SQLite database.
default/omarchy/omarchy-menu.jsonc Adds the Devin menu entry.
manual/17-ai.md Documents Devin support and installation.
shell/plugins/agents/manifest.json Includes Devin in the plugin description.
shell/plugins/agents/README.md Documents Devin usage collection.
shell/plugins/agents/assets/devin.svg Adds the panel mark.
test/shell.d/default-agent-test.sh Tests installation and launch behavior.
test/shell.d/menu-test.sh Tests Devin menu metadata and ordering.

💡 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
@joaomcarlos
joaomcarlos force-pushed the add-devin-agent branch 3 times, most recently from 1d48e29 to c0987bc Compare August 25, 2026 00:58
@joaomcarlos
joaomcarlos marked this pull request as draft August 25, 2026 22:46
A usage collector (bin/omarchy-agent-usage-devin) reads token stats from
the Devin CLI session database and rate limits from the TUI's user-status
cache, so the agents panel tracks Devin usage alongside Claude, Codex, and
Fireworks. The collector follows the same patterns as the Codex collector:
caching with file-lock dedup, PRAGMA query_only, sort_keys, and
--limits-only for CLI compatibility with the panel's refreshLimits().

Rate limits (daily and weekly quota percentages with reset times) come
from ~/.cache/devin/cli/user_status.*.bin — the same GetUserStatus
response the TUI's /usage slash command renders. The collector parses the
protobuf payload directly, so no network call is needed.

Panel mark at shell/plugins/agents/assets/devin.svg (dark + light twins
for Qt's SVG renderer, which doesn't resolve currentColor). Manifest
providers default-enabled so the tab appears without manual setup.
@joaomcarlos
joaomcarlos marked this pull request as ready for review August 26, 2026 00:19
@joaomcarlos
joaomcarlos requested a balanced review from Copilot August 26, 2026 00:19
@joaomcarlos
joaomcarlos deleted the add-devin-agent branch August 26, 2026 00:23
@joaomcarlos
joaomcarlos restored the add-devin-agent branch August 26, 2026 00:23

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 8 out of 15 changed files in this pull request and generated 1 comment.

Comment thread default/omarchy/omarchy-menu.jsonc Resolved

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 8 out of 15 changed files in this pull request and generated no new comments.

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 8 out of 15 changed files in this pull request and generated no new comments.

Resolve conflicts: adopt quattro's agent_installer pattern for Devin
(omarchy-install-devin-cli), move Devin glyph to U+E90B (Hermes took
U+E90A), and merge skill symlink dirs and docs for both agents.
@joaomcarlos

Copy link
Copy Markdown
Author

Merged current quattro (13 commits). One conflict in manual/17-ai.md — quattro's mise lazy-shims rewrite (#9596) replaced the old omarchy-mise-install paragraph with an "Installing and updating agents" section; resolved by keeping the new section and folding Devin in as the other non-mise exception (matching how omarchy-default-agent routes Devin through omarchy-install-devin-cli instead of a mise declaration). Icon font unchanged on quattro — Devin stays at U+E90F.

Also replied to the two open Greptile threads — both findings were already fixed (93805c5 scan-cache start date, d9046c7 README stale-limits wording); the threads just hadn't been answered.

menu-test (incl. icon-font charset check), default-agent-test, and agent-usage-devin-scanner-test all pass; agent-account-exec-test, agent-usage-codex-scanner-test, and mise-lazy-tools-migration-test pass too. One unrelated failure: i18n-test fails on pristine quattro — the da translation still carries system.reboot-boot-menu after the menu item was removed upstream.

@joaomcarlos

Copy link
Copy Markdown
Author

No new merge needed — the branch already contains current quattro (0 commits behind). Icon font unchanged on quattro since the last merge — Devin stays at U+E90F.

Replied to the two Greptile findings from Oct 16, both already fixed: the midnight-crossing scan cache now stamps the scan's start date (93805c5), and the agents README now describes stale-limit behavior accurately (d9046c7).

menu-test (incl. icon-font charset check), default-agent-test, and agent-usage-devin-scanner-test all pass on the current head.

@joaomcarlos

Copy link
Copy Markdown
Author

Branch already current with quattro — no merge needed. Icon font unchanged on quattro; Devin stays at U+E90F.

The two Greptile findings from yesterday were already fixed on the branch but the threads hadn't been answered; replied to both:

  • Midnight-crossing scan stamping the new day's date — fixed in 93805c5 (cache is stamped with the scan's start date, regression in the scanner test).
  • README contradicting stale-limits behavior — fixed in d9046c7 (wording now says old limits stay visible with a last-updated warning).

menu-test (incl. icon-font charset check), default-agent-test, and agent-usage-devin-scanner-test all pass.

@joaomcarlos

Copy link
Copy Markdown
Author

Merged current quattro (1 commit). Clean merge; the incoming change (revert of the retired OpenClaw migration, #15854) touches only migrations and openclaw-cli-test.sh — no overlap with this branch. Icon font unchanged on quattro — Devin stays at U+E90F. menu-test, default-agent-test, and agent-usage-devin-scanner-test all pass.

@joaomcarlos

Copy link
Copy Markdown
Author

Merged current quattro (19 commits). Clean merge; the overlapping files (omarchy-agent, default-agent-test.sh) auto-merged with both sides kept — the incoming work is the OpenClaw migration update path (#14212), which touches different sections than the Devin additions. Icon font unchanged on quattro — Devin stays at U+E90F. menu-test, default-agent-test, and agent-usage-devin-scanner-test all pass.

@joaomcarlos

Copy link
Copy Markdown
Author

Merged current quattro (1 commit). Clean merge; the incoming change (revert of migration-core changes from #14212) touches openclaw/migrate internals only — no overlap with this branch. Icon font unchanged on quattro — Devin stays at U+E90F. Also replied to yesterday's Greptile findings; both were already fixed on the branch (93805c5 start-date scan stamp, d9046c7 README wording). menu-test (incl. icon-font charset check), default-agent-test, and agent-usage-devin-scanner-test all pass.

@joaomcarlos

Copy link
Copy Markdown
Author

Merged current quattro (3 commits). Clean merge; the incoming changes (per-monitor workspace repair, twin-monitor test fix) touch monitor-workspaces only — no overlap with this branch. Icon font unchanged on quattro — Devin stays at U+E90F. menu-test (incl. icon-font charset check), default-agent-test, and agent-usage-devin-scanner-test all pass.

@joaomcarlos

Copy link
Copy Markdown
Author

Merged current quattro (1 commit). Clean merge; the incoming change (Greptile review file index, #15891) adds .greptile/files.json only — no overlap with this branch. Icon font unchanged on quattro — Devin stays at U+E90F. menu-test (incl. icon-font charset check), default-agent-test, and agent-usage-devin-scanner-test pass. No new review findings to address.

@joaomcarlos

Copy link
Copy Markdown
Author

Merged current quattro (3 commits). Clean merge; the incoming changes (OpenClaw move-into-way handling, vconsole.conf initramfs fix, console-migration parameter gap) touch OpenClaw and console/mkinitcpio internals only — no overlap with this branch. Icon font unchanged on quattro — Devin stays at U+E90F.

Also fixed today's Greptile finding: the scanner test now exports DEVIN_CACHE_DIR at its own fixture dir, so a developer-exported value can't make user_status_dir() read the real account cache (8ce2bc2). Verified the suite still passes with a decoy DEVIN_CACHE_DIR in the environment.

menu-test (incl. icon-font charset check), default-agent-test, and agent-usage-devin-scanner-test all pass.

now - 86400 can still be the same local date across a DST change, which
would miscount the rows the collector buckets by local day.
@joaomcarlos

Copy link
Copy Markdown
Author

Merged current quattro (3 commits). Clean merge; the incoming changes (fingerprint-reader platform naming, Snapdragon laptop cameras via Chromium, T3 Code AppImage install) don't overlap this branch. Icon font unchanged on quattro — Devin stays at U+E90F. menu-test (incl. icon-font charset check), default-agent-test, and agent-usage-devin-scanner-test all pass.

@joaomcarlos

Copy link
Copy Markdown
Author

Merged current quattro (113 commits). Clean merge; the overlapping files (omarchy-menu.jsonc, default-agent-test.sh, i18n en catalog) auto-merged with both sides kept. Icon font unchanged on quattro — Devin stays at U+E90F. menu-test (incl. icon-font charset check), default-agent-test, and agent-usage-devin-scanner-test all pass; i18n-test passes in structural (PR-gate) mode. Note: several unrelated upstream tests (menu-plugin, system-power, migrate-notify, hyprland-workspace-layout, i18n full-mirror, hardware/session-dependent ones) fail locally on plain quattro too — missing-helper and stale-translation environment issues, not this branch.

@joaomcarlos

Copy link
Copy Markdown
Author

Merged current quattro (2 commits). Clean merge; the incoming changes (channel-switch stable/rc fix, dev notification demo refresh) touch channel-set, refresh-pacman, and their tests — no overlap with this branch. Icon font unchanged on quattro — Devin stays at U+E90F. menu-test.sh, default-agent-test.sh, and agent-usage-devin-scanner-test.sh all pass.

# Conflicts:
#	bin/omarchy-agent-usage-devin
#	bin/omarchy-default-agent
#	default/fonts/omarchy/README.md
#	default/fonts/omarchy/omarchy.ttf
#	default/i18n/en/menu.json
#	default/omarchy/omarchy-menu.jsonc
#	manual/17-ai.md
#	shell/plugins/agents/README.md
#	shell/plugins/agents/manifest.json
#	test/shell.d/agent-usage-devin-scanner-test.sh
#	test/shell.d/menu-test.sh
@joaomcarlos

joaomcarlos commented Oct 29, 2026 •

Copy link
Copy Markdown
Author

Hi @dhh @ryanrhughes, now that #14040 has merged with Devin support included, this PR is basically moot... everything else it added now lives upstream. If there's nothing else you'd like from it, shall we close it?

One small request while I'm here: in #14040's description, the two devin credit rows list me as "#8124 (Joao)" -> could you update those to "@joaomcarlos" please?

Thanks!

Note: I have removed the automated job that kept this PR up-to-date now

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