Skip to main content

HTTPS for AI Agent State. Lightweight, cryptographically verified Pathway Tokens to eliminate context bloat.

Project description

Agntshare (agnt.sr)

HTTPS for AI Agent State.

PyPI version License: MIT

Today, AI agents hand off tasks by stuffing 100k+ tokens of raw memory into prompt windows. It’s slow, expensive, and degrades context.

Agntshare replaces raw context with a cryptographically verified "coat-check ticket" (Pathway Token). Mint a token on Agent A, pass a tiny 28-byte string, and let Agent B resolve the exact state it needs.

🚀 Quickstart

Install the zero-dependency SDK:

pip install agentshare

Zero-Friction Local Handoff (No API Keys Required):

from agentshare import AgentShareClient

# Initialize in local sandbox mode
client = AgentShareClient(mode="local")

# Agent A (Research) - Mints token for a massive state payload
state_payload = {"summary": "Deep-dive analysis...", "data": [1, 2, 3, 4, 5]}
token = client.mint_pathway_token(payload=state_payload, framework="python")
print(f"Token: agnt.sr/{token}") 

# Agent B (Writer) - Resolves only the keys it needs
resolved = client.resolve_pathway_token(token, keys=["summary"])
print(resolved['state'])

🛠️ Framework Integrations

LangChain Integration

from agentshare.integrations import AgentShareCallbackHandler

# 1-Line RunnableConfig integration
handler = AgentShareCallbackHandler(ttl_seconds=3600)
chain.invoke(input_data, config={"callbacks": [handler]})

Universal MCP Server (Claude Desktop & Cursor)

# Run stdio FastMCP server
python -m agentshare.integrations.mcp_server

🔒 Security & Inviolable Laws

  1. Law 1: The Server is Blind (Zero-Trust Transport): The backend server NEVER parses or inspects payload bytes. Uploads and downloads use direct S3/R2 presigned URLs.
  2. Law 2: The Token is the Truth: Pathway Tokens carry mandatory SHA-256 integrity checksums, TTL expiration window, scope rules, and cryptographic signatures.
  3. Law 3: Zero-Friction Adoption: Integrations defensively swallow callback exceptions to ensure 0% impact on production agent executions.

License

MIT © Deepak V & Agntshare Contributors

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

agntshare-0.1.0.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

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

agntshare-0.1.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file agntshare-0.1.0.tar.gz.

File metadata

  • Download URL: agntshare-0.1.0.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for agntshare-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3e55346ad357648a47a0d62db13c99ff0af53f30a8e30d0c6df223db4497427f
MD5 45b980ae1e9a7b712b6a254fce81aba0
BLAKE2b-256 83700c8946d5451297e3be0ab617991a175cad758418de701c86462318e1a56c

See more details on using hashes here.

File details

Details for the file agntshare-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: agntshare-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for agntshare-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6c1247b28898113422e30e006e0477adcd0337655b99cecb13d419bfcc7ab0be
MD5 d0ee0595260f55d29e039c3481f45dbf
BLAKE2b-256 34047205c850d2f8b3c2be5fef75748bb1ff87bf6befb0001014663b31a7352d

See more details on using hashes here.

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