Answers from the documentation; checking which model is on duty
Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
performance-at-scale - Skill - OpenSmartRoute
Skillv1.0.0
performance-at-scale
Spatial indexing and world streaming for Three.js building games with thousands of pieces. Use when optimizing building games, implementing spatial queries, chunk loading, or profiling performance.
Imported from bbeierle12/skill-mcp-claude (skills/performance-at-scale/SKILL.md). Install upstream with npx skills add bbeierle12/skill-mcp-claude --skill performance-at-scale. Copyright stays with the author.
Performance at Scale
Spatial indexing and world streaming for large-scale building systems.
Quick Start
import { SpatialHashGrid } from './scripts/spatial-hash-grid.js';import { Octree } from './scripts/octree.js';// Uniform distribution - use hash gridconst grid = new SpatialHashGrid(10);grid.insert(piece, piece.position);const nearby = grid.queryRadius(position, 15);// Clustered bases - use octreeconst octree = new Octree(bounds, { maxDepth: 8 });octree.insert(piece);const inBox = octree.queryBox(min, max);
Reference
See references/performance-at-scale.md for detailed guidance on:
Spatial partitioning selection (when to use grid vs octree)
Chunk loading strategies
Instancing and LOD
Memory management
Scripts
scripts/spatial-hash-grid.js - O(1) queries for uniform distribution
scripts/octree.js - Adaptive queries for clustered objects
scripts/chunk-manager.js - World streaming for large maps
Install performance-at-scale and it becomes one more candidate the router can pick - when it fits.
A listing is a routing target with a manifest: what it does, which domains it covers, what it costs and who publishes it. Once installed it sits beside your own models and tools, is scored like any other candidate for each request, and shows up in the trace when it wins. Ratings come from workspaces that installed it, one per account.
When a provider is down or over quota the request moves on; the trace says it did.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
# after Install: the listing is in your workspace's routing pool - a plan picks it for its slotcurl-s-X POST https://api.opensmartroute.ai/api/v1/route -H 'Authorization: Bearer $OSR_API_KEY' -H 'Content-Type: application/json' -d '{"text": "...", "plan": true}'
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.