← Discover MCPs and Agents
S
MCPAI & MLGitHub

Stratum

Links

README

From the repo.

⚡ Stratum Terminal

The terminal that understands what you're doing — GPU-rendered, AI-aware, and agent-ready.

CI License: Apache 2.0


Stratum is a GPU-rendered, AI-aware, and agent-compatible terminal emulator built from scratch in Rust. It does not just display text — it understands your commands, previews their side effects, hosts autonomous agents, and presents output as structured, interactive data. In addition, Stratum provides an interactive CLI pair-programming agent (stratum --talk) that functions as a CPU-fallback shell, working on any standard console (PowerShell, CMD, bash, etc.).


⚖️ Why Stratum? (How it differs from other terminals)

Traditional terminal emulators (like Alacritty, WezTerm, iTerm2, or Windows Terminal) are passive text display pipelines. They read bytes from a PTY and render them as character grids. Stratum rethinks this architecture entirely:

FeatureTraditional Terminals⚡ Stratum Terminal
Agent IntegrationNone. Agents must scrape terminal buffers or run blind.Stratum Agent Protocol (SAP) hosts agents directly with interactive IPC control.
Interactive AI PartnerRequires opening browser or separate sidebar chats.Talk Mode (stratum --talk) runs an interactive AI partner inline inside the terminal.
Safety GuardrailsRuns any command blindly, even destructive ones.Execution Consequence Scoring analyzes risk and intercepts hazardous commands.
Data RenderingUnstructured flat text streams.Dimensional Output Panes render escape-sequence tables, JSON, and keys.
Filesystem AwarenessNo awareness of side-effects until after they run.Live Mutation Preview lists changes before executing commands.
Footprint & SpeedHeavy web tech (Electron/WebTech) or barebones text grids.Lightweight GPU-accelerated pipeline (~7 MB release binary, 120 FPS).

🚀 Key Features

🤖 1. Stratum Agent Protocol (SAP)

Stratum is designed to run in environments with autonomous AI agents. Through SAP, agents connect to Stratum over a dedicated stdio channel and communicate using a structured JSON protocol. Agents can:

  • Observe State: Query grid sizes, focus changes, cursor positions, and scrollback.
  • Write Inputs: Synthesize keystrokes or input text directly into active shells.
  • Control Layouts: Open new split panes, focus specific tabs, or change theme color schemes dynamically.
  • Receive Notifications: Subscribe to real-time events, such as terminal size changes, shell processes spawning/exiting, or warning triggers.

🎯 2. Execution Consequence Scoring

Stratum reads commands as you type them and calculates an inline risk score across three dimensions:

  • Reversibility: Can this command be easily undone (e.g., deleting vs. renaming files)?
  • Blast Radius: How many files or system directories are affected?
  • Novelty: Is this a command or utility you rarely or never run?

Commands exceeding safety thresholds trigger a prominent overlay requesting explicit confirm/cancel keypresses before execution.

$ rm -rf /var/data
⚠️ CRITICAL: Irreversible operation affecting system paths
  Reversibility: 5%  |  Blast radius: 95%
  [Press Enter to confirm, Escape to cancel]

🔗 3. Deep NOS Shell Integration

When running inside Stratum, the NOS Shell detects the environment and uses custom OSC escape sequences to communicate structured data types (tables, key-value mappings, and arrays). Stratum renders these:

  • Interactive GPU Tables: Column headers, zebra row shading, and row counts.
  • Mouse Interaction: Click on columns to sort them, scroll through list arrays, or expand/collapse JSON trees.
  • Seamless Fallback: Standard CLI tools (git, cargo, docker) pass through normally as raw ANSI text.

🔮 4. Live Mutation Preview

As you type command arguments, Stratum performs dry-runs or parses argument specs to display a live mutation preview above the input prompt, showing you which files are slated for creation, deletion, or renaming.

$ mv src/old_impl.rs src/new_impl.rs
  MOVE: src/old_impl.rs → src/new_impl.rs
  Summary: 1 file moved

📝 5. Ambient Documentation & Completions

An integrated documentation sidebar parses flags and commands in real time. If you type a known command (e.g. tar, find, cargo), Stratum shows flag definitions, examples, and your shell history relevant to those tools directly inside the UI.

⚡ 6. GPU-Accelerated Text Rendering

Built on top of wgpu, Stratum renders the character grid and overlays with custom shaders. It uses fontdue to dynamically rasterize fonts (such as JetBrains Mono) into a GPU-bound glyph texture atlas. This enables:

  • Ultra-low input latency.
  • Sub-pixel anti-aliasing and transparent alpha blending.
  • Paced 120 FPS rendering.
  • An incredibly small release memory footprint (~7 MB binary).

