Repository navigation
feat(agents): add Antigravity and OpenCode collectors, context launcher, and strict window class focusing - #8873
anmolsharma152 wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Pull request overview
Adds agent usage integrations, provider assets, context-aware launching, and stricter window focusing.
Changes:
- Adds Antigravity and OpenCode usage collectors.
- Adds terminal-directory-aware agent launching and class-only focusing.
- Adds provider SVGs and collector 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 1 out of 9 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
bin/omarchy-agent-usage-antigravity |
Collects estimated Antigravity usage and limits. |
bin/omarchy-agent-usage-opencode |
Collects OpenCode usage from SQLite. |
bin/omarchy-launch-agent |
Launches agents from a contextual directory. |
bin/omarchy-launch-or-focus |
Restricts window matching to classes. |
shell/plugins/agents/assets/antigravity.svg |
Adds Antigravity dark-surface mark. |
shell/plugins/agents/assets/antigravity-light.svg |
Adds Antigravity light-surface mark. |
shell/plugins/agents/assets/opencode.svg |
Adds OpenCode dark-surface mark. |
shell/plugins/agents/assets/opencode-light.svg |
Adds OpenCode light-surface mark. |
test/shell.d/agent-usage-collectors-test.sh |
Tests the new collectors. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| mkdir -p "$opencode_dir" | ||
|
|
||
| sqlite3 "$opencode_dir/opencode.db" <<'SQL' | ||
| CREATE TABLE session ( |
…er, and strict class focusing
2fe5040 to
6c61b68
Compare
|
Updated in commit 6c61b68: Refactored |
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