Skip to main content

Open Semantic Agent (OSA)

OpenSSF Best Practices DOI PyPI License opensemanticagent/opensemanticagent MCP server

An open spec for publish/subscribe that routes messages by what they mean.

Website: https://opensemanticagent.org · Spec: spec/SPEC.md

OSA sits on top of the message transport you already run (Kafka, NATS, Redis Streams, SQS) and works with whichever model you choose. Each message goes through three checks in order: a free topic match, a cheap similarity check, and an AI judge only when the first two are unsure, under token budgets. Every decision is audited and replayable.

Conventional broker Open Semantic Agent
String topics Semantic subscriptions: subscribe by meaning
Payload delivered as-is Schema mediation: each subscriber gets its own contract
Dedupe by message ID Semantic dedupe: 40 alerts about one incident become 1
Static priority Reasoned urgency, with a recorded rationale
Slow consumer → lag or drop Backlog summarization: a digest instead of a loss
Dead-letter queue Self-healing DLQ: diagnose, repair, retry or escalate
Replay the raw log Briefings: "catch me up on order 123 since Monday"
One reply Consensus fan-in: ask N agents, reconcile the answers
Per-topic ACLs Per-subscriber redaction by clearance
Opaque routing Every decision audited and replayable

Use it from an AI assistant

The spec ships as a small MCP server, so any MCP client (Claude, Cursor, VS Code and others) can read it and check documents against it:

uvx open-semantic-agent          # or: pip install open-semantic-agent

Tools, all read-only: osa_list_sections, osa_get_section, osa_search_spec, osa_get_schema, osa_validate (envelope, subscription manifest, audit record, stream message), osa_list_fixtures, osa_get_fixture. It is listed in the MCP Registry as io.github.opensemanticagent/opensemanticagent.

What's here

Path What it is
spec/SPEC.md The specification (0.4, draft)
schemas/ JSON Schemas for the envelope, subscription manifest, audit record and stream messages. Each $id resolves on the website.
conformance/fixtures/ Routing test vectors that implementations run against
osa/, tests/ The MCP server and its tests. The package bundles the spec, schemas and fixtures.
tools/build_site.py, docs/ The website. pip install markdown && python3 tools/build_site.py rebuilds docs/, which GitHub Pages serves.

Implementations

Building one? Open an issue and we'll list it here.

Contributing

See CONTRIBUTING.md. Spec changes go through a pull request against spec/SPEC.md; changes that affect routing add or update fixtures in conformance/fixtures/. Questions and ideas go to Discussions. Security issues: see SECURITY.md.

If you cite the spec, use CITATION.cff or DOI 10.5281/zenodo.24417032 (all versions).

License

Apache-2.0.

Metadata

Release files for open-semantic-agent 0.5.1

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

Source distribution (sdist)

Source distribution for open-semantic-agent 0.5.1
File Size Uploaded Provenance Actions
open_semantic_agent-0.5.1.tar.gz 74.8 kB With provenance Details for open_semantic_agent-0.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for open-semantic-agent 0.5.1
File Interpreter ABI Platform Actions
open_semantic_agent-0.5.1-py3-none-any.whl Python 3 none any Details for open_semantic_agent-0.5.1-py3-none-any.whl

Total release size: 128.3 kB

Release files / open_semantic_agent-0.5.1.tar.gz

Download URL open_semantic_agent-0.5.1.tar.gz
Size 74.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e8ad42226574d0260ba0870aa3b53ed3f2f13dfa0a4ce17f837ff8b743ea8601
BLAKE2b-256 checksum
How to use checksums
ba01917c52d0b93645b4f4710591fccb8aaceed7543c56e4d51780525f75b0d6
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 28, 2026.

Transparency log

Release files / open_semantic_agent-0.5.1-py3-none-any.whl

Download URL open_semantic_agent-0.5.1-py3-none-any.whl
Size 53.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6092608245245978b5f9081ae634198d9d2546d7ce9777cf434e73ad19863deb
BLAKE2b-256 checksum
How to use checksums
8419b67f8d06b8eb1d5dddfd571ea7b82023fd26f975bea3da9c8cb6876cd2f8
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 28, 2026.

Transparency log

Security for open-semantic-agent 0.5.1

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for open_semantic_agent-0.5.1.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 28, 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