Repository navigation
Add a DeepSeek usage collector for the agents panel - #10683
Closed
aholbreich wants to merge 2 commits into
Closed
aholbreich wants to merge 2 commits into
aholbreich wants to merge 2 commits into
Conversation
aholbreich
force-pushed
the
deepseek-usage-collector
branch
from
September 8, 2026 23:44
666a8a1 to
a81a2a2
Compare
Author
|
Rebased onto the latest quattro (5b91db5). Focused scanner tests pass; ready for review. |
pi and opencode now feed one accumulator, so a day active in both is one active day instead of two. A failed balance lookup lands in the record's status text the way Fireworks reports it, and a machine without a DeepSeek key no longer logs a line to the shell on every refresh. Lists deepseek in the plugin's provider defaults. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
aholbreich
force-pushed
the
deepseek-usage-collector
branch
from
September 27, 2026 14:55
a81a2a2 to
4a2a102
Compare
Author
|
Rebased on current quattro and did a cleanup pass:
All agents plugin tests pass. The only failures I get in |
Contributor
|
Thank you! Brought in with your authorship in #14039. The record now only appears on machines with a DeepSeek key, and the test no longer reaches the real API. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds an
omarchy-agent-usage-deepseekcollector so the agents panel gains a DeepSeek tab, next to Claude, Codex, and Fireworks.The collector follows the existing contract: it prints one display-ready JSON record; the panel already discovers any record in the usage directory, so no plugin or update-runner change is needed.
Why
DeepSeek usage runs through pi/openCode today, and every existing collector drops it: the Codex collector scans pi/omp sessions but filters strictly for
openai-codex, and Claude's scans only Anthropic. Machines that use a DeepSeek key therefore see no DeepSeek entry in the panel at all.Details
deepseekprovider, plus opencode sessions on a deepseek provider (the same guarded SQL scan the Codex collector uses).reasoningfield is left out, exactly like the Codex collector's pi path).GET https://api.deepseek.com/user/balancefor the live credit balance (analogous to the Fireworks prepaid ledger). The optionalfundedAmountin~/.config/omarchy/agents/deepseek.jsonadds the funded-versus-spent estimate line; without it the panel shows the live remaining credit only.DEEPSEEK_API_KEY, then~/.pi/agent/auth.json, then opencode'sauth.json.shell/plugins/agents/assets/deepseek.svg, brand blue, works on dark and light surfaces) and a README row documenting the collector.Testing
test/shell.d/agent-usage-deepseek-scanner-test.sh(11 assertions): pi/omp session filtering and aggregation, opencode database scan, balance math fromfundedAmount, balance omission on endpoint failure, live balance response parsing, and the/user/balancerequest shape with the bearer key../test/shellruns the new file green. Four files fail in this environment for pre-existing reasons unrelated to this change:config-test.shandunowned-system-paths-test.shneed anomarchy-pkgscheckout (OMARCHY_PKGS_PATH),snapper-test.shneeds the same, andlocate-test.shhits a UTF-8 decode error on this machine../test/clipasses.