🧠 7. Talk Mode (Interactive Terminal AI Agent)

By running stratum --talk, you enter an interactive console session hosted entirely via crossterm's CPU renderer. This fallback makes the AI terminal agent accessible inside any system shell (CMD, PowerShell, git bash, etc.) without requiring a graphics driver or GPU.

Features:

  • Toggle Modes via Tab: Switch instantly between [shell] mode (where commands execute directly on your local system) and [ai] mode (where you converse in natural language with the agent).
  • Intelligent Autocomplete Card: A visual drop-down overlay shows auto-completions, command guidelines, and directory folder lists. Use mouse click or navigate via Up/Down arrows and press Enter or Tab to select.
  • Web Search & Page Browsing: Integrated search tools (websearch "<query>" and webread "<url>") allow the agent to query DuckDuckGo and scrape text contents (removing CSS/JS script blocks) to retrieve facts, documentation, or debug steps.
  • Dynamic Skill & Package Installation: The agent can detect if required utilities (like ripgrep, docx, pdfkit, or mermaid-cli) are missing, automatically propose and install them via npm or cargo, write JS/Node scripts, and execute them to compile styled reports or diagrams.
  • Responsive Execution Cancellation: Press Esc or Ctrl+C at any point—whether during execution of long-running command pipelines or during the agent's thinking phase—to instantly abort processes safely, restore raw modes, and return to the prompt.
  • ASCII Tabular Output: Displays structured JSON, databases, and space-aligned columns in beautifully formatted bold ASCII tables.

🪟 Layout and Pane Management

Stratum organizes terminal sessions into tabs and binary-tree split panes.

ShortcutAction
Ctrl+Shift+TCreate new tab
Ctrl+Shift+WClose active pane/tab
Ctrl+Shift+ESplit active pane vertically
Ctrl+Shift+OSplit active pane horizontally
Ctrl+TabCycle to next tab
Ctrl+Shift+TabCycle to previous tab
Ctrl+Shift+]Focus next pane
Ctrl+Shift+[Focus previous pane

⚙️ Usage & Commands

# Start Stratum with the default NOS Shell (requires GPU support)
stratum

# Start the interactive inline AI pair-programming partner (CPU fallback, runs in any terminal)
stratum --talk

# Start Stratum in agent-control mode
stratum --agent-mode

# Force Stratum to load a standard system shell (e.g. bash or PowerShell)
stratum --shell system

# Launch with custom font sizes or configurations
stratum --font-size 16 --config ~/.config/stratum/config.toml

Configuration File

Configure themes, fonts, and grid scrollback by creating a config file at ~/.config/stratum/config.toml:

[font]
family = "JetBrains Mono"
size = 14.0

[terminal]
scrollback_lines = 10000
shell = "nos"           # "nos" (default) or "system"

[renderer]
gpu_backend = "auto"    # Vulkan, Metal, DX12, or auto

[theme]
background = "#1a1b26"
foreground = "#c0caf5"

🛠️ Requirements & Building

Prerequisites

  • Rust 1.80+ (rustup.rs)
  • GPU supporting Vulkan, Metal, or DirectX 12.
  • Platform Dependencies:
    • Windows: None (uses built-in DX12/Vulkan).
    • Linux: libxkbcommon-dev, libwayland-dev, libx11-dev are required for windowing.

Build and Test

# Clone the repository
git clone https://github.com/Nexarats/Stratum.git
cd Stratum

# Run unit and integration tests
cargo test

# Build release binary
cargo build --release

📄 License & Attribution

Stratum is open-source software licensed under the Apache License 2.0.

Attribution Requirements

You are free to download, use, modify, build upon, and distribute this software for personal, commercial, or public projects. However, under the Apache License 2.0 terms, you must retain all copyright, patent, trademark, and attribution notices from the Source form of the Work, and include a copy of the license.

Please give credit to Nexarats if you use Stratum's codebase or design patterns in your own projects!

Collected info

  • 5 stars
  • Language: Rust
  • Source updated: 7/14/2026

Config for your environment

Replace {MCP_ENDPOINT_URL} with this MCP’s endpoint URL (from its repo or docs above). No API key — you connect directly.

Tool

OS

Config file: ~/.cursor/mcp.json

{
  "mcpServers": {
    "mcp-server": {
      "url": "{MCP_ENDPOINT_URL}"
    }
  }
}

Paste into mcpServers in the config file. Restart Cursor after saving.

If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.