Skip to main content Switch to mobile version jchat 0.2.0 Decentralized signal & notification bus for coordinating AI agents (Python API, CLI, MCP).
pip install jchat==0.2.0 Copy PIP instructions
Decentralized signal & notification bus for coordinating AI agents (Python API, CLI, MCP). Standard library only, SQLite-backed, zero runtime dependencies.
Requires Python >= 3.15.
pip install jchat Verify your environment with the built-in loopback self-test:
jchat doctor Quick Start
jchat serve # start node on 127.0.0.1:8765 jchat register agent-b --pid $ # register live agent jchat ping agent-b # live online handshake jchat send agent-b "review ready" --sender agent-a --ref git:HEAD --kind verify jchat pull agent-b # lease messages (30 s default) jchat ack
from jchat import Client, NetPolicy, Node, wrap_untrusted policy = NetPolicy(netmode="localhost") with Node(node_name="local", db_path="/tmp/jchat.db", net_policy=policy, port=0) as node: client = Client(node.url) client.send(sender="agent-a", recipient="agent-b", kind="notify", body="done", ref="git:HEAD") for msg in client.pull("agent-b"): print(wrap_untrusted(msg)) client.ack_read(msg["id"], "agent-b") MCP (stdio)
Run the MCP stdio server for agent harnesses:
jchat mcp Envelope Contract (<= 1000 chars)
jchat is a signal and pointer bus, not a chat history store:
body: strictly <= 1000 characters (ValidationError / 400 payload_too_large if exceeded).
ref: optional resource pointer (<= 512 chars, no newlines or embedded tokens/secrets) prefixed with git:, gh:, drive:, file:, or https:.
kind: notify, verify, claim, ask, or status.
priority: normal or urgent (urgent delivered first).
ttl_s: 1..604800 (default 86400), plus optional dedup_key (idempotent push) and reply_to.
queued: validated envelope persisted in SQLite (messages) awaiting pull or peer /ingest.
delivered: leased by POST /pull (lease_s=30 default). If a consumer crashes before ack, the lease expires and the message returns to queued.
read: POST /ack hard-deletes the row (DELETE FROM messages WHERE id = ?) and leaves only a 1 h in-memory body-less receipt (id -> {status, reason, ts}).
failed: body-less receipt recorded on ttl_expired, agent_offline (when require_online=True), node_unreachable, or node_out_of_mesh.
Netmodes (JCHAT_NETMODE)
Wildcard binds (0.0.0.0, ::, *) are always refused. Non-localhost modes authenticate every request with HMAC-SHA256 (X-JChat-Ts, X-JChat-Nonce, X-JChat-Sig) using a 30 s skew window and nonce replay cache.
Key environment variables: JCHAT_NETMODE, JCHAT_KEY, JCHAT_ALLOW_IPS, JCHAT_CLOUD_URL, JCHAT_BIND, JCHAT_PEERS, JCHAT_NODE, JCHAT_DB, JCHAT_URL.
jchat install-hooks
jchat doctor runs an isolated loopback self-test covering send, pull, ack, and delete-on-read.
Released: Nov 29, 2026
Both files in this release have provenance metadata.
View provenance details
MIT View SPDX License List
Release files for jchat 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 87.1 kB
Release files / jchat-0.2.0.tar.gz
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 29, 2026.
Release files / jchat-0.2.0-py3-none-any.whl
Security for jchat 0.2.0
Both files in this release have been uploaded with provenance metadata.
With provenance jchat-0.2.0.tar.gz Nov 29, 2026
With provenance jchat-0.2.0-py3-none-any.whl Nov 29, 2026
Attestation for jchat-0.2.0.tar.gz
Attestation for jchat-0.2.0-py3-none-any.whl
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.
Release history Release notifications | RSS feed
Nov 29, 2026 2 release files Full provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from fc0d8e6











