Borrowing it
Nothing to install: this file belongs to oxy-hq/oxygen. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/oxy-hq/oxygen/main/.claude/skills/oxy-scaling-design/SKILL.mdgit clone --depth 1 https://github.com/oxy-hq/oxygenWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/oxy-hq/oxygen/oxy-scaling-design)<a href="https://agentmods.dev/skills/oxy-hq/oxygen/oxy-scaling-design"><img src="https://agentmods.dev/badge/skills/oxy-hq/oxygen/oxy-scaling-design/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/oxy-hq/oxygen/oxy-scaling-design"><img src="https://agentmods.dev/badge/skills/oxy-hq/oxygen/oxy-scaling-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00156 | $0.02400 |
| Opus 5.5 | $0.00062 | $0.00960 |
| Sonnet 5.5 | $0.00031 | $0.00480 |
| Haiku 4.5 | $0.00016 | $0.00240 |
Grade A, and why
oxy-scaling-design scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 18d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 76 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Oxy multi-instance scaling — quick reference
The current architecture in one line: Oxy runs as a split fleet keyed by OXY_ROLE — a single stateful ide (the Factory: working copy + .git + compile + chat-run execution), a horizontally-scaled stateless serve fleet (reads Postgres + S3 only), and a worker queue drainer. This is a Postgres primary/read-replica shape: the ide is the primary, the serve fleet is the read replicas, and the compile boundary (compiled *_definitions rows + S3 blobs, keyed by revision_id) is the replicated read model.
The direction (decided 2026-10-05): the Factory is being retired, not scaled. No IDE; content is authored in git and pushed; compile becomes its own service that fetches a commit and serves previews and sandboxes; chat and every other surface read the compiled revision only; workspaces with no git remote go. Design new work so it needs no server-side working copy — a change that adds a reason to keep the Factory is going the wrong way. Plan, production data and open decisions: internal-docs/factory-retirement.md.
Read these first when grounding a decision:
internal-docs/multi-instance-fleet.md— how the fleet works today (roles, the stateful-vs-HA matrix, route classification, thesuper_read_onlyguard, graceful degradation, code map). The primary reference.internal-docs/factory-retirement.md— the forward plan: phases, exit tests, and the existing statements it overturns.internal-docs/multi-instance-fleet.md— the original phase ledger + the rejected-alternatives list.internal-docs/compile-boundary.md— operator runbook.
What is built (the current reality)
- Split fleet via
OXY_ROLE(ide | serve | worker | all). One knob selects the topology; everything else derives from it. Aservereplica derives in-process workers + the periodic global driver OFF; every other role ON. The legacy flags (OXY_DISABLE_INPROCESS_WORKERS,OXY_INPROC_GLOBAL_WORKER,--no-workers) survive only as two-directional overrides. - Compile boundary (compile-complete stateless serving). The
idecompiles the working copy → Postgres*_definitionsrows + S3 blobs perrevision_id→ promotes viaworkspaces.current_revision_id. The serve fleet reads the promoted revision and never walks the workspace FS. This is why the read path needs no working copy — and therefore no per-request clone. - Self-routing.
role_manifest::classifyis the single routing authority; a serve replica reverse-proxiesIdeOnlyrequests toOXY_IDE_UPSTREAM(ide_proxy). Replaces the drift-prone external route table that caused three outages. - Route classification + HA carve-out. Every route states its pod at the mount —
route_ide(FS/exec/live-stream) orroute_fleet(Postgres/S3 reads stay HA) — and the two take differently-typed handlers, so a working-copy handler cannot compile onto a fleet route. Plus drift tests and thesuper_read_onlyruntime guard. See theoxy-route-classificationskill. - Runtime-artifact S3 mirror (
runtime_artifact.rs) — charts/results/app-data mirror to the compile-boundary bucket so any replica serves them; ide-down charts degrade to the S3 mirror. - Schedules/monitors fire without a leader. The periodic global driver runs on every eligible node;
tick_schedules/tick_monitor_schedulesCAS-advancenext_run_atso firing is exactly-once across replicas. (Leader election was tried and removed — the CAS already guarantees it, and running on all eligible nodes is better HA.) - Backpressure — admission control (global ceiling + per-tenant fairness, 503 +
Retry-After), worker HPA on outstanding work (queued + claimed) against capacity — see the recipe ininternal-docs/worker-fleet.md; queue depth alone goes absent when the fleet keeps up. - Migrations — a dedicated migrate Job owns the schema;
serve/compile/workerhonourOXY_SKIP_MIGRATIONS; a startup advisory lock serialises co-booting nodes. - Main traffic off the Factory (October 2026). Custom-app function calls run on any replica, with a handler-level replay to the Factory for a workspace with nothing compiled or a database that is a file in the checkout. Airway start, single-window backfill, cancel, live stream and both resets are served by any replica. Custom-app procedure runs execute on the task queue, at most once, with an execution heartbeat.
OXY_IDE_DEFER_QUEUE_WORK(off by default) makes the Factory drive only compiles and take anything else after 30 s unclaimed.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 18d ago Changed bfa488ae5503
- 1mo ago First seen · 76 lines · 156 tokens per session scan A 6a13db12c79d
oxy-scaling-design is a skill published in the GitHub repository oxy-hq/oxygen (206 stars, last pushed yesterday), licensed Apache-2.0. It adds 156 tokens to every session and 2,400 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-14.
oxy-scaling-design compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| oxy-scaling-designoxy-hq/oxygen | Skill | 206 | yesterday | Apache-2.0 | A | 156 | Claude Code |
| gke-compute-classesgoogle/skills | Skill | 25k | today | Apache-2.0 | A | 83 | Claude Code, Codex |
| cloud-operator-admin-setupgoogle/skills | Skill | 25k | today | Apache-2.0 | A | 115 | Claude Code, Codex |
| gke-reliabilitygoogle/skills | Skill | 25k | today | Apache-2.0 | A | 85 | Claude Code, Codex |
| gke-workload-securitygoogle/skills | Skill | 25k | today | Apache-2.0 | A | 171 | Claude Code, Codex |
| nemo-automodel-launcher-configNVIDIA/skills | Skill | 4.2k | today | Apache-2.0 | A | 30 | Claude Code |
| azure-mgmt-botservice-dotnetmicrosoft/skills | Skill | 3.3k | yesterday | MIT | A | 78 | Claude Code |