Repository navigation
feat(agents): add Antigravity and OpenCode collectors, context launcher, and strict window class focusing - #8806
Conversation
There was a problem hiding this comment.
Pull request overview
Adds agent usage collectors, context-aware launching, stricter window focusing, and provider artwork support.
Changes:
- Adds Antigravity and OpenCode usage collectors.
- Introduces terminal-directory-aware agent launching and strict class matching.
- Adds PNG/SVG provider mark resolution and assets.
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 2 out of 13 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
bin/omarchy-agent-usage-antigravity |
Collects Antigravity transcript usage and limits. |
bin/omarchy-agent-usage-opencode |
Collects OpenCode database usage and limits. |
bin/omarchy-launch-agent |
Adds context-aware agent launching. |
bin/omarchy-launch-or-focus |
Restricts matching to window classes. |
shell/plugins/agents/Panel.qml |
Adds PNG icon candidates. |
shell/plugins/agents/assets/antigravity.svg |
Adds dark-theme Antigravity mark. |
shell/plugins/agents/assets/antigravity-light.svg |
Adds light-theme Antigravity mark. |
shell/plugins/agents/assets/antigravity.png |
Adds raster Antigravity mark. |
shell/plugins/agents/assets/antigravity-light.png |
Adds light raster Antigravity mark. |
shell/plugins/agents/assets/opencode.svg |
Adds dark-theme OpenCode mark. |
shell/plugins/agents/assets/opencode-light.svg |
Adds light-theme OpenCode mark. |
shell/plugins/agents/assets/opencode.png |
Adds raster OpenCode mark. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| var candidates = [] | ||
| if (colorLuminance(surfaceColor || Color.background) >= 0.5) | ||
| if (colorLuminance(surfaceColor || Color.background) >= 0.5) { | ||
| candidates.push(Qt.resolvedUrl("assets/" + p.providerId + "-light.png")) |
|
Addressed in commit 68fd4ec: added the missing |
1400959 to
795d551
Compare
65902bb to
927cf8a
Compare
…er, and strict class focusing
927cf8a to
46541f4
Compare
|
Closing in favor of a clean, consolidated submission. |
|
Superseded by #8873 with clean single-commit history and unified vector marks. |
Summary of Changes
Strict Window Class Matching (
bin/omarchy-launch-or-focus):.classrather than.title.Context-Aware Terminal Agent Launcher (
bin/omarchy-launch-agent):omarchy-cmd-terminal-cwd) when launching TUI coding agents (agy,codex,opencode).~/Work(or~/Projects) when triggered outside an active terminal window, ensuring autonomous coding agents start safely in designated project directories rather than$HOME.Antigravity Usage Collector (
bin/omarchy-agent-usage-antigravity):~/.gemini/antigravity/brain/for token counts and model breakdown (Gemini 3.7 Flash High,Gemini 3.7 Pro).OpenCode Usage Collector (
bin/omarchy-agent-usage-opencode):~/.local/share/opencode/opencode.dbto calculate token consumption and session breakdown.Pure Vector Provider Marks (
shell/plugins/agents/assets/):Unit Test Suite (
test/shell.d/agent-usage-collectors-test.sh):Verification
bash test/shell.d/agent-usage-collectors-test.shbash test/shell.d/agent-usage-update-test.shbash test/shell.d/agents-panel-test.shbash test/shell.d/default-agent-test.sh