Skip to main content
Home/Metal
HYPERSPACE METAL · 12 modules · 7,849 lines · shipped 30 Mar 2026

The local-first runtime that powers Thor.

Hyperspace Metal is the 12-module runtime that sits under every Thor session. Memory, graph, vectors, inference, browser, voice, and a supervisor that keeps the lights on when any one module misbehaves. It runs fully offline. It runs on an M2 MacBook. The cloud is an option, not a requirement.

MetalStore633 lines
SQLite with FTS5 full-text search. Stores sessions, messages, preferences, tool results, and temporal queries. Everything Thor remembers lives here.
MetalGraph1,384 lines
KuzuDB embedded knowledge graph. Entities and relations are extracted from every conversation and stored as queryable nodes. Cross-session recall becomes a graph traversal.
MetalVectors449 lines
LanceDB vector index with a 3-tier fallback chain (LanceDB > in-memory > disabled). Semantic search over every file Thor has touched.
MetalMemory672 lines
The orchestrator. Combines 6 recall sources (recent, graph, vectors, FTS, curated files, and frozen snapshots) into a single ranked context window for the agent.
MetalInference1,294 lines
Model cascade: Ollama > llama-server > Apple MLX > OpenRouter. Thor picks the fastest available backend and falls back when one goes down. No rate limits when offline.
MetalAgent1,287 lines
The brain. 12 tools, automatic context compression, self-extension via rune_forge and skill_write. This is where the loop runs.
MetalRunes575 lines
Local self-modification. Thor can forge a new skill from a successful task, carve a fix into its own prompt, or revert a change. All locally, no cloud round-trips.
MetalBrowser422 lines
Headless Playwright + Serper search. Full screenshot-and-DOM pipeline for web research, ported from @agenticos/browser-service.
MetalVoice242 lines
Kokoro TTS + Whisper STT + wake-word detection. Fully offline conversations. Thor can listen in the background and jump in when addressed by name.
MetalRuntime546 lines
The supervisor. Handles graceful degradation when any module is unavailable, health checks, restart policy, and crash reports.
MetalSync298 lines
Optional encrypted Supabase sync. Local wins on conflict. Turn it off and Thor runs 100% offline with zero network calls.
MetalBus147 lines
Module message bus. Glue for the other 11 modules to signal each other without circular imports.
Privacy posture. Metal never phones home. There is no telemetry endpoint, no anonymous usage pings, no crash reports shipped to a third-party. MetalSync is opt-in and encrypts data client-side before it ever leaves your machine. If you disable sync, Thor has zero network egress that was not explicitly initiated by a tool call you authorized.
GET THOR Source on GitHub