Skip to main content
Pre-release

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

cosmos-agent-sdk — Python client

RPC-first Python client for the Auggie v2 SDK / RPC protocol. It implements the shared spec under ../../spec and passes the shared ../../conformance fixtures, in lockstep with the TypeScript client.

Layers

  • Transport (cosmos_agent_sdk.transport) — JSONL framing, request/response correlation by id, protocol-version handshake, and message routing. Spawns auggie-v2 --mode rpc (SubprocessTransport); a FakeTransport replays canned wire messages through the same code paths for tests/conformance. Single session per process (multi-session = a client-side process pool).
  • Protocol (cosmos_agent_sdk.protocol) — typed command / response / event / extension-UI models mirroring the four JSON Schemas. Deep external structures are forwarded verbatim as permissive objects (see the spec's "Permissiveness policy").
  • Facade (cosmos_agent_sdk.client.AgentClient) — the ergonomic API: prompt, wait_for_idle (idle = the agent_end event), the full typed command surface, and bidirectional extension-UI round-trips (reply-expecting methods are answered; fire-and-forget methods are not).
from cosmos_agent_sdk import AgentClient, SubprocessTransport

transport = SubprocessTransport("auggie-v2")
transport.start()
with AgentClient(transport) as client:
    client.prompt("List the files in this repo")
    client.wait_for_idle()
    print(client.get_last_assistant_text()["data"]["text"])

Toolchain

  • uv for environment management and building.
  • ruff for lint / format.
  • mypy for type-checking.
  • pytest for the unit suite.

Commands

uv sync --extra dev          # create a venv and install dev dependencies
uv run ruff check .          # lint
uv run ruff format .         # format
uv run mypy cosmos_agent_sdk # type-check
uv run pytest                # unit tests
uv build                     # build the sdist + wheel

Conformance

The cross-client conformance runner is JavaScript. The Python client binds to it through a thin JS shim, conformance-adapter.mjs, that shells out to the real Python client (python -m cosmos_agent_sdk.conformance) driven over an in-memory fake transport replaying the fixture wire messages through the real parsing / correlation / extension-UI code paths (v0 does not spawn a real auggie-v2 binary).

# from clients/python/ — requires the conformance deps installed once:
( cd ../../conformance && npm install )
uv sync --extra dev
make conformance             # or: node conformance-adapter.mjs

Exits non-zero if any of the 40 shared vectors fails.

Metadata

Release files for cosmos-agent-sdk 0.0.1a0

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

Source distribution (sdist)

Source distribution for cosmos-agent-sdk 0.0.1a0
File Size Uploaded Provenance Actions
cosmos_agent_sdk-0.0.1a0.tar.gz 111.8 kB With provenance Details for cosmos_agent_sdk-0.0.1a0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cosmos-agent-sdk 0.0.1a0
File Interpreter ABI Platform Actions
cosmos_agent_sdk-0.0.1a0-py3-none-any.whl Python 3 none any Details for cosmos_agent_sdk-0.0.1a0-py3-none-any.whl

Total release size: 198.5 kB

Release files / cosmos_agent_sdk-0.0.1a0.tar.gz

Download URL cosmos_agent_sdk-0.0.1a0.tar.gz
Size 111.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7a7955a68021ec016b51b5b406eed77aed1c8f6d36d0b70575dc7b08d3c70ce7
BLAKE2b-256 checksum
How to use checksums
484623ebe87ef8f3c9974ebcf94d41fbacabeb50bdc8324791f7a36cd2ca0586
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 6, 2026.

Transparency log

Release files / cosmos_agent_sdk-0.0.1a0-py3-none-any.whl

Download URL cosmos_agent_sdk-0.0.1a0-py3-none-any.whl
Size 86.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9219bbfc330ac76ade4c3a70073da512affc46644d84bbeef65d6b327f034817
BLAKE2b-256 checksum
How to use checksums
ff0ea418109340ed50e05d52a1cf6a400c62c1f496e7f36c2d79f597e64ae53d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 6, 2026.

Transparency log

Security for cosmos-agent-sdk 0.0.1a0

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 cosmos_agent_sdk-0.0.1a0.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 Sep 6, 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.

Release history Release notifications | RSS feed

This release
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