Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Nex

A deterministic language and protocol for agent understanding and alignment.

Status: alpha (0.1.0a2). This repository is the Nex Alpha 1.0 reference protocol and runtime. It is a pre-release published to PyPI as nex-protocol (pip install nex-protocol==0.1.0a2; import name nex). The quantum-related and network features are out of scope.

Quick start

pip install nex-protocol==0.1.0a2
# or, for development:
pip install -e ".[dev]"
pytest
nex demo                          # signed two-agent handshake + request
nex glyph Kamyar --format svg -o kamyar.svg    # Nex-G glyph (also json | png | scene | html)
nex glyph Kamyar --format html -o kamyar.html  # self-contained 3D preview (open in a browser)
nex glyph Kamyar --format png -o kamyar.png     # PNG is written as raw bytes; use -o on Windows
nex glyph Kamyar --glyph-version 1.0            # frozen 1.0 algorithm (default is 1.1)
nex error E709                    # describe an error code
python benchmarks/bench.py        # simple benchmarks

What is implemented

  • Nex-J / Nex-T parsing, strict JSON-Schema validation (cached validators), RFC 8785-style canonical JSON.
  • Runtime: handshake, sessions, Ed25519 signatures, nonce/replay protection, duplicate-id detection, task state machine, error registry (E-codes) and ERROR responses, memory and SQLite stores, cleanup worker.
  • Nex-G: deterministic integer-only glyph geometry, SVG, PNG, and a deterministic 3D scene description.
  • Experimental (non-normative): ultrasonic symbol encoding, NEP-0007. It never changes Nex-J, which stays canonical.
  • Crypto agility: documented in NEP-0002, including a reserved slot for a future post-quantum signature algorithm. No post-quantum or quantum features are implemented.

Layout

See CONTRIBUTING.md, SECURITY.md and CHANGELOG.md.

Metadata

Release files for nex-protocol 0.1.0a2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nex-protocol 0.1.0a2
File Size Uploaded Provenance Actions
nex_protocol-0.1.0a2.tar.gz 66.1 kB With provenance Details for nex_protocol-0.1.0a2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nex-protocol 0.1.0a2
File Interpreter ABI Platform Actions
nex_protocol-0.1.0a2-py3-none-any.whl Python 3 none any Details for nex_protocol-0.1.0a2-py3-none-any.whl

Total release size: 128.7 kB

Release files / nex_protocol-0.1.0a2.tar.gz

Download URL nex_protocol-0.1.0a2.tar.gz
Size 66.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8db3c8726546dad752f20e0baf763501cc3bc244a1ae9426704caf982a2b0fa6
BLAKE2b-256 checksum
How to use checksums
271837670441cacc23824f838959f6299a88212ad546bbd469fd9dc2393af724
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Release files / nex_protocol-0.1.0a2-py3-none-any.whl

Download URL nex_protocol-0.1.0a2-py3-none-any.whl
Size 62.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d07d5755864e8ba48f7469ebea69bf4acc58de2b2d2f290e0f74c7d85101e57b
BLAKE2b-256 checksum
How to use checksums
a63ad093fc54cdafc1af82fc1941499dacf54dc1cd695463d34629c062d74913
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Security for nex-protocol 0.1.0a2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for nex_protocol-0.1.0a2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page