Slipstream Protocol - Semantic Quantization for Efficient Multi-Agent Coordination
Project description
Slipstream
Semantic Quantization for Multi-Agent AI Communication
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
- Paper: Slipstream: Semantic Quantization for Efficient Multi-Agent Coordination
- Model: HuggingFace
- Dataset: HuggingFace
- Spec: spec/slip-spec.md
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7e023ceded0cdeb729fd9f1c2ab396df5c1cdf83a7ae1ab8062f1c960dd354d
|
|
| MD5 |
62cb0ca2bef7de024cba2faa8c1f7471
|
|
| BLAKE2b-256 |
b8989601ccf38b1988ff9259be9d75efedde58daf8d320e17aadc671112f534e
|
Provenance
The following attestation bundles were made for slipcore-2.4.0.tar.gz:
Publisher:
publish.yml on anthony-maio/slipcore
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
slipcore-2.4.0.tar.gz -
Subject digest:
b7e023ceded0cdeb729fd9f1c2ab396df5c1cdf83a7ae1ab8062f1c960dd354d - Sigstore transparency entry: 787555201
- Sigstore integration time:
-
Permalink:
anthony-maio/slipcore@a9d883e988a5021ecd62856e63a922faf8f962c2 -
Branch / Tag:
refs/tags/v2.4.0 - Owner: https://github.com/anthony-maio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a9d883e988a5021ecd62856e63a922faf8f962c2 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75d5fc983f5c1632ed939ff4428fdd464426f5d0843e8a0ff16cde7f6c2dee5e
|
|
| MD5 |
7f2b05ad8fb0cbcb55feaf41b812142b
|
|
| BLAKE2b-256 |
1bdb751251bd7bdb82258434aefb79edc76beaab94c26b62db7e9bb8ea695cd9
|
Provenance
The following attestation bundles were made for slipcore-2.4.0-py3-none-any.whl:
Publisher:
publish.yml on anthony-maio/slipcore
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
slipcore-2.4.0-py3-none-any.whl -
Subject digest:
75d5fc983f5c1632ed939ff4428fdd464426f5d0843e8a0ff16cde7f6c2dee5e - Sigstore transparency entry: 787555205
- Sigstore integration time:
-
Permalink:
anthony-maio/slipcore@a9d883e988a5021ecd62856e63a922faf8f962c2 -
Branch / Tag:
refs/tags/v2.4.0 - Owner: https://github.com/anthony-maio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a9d883e988a5021ecd62856e63a922faf8f962c2 -
Trigger Event:
release
-
Statement type: