Skip to main content

Open Semantic Agent (OSA)

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.2, 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

Spec changes go through a pull request against spec/SPEC.md that explains the motivation, the change and its effect on conformance. Changes that affect routing must add or update fixtures in conformance/fixtures/.

License

Apache-2.0.

Metadata

Release files for open-semantic-agent 0.2.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.2.1
File Size Uploaded Provenance Actions
open_semantic_agent-0.2.1.tar.gz 40.3 kB With provenance Details for open_semantic_agent-0.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 70.8 kB

Release files / open_semantic_agent-0.2.1.tar.gz

Download URL open_semantic_agent-0.2.1.tar.gz
Size 40.3 kB
Tags Source
SHA-256 checksum
How to use checksums
65e36d2b4091342504a6db53935fabac9f76b4b4c5bdefede820e288a9fdf5e7
BLAKE2b-256 checksum
How to use checksums
a1c691342fc19bba83c0e0e0fd5a1cb6e5b26198a2d0d18c388a39940218c8bd
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 21, 2026.

Transparency log

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

Download URL open_semantic_agent-0.2.1-py3-none-any.whl
Size 30.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f26d65896b761094dfd207f7f3164ecc60eb3a396febf16aa409131dca6e7b22
BLAKE2b-256 checksum
How to use checksums
f87b22ae8a52ac89d1a5b3a889f8473b5cde51a4908b7d599a36ee5d57c569ee
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 21, 2026.

Transparency log

Security for open-semantic-agent 0.2.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.2.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 21, 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