Skip to main content

Slipstream Protocol - Semantic Quantization for Efficient Multi-Agent Coordination

Project description

Slipstream

Semantic Quantization for Multi-Agent AI Communication

PyPI License HuggingFace Model HuggingFace Dataset Paper


82% fewer tokens. Semantic meaning preserved. Built for the AAIF ecosystem.

Before (45 tokens):
{"from": "alice", "to": "bob", "type": "request", "action": "review", "target": "auth_module"}

After (5 tokens):
SLIP v1 alice bob RequestReview auth_module

Multi-agent AI systems waste 40-60% of compute on coordination overhead. At scale, that's $180K-$2.5M/year just for agents talking to each other.

Slipstream fixes this through semantic quantization - transmitting pointers to concepts rather than the concepts themselves.


Quick Start

pip install slipcore
from slipcore import slip, decode, think_quantize_transmit

# Create a message (5 tokens instead of 45)
wire = slip("alice", "bob", "RequestReview", ["auth_module"])
# -> "SLIP v1 alice bob RequestReview auth_module"

# Or let the quantizer map natural language
wire = think_quantize_transmit(
    "Please check the authentication code for security issues",
    src="dev", dst="reviewer"
)
# -> "SLIP v1 dev reviewer RequestReview"

# Decode
msg = decode(wire)
print(msg.anchor.canonical)  # "Request review of work"

Why Slipstream?

The Problem

BPE tokenizers fragment compressed formats, negating syntactic optimization:

Compressed: REQ/TSK|s=7|d=3|act=review
Expected:   8 tokens
Actual:     22 tokens (every | and = is a token!)

The Solution

Slipstream uses a Universal Concept Reference (UCR) - a shared semantic manifold where common agent intents have single-token names that work across all LLM architectures.

Format Tokens Annual Cost (50 agents)
JSON verbose ~45 $180,000
JSON minimal ~30 $120,000
Slipstream ~5-8 $32,000

Wire Format

SLIP v1 <src> <dst> <anchor> [payload...]
  • No special characters - avoids BPE fragmentation
  • Space-separated - clean tokenization
  • CamelCase anchors - single tokens in most tokenizers

Core Anchors

Category Anchors
Requests RequestTask, RequestReview, RequestHelp, RequestPlan
Inform InformComplete, InformProgress, InformBlocked, InformStatus
Propose ProposePlan, ProposeChange, ProposeAlternative
Evaluate EvalApprove, EvalReject, EvalNeedsWork
Meta Accept, Reject, MetaAck, MetaHandoff, Fallback

Finetuned Model

We provide a ready-to-use model trained on the Slipstream protocol:

Format Link Use Case
LoRA Adapter slipstream-glm-z1-9b Merge with base
GGUF Q4 slipstream-glm-z1-9b-gguf Ollama / llama.cpp
Dataset slipstream-tqt Train your own

Run with Ollama

ollama run anthony-maio/slipstream

Train Your Own

# Generate training dataset
python -m slipcore.finetune_llm -n 1000 --provider gemini -o train.jsonl

# See notebooks/slipstream_finetune_colab.ipynb for full guide

AAIF Integration

Slipstream is designed as the transport layer for the Linux Foundation Agentic AI ecosystem:

┌─────────────────────────────────────┐
│   Application (Agent Logic)        │
└────────────────┬────────────────────┘
                 │
┌────────────────▼────────────────────┐
│   MCP / A2A (Semantic Layer)        │
└────────────────┬────────────────────┘
                 │
┌────────────────▼────────────────────┐
│   Slipstream (Transport Layer)      │  ← 82% token reduction
└────────────────┬────────────────────┘
                 │
┌────────────────▼────────────────────┐
│   Network                           │
└─────────────────────────────────────┘

Resources


Citation

@misc{maio2025slipstream,
  title={Slipstream: Semantic Quantization for Efficient Multi-Agent Coordination},
  author={Maio, Anthony},
  year={2025},
  url={https://github.com/anthony-maio/slipcore}
}

License

Apache 2.0


Stop paying the token tax.

pip install slipcore

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

slipcore-2.4.0.tar.gz (50.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

slipcore-2.4.0-py3-none-any.whl (54.2 kB view details)

Uploaded Python 3

File details

Details for the file slipcore-2.4.0.tar.gz.

File metadata

  • Download URL: slipcore-2.4.0.tar.gz
  • Upload date:
  • Size: 50.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for slipcore-2.4.0.tar.gz
Algorithm Hash digest
SHA256 b7e023ceded0cdeb729fd9f1c2ab396df5c1cdf83a7ae1ab8062f1c960dd354d
MD5 62cb0ca2bef7de024cba2faa8c1f7471
BLAKE2b-256 b8989601ccf38b1988ff9259be9d75efedde58daf8d320e17aadc671112f534e

See more details on using hashes here.

Provenance

The following attestation bundles were made for slipcore-2.4.0.tar.gz:

Publisher: publish.yml on anthony-maio/slipcore

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file slipcore-2.4.0-py3-none-any.whl.

File metadata

  • Download URL: slipcore-2.4.0-py3-none-any.whl
  • Upload date:
  • Size: 54.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for slipcore-2.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 75d5fc983f5c1632ed939ff4428fdd464426f5d0843e8a0ff16cde7f6c2dee5e
MD5 7f2b05ad8fb0cbcb55feaf41b812142b
BLAKE2b-256 1bdb751251bd7bdb82258434aefb79edc76beaab94c26b62db7e9bb8ea695cd9

See more details on using hashes here.

Provenance

The following attestation bundles were made for slipcore-2.4.0-py3-none-any.whl:

Publisher: publish.yml on anthony-maio/slipcore

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page