ospop-mcp 1.4.0

Omnispherepop 12-tool stdio MCP server (`ospop-mcp`) for AI agent weight programming, 1.58-bit PTQ, trit-diff, delta stacking, and Ablagent/DWMIP.
ospop-mcp-1.4.0 is not a library.

ELI5: What is Weight Programming?

Imagine an LLM as a mixing console with 1.5 billion dimmer switches (floating-point weights). Normally, you treat that console as a sealed black box: retrain everything or ship a multi-gigabyte binary blob.

Omnispherepop opens the box and treats neural weights like source code:

  • Dimmer switches → 3-way switches ({-1, 0, +1}): Compress weights to 5 trits per byte (1.6 bits/weight) — 95.0% smaller than FP32 / 88.4% smaller than FP16 with zero unsafe Rust.
  • Smooth outlier spikes first (--hadamard / --hadamard-2d): An exact self-inverse Walsh-Hadamard rotation spreads giant outlier channels evenly across each 128-weight group before snapping to trits (cutting PTQ KL by up to 13×, and 4.0× full-model when fused with SmoothQuant).
  • Git diffs for fine-tuning, RLVR & MARL (trit-diff, pack-delta, apply-delta): Compress only what RL changed (ΔW) into a portable .ospop.safetensors 1.58-bit patch you can inspect, stack orthogonally across skills, and reverse with a receipt.
  • Evidence-first directional surgery (ospop dwm — wired with Ablagent / DWMIP): Project out a single unit direction (W' = W - α d̂ (d̂ᵀ W)) with independent replay verification, fail-closed policy gates (--strict-gate), and 1.58-bit patch export.
trit-diff layer14.o_proj.base -> layer14.o_proj.s3_marl (group 128): 57 / 65536 changed (0.087% flip, 0 direct sign flips)
pack-delta (ospop.delta.pack5.v1): 15478 B vs 262144 B f32 (94.1% smaller vs f32, 88.2% vs fp16)  energy_retained 82.3%  round_trip true
apply-delta layer14.o_proj.base: stacked 2 patch(es) [math + s3_marl] (30956 B total)  ok=true

dwm layer.weight [16x32] (dense.rank_one_output.v0, alpha=0.60): attenuation 60.0% (1.58b patch 45.8%)  rel_frob 0.232  replay_ok=true
gate=eligible  authorization=not_granted  trit_flip=9.375% (sign_flips=0)  1.58b_patch=408 B  round_trip=true

No account, no telemetry, no model download required to start. The demo snapshot is generated deterministically so your terminal, browser sandbox, MCP agent, and CI see the exact same numbers.


Install

One-liner (macOS & Linux)

curl -fsSL https://raw.githubusercontent.com/8b-is/omnispherepop/main/scripts/install.sh | sh

Cargo (crates.io — Rust 1.78+)

cargo install ospop-cli ospop-mcp

Homebrew (macOS & Linux)

brew install --formula https://raw.githubusercontent.com/8b-is/omnispherepop/main/packaging/homebrew/ospop.rb

Agent Skill (npx skills) & MCP Server

# Install the Omnispherepop skill for Claude Code, OpenCode, Codex, Cursor, etc.
npx skills add 8b-is/omnispherepop
{
  "mcpServers": {
    "omnispherepop": {
      "command": "ospop-mcp",
      "args": []
    }
  }
}

30-Second Tour

ospop inspect                                         # content-addressed snapshot identity
ospop quantize --group-size 128 --hadamard --eli5     # 1.58b ternary PTQ + 1D Walsh-Hadamard
ospop dwm --tensor layer.weight --alpha 0.6 --eli5    # Ablagent/DWMIP rank-1 directional edit
ospop lens --view ternary --eli5                      # inspect trits visually
ospop learn wp.ternary                                # interactive lab with observed checkpoint

# Real safetensors checkpoints: 2D Hadamard, RLVR/MARL trit-diff, and multi-skill 1.58b stacking
ospop --file examples/tiny-gpt2.safetensors inspect
ospop --file ckpt.safetensors quantize --tensor layer14.o_proj.base --group-size 128 --hadamard-2d 256
ospop --file ckpt.safetensors trit-diff --base layer14.o_proj.base --target layer14.o_proj.grpo
ospop --file ckpt.safetensors pack-delta --base layer14.o_proj.base --target layer14.o_proj.grpo --out math.ospop.safetensors
ospop --file ckpt.safetensors apply-delta --tensor layer14.o_proj.base --patch math.ospop.safetensors --patch marl.ospop.safetensors

Architecture: Harness → Loop → Graph

Reliable AI weight engineering isn't a better prompt — it's three distinct layers (read our full guide: docs/articles/02-harness-loop-graph-for-weight-engineering.md):

Layer Role Inside Omnispherepop
Harness (Environment & Walls) Gives humans & agents narrow tools, memory on disk, and unbypassable guardrails One Program enum across CLI, 12-tool ospop-mcp, and browser; #![forbid(unsafe_code)] zero-dependency ospop-core; AGENTS.md + llms.txt
Loop (Evidence, Not Vibes) Replaces self-report with deterministic checks, replay receipts, and hard exits round_trip_ok, hadamard_orthogonal_ok, replay_ok, Rust↔JS check-parity.mjs, and fail-closed ospop dwm --strict-gate (exit 2)
Graph (Composable Flow) Splits independent work into frozen, reversible, stackable artifacts Ultra-graph set-to-set edges (ospop_core::graph) and orthogonal 1.58-bit .ospop.safetensors multi-skill patch stacking

Directional Weight Modification (Ablagent / DWMIP)

Omnispherepop natively integrates the evidence-first DWMIP contract pioneered by Blackfrost-AI/Ablagent (Apache-2.0) in zero-unsafe Rust (crates/ospop-core/src/dwm.rs, ospop dwm, ospop_dwm):

  • Exact rank-one projection: W' = W - α d̂ (d̂ᵀ W) (dense.rank_one_output.v0) or input-space W' = W - α (W d̂) d̂ᵀ, computed in FP64 accumulation with strict unit-norm binding (dwmip.bound-direction.v0).
  • Independent replay & fail-closed gate: Every run replays the transform, checks perturbation bounds (rel_frobenius_delta), audits trit flips, and with --strict-gate exits 2 (status: "blocked", authorization: "not_granted") whenever external behavioral redline evidence is absent.
  • 1.58-bit DWM patch bridge: Export any directional intervention directly to .ospop.safetensors (--out dwm.ospop.safetensors) and stack it alongside RLVR or MARL skill patches!

Operations & 13 MCP Tools

CLI Operation MCP Tool What it does Measured Evidence
inspect ospop_inspect snapshot identity & tensor shapes SHA-256 snapshot id, tensor count
quantize ospop_quantize ternary or A6P qdelta, optional --hadamard / --hadamard-2d sparsity, 4/5-trit bytes, MSE, hadamard_orthogonal_ok
any-rate ospop_any_rate Any-Rate progressive residual ternary (arXiv:2611.34402, 1..4 planes in ONE file) progressive curve (bpw, MSE, RMSE), mse_improvement_x, round_trip_ok
trit-diff ospop_trit_diff compare base vs RLVR/MARL weights through the ternary lens flip_rate, sign_flips, delta_mse, delta_energy_retained
pack-delta / apply-delta ospop_pack_delta serialize & stack .ospop.safetensors, optional --jnsp (arXiv:2611.17103) artifact_bytes, compression_vs_fp16, jnsp.order_invariant, round_trip_ok
dwm ospop_dwm Ablagent/DWMIP rank-1 directional edit + deployed-precision audit (arXiv:2611.00665) directional_attenuation, deployed_precision_drift, replay_ok, decision
lens ospop_lens ternary, heatmap, graph, diff, sparsity-histogram views rendered output, round-trip flag
diff / prune ospop_diff / ospop_prune reversible snapshot edit / ultra-graph reachability round_trip_ok, kept/dropped counts
learn / explain ospop_learn / ospop_explain 17 observed-checkpoint labs & ELI5 explainer per-lesson runtime checkpoint verdict
--file / load ospop_load_safetensors / ospop_load_demo dense F32/F16/BF16 safetensors loader strict rejection of malformed files

Empirical Highlights (Free Colab T4 · Verified Against Rust CLI)

Full reproducible numbers live in docs/BENCHMARKS.md and public artifacts/patches on Hugging Face at https://huggingface.co/datasets/eightb/omnispherepop-benchmarks:

  • Live 0.00 pp zero-interference dual-skill stacking (Qwen/Qwen3-1.7B): Stacking Δ_math_1.58b + Δ_marl_1.58b simultaneously onto one base reproduced exact single-patch Countdown Math (33.3%, 4× zero-shot 4-num transfer 4.2% → 16.7%) AND exact s3-maze swarm solve (50.0% at N=4 & N=6, 8.0 steps) — backed by global cos = -0.00001 across all 28 layers (196 matrices), and verified triple-stacking [Math RLVR + InfoGain MARL + Ablagent DWM] in Rust ospop v1.3.0 (46,434 B total vs 262,144 B f32).
  • 1.58-bit Math RLVR diffs beat dense FP16 Dr. GRPO (Qwen2.5-1.5B): On 48 held-out Countdown tasks, FP16 Base + ospop(ΔW) hit 25.0% (100% format, −88.4% vs FP16) vs 20.8% for full FP16 Dr. GRPO and 12.5% for FP16 Base.
  • 1.58-bit s³ Cooperative MARL diffs beat dense FP16 MARL (HuggingFaceSwarms/s3-maze): Trained only on N=2 swarms (6.5 min on T4), FP16 Base + ospop 1.58b MARL Diff reached 100.0% solve (5.2 steps, 44.3% redundancy, +1.520 reward) at N=4 (beating FP16 MARL 95.8%) and 100.0% at N=6 (3× team-size scaling!).
  • Math RLVR and Cooperative MARL are near-exact orthogonal: Peak trit-flip bands separate by depth (L12–L14 vs L14–L19), and even on shared Layer 14 cos(ΔW_math, ΔW_marl) = -0.00015 (o_proj) / +0.00038 (down_proj).
  • SmoothQuant + Walsh-Hadamard fusion (SQ(α=0.5) + had1): Cuts full 28/28 zero-shot 1.6-bpw PTQ KL 4.0× (11.76 → 2.94).

Notebooks & Educational Articles

Runnable Colab / Jupyter Notebooks (notebooks/)

Notebook Topic Launch
01_weight_programming_158bit_ptq.ipynb 1.58-bit PTQ, outlier Walsh-Hadamard (W H), Rust CLI parity Open In Colab
02_rlvr_trit_diff_and_dual_skill_stacking.ipynb HF checkpoints, Math vs MARL orthogonality, .ospop.safetensors stacking Open In Colab
03_dwm_abliteration_evidence_first.ipynb Ablagent / DWMIP rank-one surgery, --strict-gate, 1.58b patch export Open In Colab

Educational Articles (docs/articles/)

  1. From Floating-Point Blobs to Weight Programming — ELI5 → SOTA guide to LLM training, RLVR, MARL, Walsh-Hadamard, SmoothQuant, and 1.58-bit diffs.
  2. Harness, Loop, Graph for Weight Engineering — Applying the 3-layer agent architecture (environment, verifiable evidence, dependency flow) to reliable weight systems.
  3. Evidence-First Directional Weight Modification (DWM / DWMIP) — How Ablagent's rank-one projection and fail-closed gates bridge to stackable 1.58-bit .ospop.safetensors patches.
  4. November 2026 Research Frontier → Applied Roadmap — Deep dive into JNSP (arXiv:2611.17103), Deployed-Precision Auditing (arXiv:2611.00665), Any-Rate coded bit-planes, NAPO, PACE, and TTT-Consolidate.

Repository Layout

crates/ospop-core       zero-unsafe core: trits, PTQ, 1D/2D Hadamard, .ospop.safetensors, DWM/DWMIP, ultragraphs, snapshots
crates/ospop-runtime    Program enum and Runtime::execute (single truth for CLI, MCP, browser)
crates/ospop-academy    17 lessons across 5 tracks with observed checkpoints
crates/ospop-cli        binary `ospop`
crates/ospop-mcp        binary `ospop-mcp`, 12-tool MCP over stdio
notebooks/              3 runnable Colab / Jupyter notebooks
docs/articles/          educational deep-dives on LLM training, weight-programming, Harness/Loop/Graph, DWMIP
skills/omnispherepop/   `npx skills add 8b-is/omnispherepop` agent skill
packaging/homebrew/     Homebrew formula (`ospop.rb`)
scripts/                one-liner `install.sh`, site build, owner drift check, Rust<->JS parity check
site/                   GitHub Pages landing page, live ternary sandbox, academy pages
third_party/ultra-graph git submodule: zerocpu kernels (5-trit packing, A6P)

Star History


Publishing & Mirrors

Three homes, because ownership is joint. Codeberg is canonical (codeberg.org/8b-is/omnispherepop); GitHub carries two mirrors for reach, one per owner account.

Host Repository Role
Codeberg https://codeberg.org/8b-is/omnispherepop canonical, receives tags first
GitHub https://github.com/8b-is/omnispherepop mirror
GitHub https://github.com/peterlodri-sec/omnispherepop mirror

scripts/sync-owners.sh --check fails CI if a URL drifts or a mirror is dropped from this table or from OWNERS.toml.

Governance, Acknowledgments & License

Built with 8b.is and Standard Galactic. See ACKNOWLEDGMENTS.md, GOVERNANCE.md, TRADEMARK.md, CLA.md, docs/STATUS.md, CONTRIBUTING.md, and SECURITY.md. Licensed MIT OR Apache-2.0.