neuron-explorer
Steering-first neuron explorer for Qwen3.5-4B: push every MLP neuron, keep every rollout, browse the results
See supported AI plan quota and reset windows on Mac, with optional collector connections for other configured Macs.
Developer toolsSwift · JavaScriptGitHub @Simple-With-UsOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
CodeCaps — macOS menu bar view of supported AI plan usage and quota windows, with optional fleet sharing through a collector you run.
Taken from the repository README
Loading the full README. The saved excerpt is shown below.
A macOS menu bar app for supported AI plan usage and quota windows. It can share available readings across Macs through a collector you run.
Download CodeCaps → · From Simple With Us
CodeCaps reads available usage and quota windows from supported AI apps and CLIs already signed in on this Mac — no provider API key is entered into CodeCaps. Optional push and pull connections can show readings from other configured Macs in one Glance popover.
CodeCaps keeps local readings visible in the menu bar. If you run a collector, it can also bring multiple Macs into one view.Read the full README ↗A macOS menu bar app for supported AI plan usage and quota windows. It can share available readings across Macs through a collector you run.
Download CodeCaps → · Setup & Data Guide · From Simple With Us
CodeCaps reads available usage and quota windows from supported AI apps and CLIs already signed in on this Mac — no provider API key is entered into CodeCaps. Optional push and pull connections can show readings from other configured Macs in one Glance popover.
CodeCaps keeps local readings visible in the menu bar. If you run a collector, it can also bring multiple Macs into one view.
Engineered with the proactive safeguards you'll come to rely on:
CodeCaps has two surfaces. Nothing renders in both.
Glance is the menu bar popover — the two-second check. One row per platform, each with its short and long quota windows side by side: a caption (5h, 7d, 1m), a usage bar, the percentage remaining, and the reset countdown. A two-box switch beside the name shows either From Mac or From Fleet, one set at a time, and remembers the choice across launches; From Fleet groups rows under a heading band per reporting source. On the right of the header, the All bell turns reset alarms on for every provider; turn it off and a faint bell appears at the left of each row, so providers can be picked one by one. Countdowns show their two largest units (4d 2h, 2h 42m); hover one for the full value and the reset time. A row with more windows than its two meters opens to show only the rest, as more meters in the same columns. Read-only aside from those switches, Refresh, the Dashboard gear menu, and Dashboard in the footer.
Console is a resizable window, sidebar split into Quotas and Settings: Quotas is an all-platforms overview plus a per-platform drill-down with search; Settings holds the pages listed below. The window title is always CodeCaps Dashboard.
A platform can carry more than one quota window, so each surface has its own rule for which number leads:
Antigravity sells two independent model pools, shown as two rows, Gemini (the colour Gemini star) and Third-Party (the same star in one colour). Collapsing them used to show "Antigravity 0%" the moment the Third-Party weekly cap was spent, while Gemini still had most of its allowance. Whenever a pool's weekly window hits zero, its 5-hour percentage is withheld — shown as n/a rather than a number that can't mean anything until the week rolls over.
A reset alarm is a notification, with the sound picked on the Alerts & Alarms page, when a quota window starts a new period:
Each reset alarms once. The state behind it is saved on every refresh, so a reset that lands while CodeCaps is closed, or during an update, still alarms on the next reading, and one that already alarmed never repeats. From Mac and From Fleet rows both alarm, keyed by provider; the same reset reported by both alarms once.
| Provider | What Is Read | Where From |
|---|---|---|
| Claude | Quota windows (5h, weekly) | ~/.claude/.credentials.json, or the Claude Code-credentials Keychain item |
| Codex | Rate-limit windows | ~/.codex/auth.json |
| Antigravity / Gemini | Pooled Gemini and Third-Party quota, two rows (above) | The antigravity-usage CLI, plus an RPC to Antigravity's own language server |
| Cursor | Included-plan usage | Cursor.app's local session database (state.vscdb) |
| Grok CLI | Billing/credits, via Grok's CLI proxy | ~/.grok/auth.json |
| Grok Bot | Weekly usage, via Cursor's dashboard service | Same Cursor session database, a different endpoint |
| MiniMax | Per-model and weekly remaining quota | ~/.mmx/config.json |
| DeepSeek | Not supported | Balance-based, not window-based. No local reader; a pulled window is filtered out too — never appears anywhere. |
None of the above ever asks for a typed credential — every reader reuses a session or file the CLI already created.
CodeCaps reads Claude Code's saved login through macOS's own security tool, so a fresh install needs no setup and never raises a Keychain panel of its own. The Allow Access To Claude Code button on the Claude row (Dashboard window → Sources & Fleet) appears only if macOS explicitly refuses that read; press it and choose Always Allow in the panel macOS puts up. On a heavily loaded Mac the Claude row may briefly read "temporarily unavailable" and recover on the next refresh. CodeCaps only ever reads Claude Code's saved login: it never writes to, re-permissions, or removes it.
Both off by default, configured under Sources & Fleet in the Dashboard window.
Push formats — two, chosen when pushing. The producer id is codecaps (with agent-bar retained as a recognized legacy alias for seamless backwards compatibility).
usage_monitor_v2 — one event per quota window:
{
"schemaVersion": 2,
"producerId": "codecaps",
"producerInstanceId": "Jay's MacBook Pro",
"events": [
{
"eventId": "subq:anthropic:5h-window:2026-09-17T14:00:00Z:2026-09-17T14:41:00Z",
"provider": "anthropic",
"service": "codecaps",
"label": "5h",
"metricType": "quota",
"billingMode": "actual",
"confidence": "actual",
"limit": 100,
"credits": 62.0,
"occurredAt": "2026-09-17T14:41:00Z",
"metadata": {
"bucketId": "5h-window",
"isExhausted": false,
"remainingUnknown": false,
"scale": "percent_0_100",
"source": "codecaps",
"usedPercent": 38.0
},
"tier": "Max 20x"
}
]
}
generic_webhook — a plainer envelope:
{
"format": "codecaps-quotas",
"version": 1,
"generatedAt": "2026-09-17T14:41:00Z",
"machine": "Jay's MacBook Pro",
"count": 1,
"windows": [
{
"id": "anthropic:5h",
"provider": "anthropic",
"label": "5h",
"status": "available",
"isExhausted": false,
"remainingPercent": 62.0,
"resetAt": "2026-09-17T17:53:00Z",
"window": "5h",
"plan": "Max 20x",
"occurredAt": "2026-09-17T14:41:00Z"
}
]
}
Pull. CodeCaps reads a server's aggregated windows back (generatedAt, windows[], optional providerGroups[]) as Fleet rows. A window is attributed to a machine by whatever source/sourceApp it carries — no machine identifier field exists yet, so indistinguishable Macs show up as one fleet origin.
Web embeds. Quota bars for third-party websites are not built in this repo. Usage Monitor owns the public read and embed surface; CodeCaps remains the Mac and iOS client. See docs/PUBLIC-EMBED.md for ownership, the existing GET /api/quota-windows contract, and security constraints.
Endpoint rules. HTTPS required for any host; plain HTTP only for loopback (localhost, 127.0.0.1, ::1). A URL with embedded credentials, a query string, or a fragment is rejected.
Token storage. The Push Token and Read Token are the only two secrets stored, both in the macOS Keychain, not a config file.
Independent of any server, CodeCaps writes a credential-free local snapshot to:
~/Library/Application Support/Usage Monitor/quota-windows.json
for other local consumers (for example, BotFleet's Usage Monitor). format is usage-monitor-local-quotas, version 1, alongside producer ("codecaps"), generatedAt, a windows array, and an optional issues map — no server URLs, account identifiers, or tokens; error strings are checked for anything credential-shaped first. Written 0600 inside a 0700 directory, via an atomic rename.
Homebrew
brew install --cask Simple-With-Us/tap/codecaps
Download
Grab the signed and notarized CodeCaps.dmg from the latest release.
Updates
CodeCaps updates itself. Every change merged to main becomes a signed, notarized release, and an installed copy checks hourly, downloads it in the background, and installs it the next time CodeCaps is not in front. The About page has Check For Updates… for the impatient. How it works, and how to roll a release back: docs/AUTO-UPDATE.md.
Build From Source
Requirements: macOS 14+, Apple silicon or Intel, Xcode Command Line Tools with a Swift 5.9+ toolchain.
git clone https://github.com/Simple-With-Us/codecaps.git
cd codecaps
script/build_and_run.sh # build, install to ~/Applications, and relaunch
Other modes: --install (same, no relaunch); --dev (separate .dev identifier into dist/, launched beside the installed copy; --dev-stop quits it and removes dist/); --package (universal Release, zipped into dist/ with a SHA-256 file); --release (--package, then notarize and staple the app, and build, sign, notarize and staple dist/CodeCaps.dmg); --build-only (stage dist/CodeCaps.app only).
--package and --release build one universal binary for Apple silicon and Intel, verified with lipo -archs. CFBundleShortVersionString is <prefix>.<commit_count> (prefix from the VERSION file, default 1.0), and CFBundleVersion is the commit count, matching the fleet's unified 1.#.### standard across macOS and iOS. --release notarizes through the keychain profile named by AGENTBAR_NOTARY_PROFILE (default agentbar-notary), which you create once with xcrun notarytool store-credentials.
run and --install keep exactly one installed copy, at ~/Applications/CodeCaps.app: any other bundle with the same release identifier, in the usual install locations or this checkout's dist/, is Trashed and printed, including a copy still named AgentBar.app. CODECAPS_PRUNE_DRY_RUN=1 previews without moving anything; CODECAPS_BUNDLE_ID builds under a distinct identifier, for more than one checkout.
Signing is still evolving — take this as current-best, not a fixed contract. The script signs with a Developer ID Application identity when available (AGENTBAR_CODESIGN_IDENTITY, or the first one already in your keychains), falling back to ad-hoc (codesign --sign -) if none is found or signing times out. This matters beyond Gatekeeper: a stable identity keeps saved tokens (Sources & Fleet) readable across rebuilds; ad-hoc, every build gets a new identity, so a saved token needs Re-Authorize Saved Token afterward.
Gatekeeper. Without a stable identity — always true for --dev — macOS blocks the first launch; right-click and choose Open, or xattr -d com.apple.quarantine. --package signs for notarization but stops there; --release is the mode that actually submits to Apple and staples the ticket, which is how the published dmg opens with no warning at all.
Icon. The master in assets/ is a full-bleed square, and stays that way. macOS before 26 does not mask an app icon, so script/make_icon.swift derives the macOS shape at build time — the master drawn inside an 824x824 rounded rectangle on a 1024 canvas, with the standard drop shadow — and the .icns is built from that. The master files are only ever read.
Console's sidebar has eight Settings pages.
Standard style preserves bundled brand colors except for monochrome marks, which adapt to the current appearance; Light/Dark style renders a template. MiniMax uses minimax.png and is treated as monochrome. Antigravity uses the Gemini mark, and Grok CLI/Grok Bot use the Grok marks. cursor.svg is from Simple Icons, CC0 1.0. See Sources/CodeCaps/Resources/ProviderMarks/README.md for resource mappings and source notes.
swift build
swift test
See AGENTBAR_BUNDLE_ID above when building from more than one checkout at once.
Build and notarization output goes to $TMPDIR/CodeCaps-build-<pid>.log (one
per run). The app itself does not log to a file by default — Console.app →
"CodeCaps" is the place to look for menu / popover diagnostics, and
log show --process CodeCaps --last 1h for anything deeper.
Apache License 2.0.
Provider names and marks belong to their owners and are used only to identify the services.
Always interested in hearing about any unmet needs, feature requests, and app issues. Please feel free to contact us regarding such concerns or for any other reason!