Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

docs(usage): describe the shapes, not the tool they came from

enes254342b85a51
diff --git a/src/core/usage/codex-usage.ts b/src/core/usage/codex-usage.ts
index 2e45a07a3..35bc30e53 100644
--- a/src/core/usage/codex-usage.ts
+++ b/src/core/usage/codex-usage.ts
@@ -218,7 +218,7 @@ async function fetchViaAppServer(home: string): Promise<ProviderUsage | null> {
/**
* Codex usage, backend first and app-server second.
*
- * No PTY tier. Orca has one — it drives the interactive CLI and scrapes the TUI — and it exists
+ * No PTY tier. One would drive the interactive CLI and scrape the TUI, and would exist
* mainly to serve users whose auth the HTTP path cannot use. Adding it here means owning hidden
* PTY lifecycle and screen-scraping regexes, and Claude needs the same machinery for the same
* reason, so it belongs in one shared piece of work rather than being written twice.
diff --git a/src/core/usage/gemini-usage.ts b/src/core/usage/gemini-usage.ts
index 21282a89b..6ba32a166 100644
--- a/src/core/usage/gemini-usage.ts
+++ b/src/core/usage/gemini-usage.ts
@@ -1,15 +1,15 @@
// Gemini CLI subscription usage, via Google's internal Cloud Code quota API — the same endpoint
// the Gemini CLI itself reads.
//
-// Two deliberate limits, both narrower than orca's equivalent:
+// Two deliberate limits, both narrower than other implementations of the same idea:
//
-// * We read ONLY `~/.gemini/oauth_creds.json`. Orca additionally scans opencode's data
+// * We read ONLY `~/.gemini/oauth_creds.json`. It is possible to also scan opencode's data
// directories (`~/.local/share/opencode/auth.json`, the macOS Application Support copy, …)
-// for a Google token — and gates that behind an explicit opt-in precisely because it means
+// for a Google token, behind an explicit opt-in, precisely because it means
// reading another application's credentials off disk. The simplest correct answer is not to.
//
// * We never refresh the token. Same policy as the Claude and Codex providers: display-only,
-// no credential writes. Orca refreshes using an OAuth client id/secret extracted from the
+// no credential writes. Refreshing would mean an OAuth client id/secret extracted from the
// installed Gemini CLI's JS bundle, which is both fragile (a CLI update breaks it) and a
// step up in credential handling we have no need to take.
//
@@ -188,8 +188,8 @@ export async function resolveProjectId(token: string): Promise<string | null> {
* API are all "we don't know", which the UI renders as no data rather than an error the user
* cannot act on.
*
- * Note there is no synthesized "session" window here. Orca derives one from its most-constrained
- * bucket because its shape has fixed session/weekly slots to fill; ours carries a list, so the
+ * Note there is no synthesized "session" window here. A shape with fixed session/weekly slots
+ * has to derive one from its most-constrained bucket; ours carries a list, so the
* buckets ARE the limits and `primaryLimit` already leads with the worst of them.
*/
export async function fetchGeminiUsage(
diff --git a/src/core/usage/grok-usage.test.ts b/src/core/usage/grok-usage.test.ts
index ebe815d4a..e35135c80 100644
--- a/src/core/usage/grok-usage.test.ts
+++ b/src/core/usage/grok-usage.test.ts
@@ -17,7 +17,7 @@ import { limitLabel } from '../../shared/usage-limits'
/**
* NOTE: not captured from a live account — no Grok credentials were available on the machine
- * this was written on. Follows the field contract orca's fetcher documents; numbers illustrative.
+ * this was written on. Follows the documented field contract; numbers illustrative.
*/
const PERIOD = {
billingPeriodStart: '2026-07-13T00:00:00Z',
diff --git a/src/core/usage/kimi-usage.test.ts b/src/core/usage/kimi-usage.test.ts
index 5ac338c7e..90b1857bb 100644
--- a/src/core/usage/kimi-usage.test.ts
+++ b/src/core/usage/kimi-usage.test.ts
@@ -13,7 +13,7 @@ import {
/**
* NOTE: not captured from a live account — no Kimi credentials were available on the machine
- * this was written on. Follows the field contract orca's fetcher documents.
+ * this was written on. Follows the documented field contract.
*/
const RESPONSE = {
usage: { limit: '1000', used: '250', resetTime: '2026-07-26T00:00:00Z' },
@@ -87,7 +87,7 @@ describe('mapKimiLimits', () => {
})
it('keeps EVERY rolling window rather than picking the one nearest 5h', () => {
- // Orca picks one because its shape has a single session slot; ours carries a list, so a plan
+ // A single-session-slot shape has to pick one; ours carries a list, so a plan
// with both an hourly and a 5-hourly cap must show both.
const limits = mapKimiLimits({
limits: [
diff --git a/src/core/usage/kimi-usage.ts b/src/core/usage/kimi-usage.ts
index a7b6f5741..b29f215ba 100644
--- a/src/core/usage/kimi-usage.ts
+++ b/src/core/usage/kimi-usage.ts
@@ -94,7 +94,7 @@ export function mapKimiDetail(
* The top-level `usage` block is the weekly quota; entries in `limits[]` are shorter rolling
* windows.
*
- * Orca picks the single `limits[]` entry closest to 5h because its shape has one `session` slot
+ * A one-`session`-slot shape has to pick the single `limits[]` entry closest to 5h
* to fill. Ours carries a list, so every window is emitted — a plan with both an hourly and a
* 5-hourly cap shows both instead of silently discarding one.
*/
diff --git a/src/core/usage/minimax-usage.test.ts b/src/core/usage/minimax-usage.test.ts
index 54cf1fd07..6dfe556e1 100644
--- a/src/core/usage/minimax-usage.test.ts
+++ b/src/core/usage/minimax-usage.test.ts
@@ -16,7 +16,7 @@ import { primaryLimit, limitLabel } from '../../shared/usage-limits'
/**
* NOTE: not captured from a live account — no MiniMax session was available on the machine this
- * was written on. Follows the field contract orca's fetcher documents.
+ * was written on. Follows the documented field contract.
*/
const BODY = {
base_resp: { status_code: 0, status_msg: 'success' },
@@ -100,7 +100,7 @@ describe('mapMinimaxItem', () => {
describe('mapMinimaxLimits', () => {
it('emits EVERY model, not one preferred pick', () => {
- // Orca selects a single model because its shape has one session slot; ours carries a list.
+ // A one-session-slot shape has to select a single model; ours carries a list.
const limits = mapMinimaxLimits(BODY)
expect(limits.map((l) => l.scopeLabel)).toEqual(['MiniMax-M2', 'MiniMax-Text-01'])
})
diff --git a/src/core/usage/minimax-usage.ts b/src/core/usage/minimax-usage.ts
index 61499598c..278e39141 100644
--- a/src/core/usage/minimax-usage.ts
+++ b/src/core/usage/minimax-usage.ts
@@ -90,7 +90,7 @@ export function mapMinimaxItem(item: unknown): UsageLimit | null {
}
/**
- * Every model's window, not just one. Orca selects a single preferred model because its shape
+ * Every model's window, not just one. A single preferred model is what you pick when the shape
* has one session slot to fill; ours carries a list, so a plan covering several models shows
* each of them.
*/
diff --git a/src/core/usage/opencode-usage.test.ts b/src/core/usage/opencode-usage.test.ts
index 9a7829c66..b2ec30bad 100644
--- a/src/core/usage/opencode-usage.test.ts
+++ b/src/core/usage/opencode-usage.test.ts
@@ -14,7 +14,7 @@ import { primaryLimit } from '../../shared/usage-limits'
/**
* A miniature of opencode.ai's React Flight wire data. NOTE: not captured from a live account —
* no opencode session was available on the machine this was written on. It reproduces the
- * documented shape, including the two traps orca hit: a `$R[N]=` reference token between the
+ * documented shape, including the two known traps: a `$R[N]=` reference token between the
* key and its object, and a null/decoy occurrence of the same key elsewhere on the page.
*/
const PAGE = `
diff --git a/src/shared/types.ts b/src/shared/types.ts
index 7f6aabdc0..ab9bc2bee 100644
--- a/src/shared/types.ts
+++ b/src/shared/types.ts
@@ -873,7 +873,7 @@ export interface Settings {
* HIDEABLE_HEADER_BUTTONS the same way. */
hiddenHeaderButtons: string[]
/** Whether usage percentages render as consumed ("32% used") or remaining ("68% left").
- * 'remaining' is the historical default; orca users tend to expect 'used'. */
+ * 'remaining' is the historical default; users coming from other tools expect 'used'. */
usagePercentMode: 'used' | 'remaining'
/** Which agent the ⌘⇧C shortcut / quick-add launches. Always a launchable builtin. */
defaultAgent: AgentId