trustgraph is a free, open source automation project written in Python and released under Apache-2.0. It has 2,728 GitHub stars, 320 forks and 18 open issues, and was last pushed 33 hours ago. On this registry it ranks #37 of 54 tracked projects in Automation, with 5 head-to-head comparisons available.

What is trustgraph?

TrustGraph is an open-source, Python-based context orchestration layer that turns raw enterprise data into a unified semantic context layer using hypergraphs, built for teams creating agentic AI applications that need deterministic outcomes and cryptographically verifiable agent behavior.

What it is

TrustGraph is an open-source context orchestration layer distributed under the Apache-2.0 licence and written in Python. It builds a unified semantic context layer by modelling enterprise data as hypergraphs, constructed using open standards such as RDF and OWL rather than relying on vector proximity. The project describes itself as providing a layer where agentic outcomes are deterministic and agent behaviour is not just traceable but cryptographically verifiable, and it lives in the agent and context-engineering ecosystem, where its topics include agent-harness, context-harness, context-graph, graph-engineering, and explainable-ai.

The concrete problem TrustGraph solves is the lack of "common context understanding" between agents, illustrated in the README with the Abbott and Costello "Who's on First?" routine, where a name like "Who" is mistaken for a pronoun. The specific thing it replaces is a standard RAG pipeline built on vector embeddings and semantic similarity, which the README argues breaks on this problem because embedding search maps "Who" to general inquiries about identity instead of retrieving the entity named Who. TrustGraph substitutes explicit, unambiguous semantics: a hypergraph with defined ontology classes and object properties, so the model knows that a term is an entity rather than a question.

Key capabilities

  • Models context as a HyperGraph built with standards such as RDF and OWL, defining explicit ontology classes like :Player and :BaseballPosition instead of relying on statistical word proximity.
  • Resolves entity-versus-pronoun ambiguity through typed relationships and labels, for example :Who a :Player with rdfs:label "Who" and :Who :playsPosition :FirstBase.
  • Supports deterministic agentic outcomes and cryptographically verifiable agent behavior, as stated in the project tagline and description.
  • Provides a self-host configuration interface at config-ui.demo.trustgraph.ai under the "Self-Host TrustGraph" entry point.
  • Ships as the PyPI package trustgraph, with a version badge linking to pypi.org/project/trustgraph/.
  • Runs an end-to-end test suite through the GitHub Actions workflow release.yaml, surfaced by the E2E Tests badge.
  • Organises work around topics including determinism, context-engineering, explainable-ai, and help-wanted, with community support over Discord.

Who uses it and how

  • Enterprise AI teams that need a shared semantic context layer across data silos, where governance and policy compliance matter, can self-host the layer rather than depend on fuzzy vector retrieval.
  • Developers building agent and agent-harness applications use the project to make agent behaviour traceable and cryptographically verifiable, per the stated outcomes.
  • Teams that model domain knowledge as graphs can express context in RDF and OWL, the formats the README demonstrates with the turtle example.
  • Operators can deploy through the self-host configuration UI linked from the README, and follow the HyperGraph Playground, Docs site, and YouTube channel for guidance.
  • Contributors are invited through the help-wanted topic and the project Discord server.

Getting started

Install the package from PyPI as trustgraph, or self-host it through the configuration interface at config-ui.demo.trustgraph.ai. The README links a Docs site, a YouTube channel, and a Discord server for setup guidance.

How it compares

No paid products are named in the facts provided, and no comparable context-orchestration tools are named either, so TrustGraph stands alone in this registry. Its README positions it against conventional vector-embedding and semantic-search RAG pipelines rather than against a named competitor, arguing that explicit RDF and OWL semantics succeed where semantic similarity fails.

When to use it — and when not to

TrustGraph is a fit for teams that need deterministic, auditable agent context and are willing to model their domain with RDF and OWL ontologies and a hypergraph. It is not a fit for those who want a lightweight drop-in vector search or who cannot commit to ontology and context engineering. The facts provided do not detail the operational dependencies a self-hoster must run, such as a database, object storage, or SMTP, and the README excerpt covers the problem statement far more than deployment specifics, so those details should be confirmed from the Docs site and the configuration interface before committing.

project readme (upstream, from github) — read inline

PyPI version License E2E Tests Discord Ask DeepWiki

HyperGraph Playground | Self-Host TrustGraph | Docs | YouTube | Discord | Website

The Context Orchestration Layer for Agentic AI

trustgraph-ai%2Ftrustgraph | Trendshift

Open Source · Open Standards · Total Transparency


TrustGraph is an open-source context orchestration layer designed to power the next generation of enterprise AI.

AI applications fail without shared context. LLMs are powerful, but without a structured, unified context layer — one that bridges silos, captures complex relationships, and enforces governance — agents hallucinate, violate policies, and produce non-deterministic outcomes.

TrustGraph builds that layer. It uses hypergraphs to turn raw enterprise data into AI-ready context: a unified semantic context layer where agentic outcomes are deterministic and agent behavior is not just traceable, but cryptographically verifiable.

The Problem: "Common Context Understanding"

To understand why AI struggles in the enterprise, consider Abbott and Costello’s classic "Who's on First?" routine.

Abbott explains the baseball lineup: Who is on first base, What is on second base, and I Don't Know is on third base. Costello is driven mad because he assumes Abbott is asking questions rather than stating the names of the players: Who, What, and I Don't Know.

Two agents cannot communicate if they do not share the same context understanding.

Why Vector Embeddings and Semantic Search Fail Here

If you feed this scenario into a standard RAG pipeline using vector embeddings and semantic similarity, it breaks completely.

If a user asks: "Who is playing on first base?"

  1. The vector database converts the query into an embedding.
  2. Semantic similarity searches for vectors close to "playing," "first base," and "who."
  3. Because "Who" is a common pronoun, the embedding space maps it to general inquiries about identity, not the specific name of a baseball player.
  4. The LLM retrieves irrelevant documents and hallucinates, failing to understand that "Who" is an entity (a Person), not a question.

Semantic similarity operates on fuzzy, statistical probability. It cannot distinguish between the linguistic usage of a word as a pronoun and its usage as a proper noun within a specific, localized context.

Why HyperGraphs Solve Context

A HyperGraph, specifically built using standards like RDF and OWL, establishes explicit, unambiguous semantics. It doesn't rely on "guessing" based on word proximity; it relies on defined relationships.

Here is the "Who's on First" routine modeled in RDF with an OWL ontology. By structuring data this way, the LLM knows exactly what "Who" means in this context:

@prefix : <http://trustgraph.ai/baseball#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .

# Ontology Classes
:Player a owl:Class ;
    rdfs:subClassOf owl:Thing .

:BaseballPosition a owl:Class .

# Object Properties
:playsPosition a owl:ObjectProperty ;
    rdfs:domain :Player ;
    rdfs:range :BaseballPosition .

# Data (The Context)
:Who a :Player ;
    rdfs:label "Who" .

:What a :Player ;
    rdfs:label "What" .

:IDontKnow a :Player ;
    rdfs:label "I Don't Know" .

:FirstBase a :BaseballPosition ;
    rdfs:label "First Base" .

:SecondBase a :BaseballPosition ;
    rdfs:label "Second Base" .

:ThirdBase a :BaseballPosition ;
    rdfs:label "Third Base" .

# The Explicit Relationships
:Who :playsPosition :FirstBase .
:What :playsPosition :SecondBase .
:IDontKnow :playsPosition :ThirdBase .

When an agent queries a TrustGraph hypergraph, it uses SPARQL or GraphRAG to traverse these explicit paths. The agent knows that :Who is a :Player whose :playsPosition is :FirstBase. Hallucination is eliminated because context is structured, not inferred via probability.

Going Beyond Traditional Graphs: The Hypergraph

Standard Knowledge Graphs (KGs) are limited to binary relationships (Node A → Node B). Enterprise context is rarely this simple.

TrustGraph leverages RDF 1.2 and Named Graphs as N-Quads to achieve a cutting-edge hypergraph architecture. RDF 1.2 introduces the ability to reference entire statements (triples) as nodes themselves. Combining RDF 1.2 with Named Graphs enbables grouping complex, multi-entity events into a single, addressable conceptual unit for true n-ary relationships.

  • Standard Knowledge Graph: DocumentAuthor
  • TrustGraph Hypergraph: Connects Document, Author, Approving Manager, Compliance Policy, and Time/Location Metadata into a single, complex relational event.
  • BYOO: TrustGraph allows you to Bring-Your-Own-Ontology which can be loaded in OWL format. The ontology-enabled hypergraph will use the provided ontology for semantic compliance for all ingested data, dramatically improving agentic accuracy and precision. Ontology-compliant retrieval is automated.

This hyper-relational context is what enables autonomous agents to reason through complex enterprise workflows and governance policies.

Core Capabilities of the Interoperability Layer

TrustGraph provides the infrastructure to convert raw data into agentic context and manage it at scale.

  1. Raw Data to AI-Ready Context TrustGraph isn't just a graph database; it is a processing engine. It ingests unstructured, raw enterprise data (PDFs, wikis, APIs, databases), extracts entities and relationships using LLMs, and structures them directly into the hypergraph—transforming chaotic data into AI-ready context.

  2. Hyperflows: Custom Agents and Workloads Hyperflows are unique agentic workflows where processing capabilities are chained together. Developers can configure specific LLMs and specific Context Graph access permissions for every step of a workflow. A Hyperflow can route a query from a lightweight local model for classification, to a heavy reasoning model, drawing from different hypergraph collections at each step based on governance rules.

  3. Context Management: Workspaces, Collections, and Context Cores Managing enterprise context requires strict orchestration. TrustGraph provides purpose-built context management features:

  • Workspaces: Deep, programmatic data isolation for users, agents, and hyperflows. Ensure that an HR agent cannot read financial data, and multi-tenant data remains strictly compartmentalized.
  • Collections: Enterprise knowledge bases aren't just flat files. Manage, partition, and query distinct knowledge bases directly within the hypergraph. Dynamically combine a "Product Specs" collection and a "Support Tickets" collection in real-time for an agent.
  • Context Cores: Modular, portable, and reusable units of context. Package domain-specific knowledge into a Context Core and plug it into any agent or workflow. It’s context-as-a-service.

Agentic Platform Features

Beyond the hypergraph and context management, TrustGraph is built to provide the full agentic stack for enterprise AI.

  • Provenance (Real-Time Traceability): TrustGraph captures all event metadata in the hypergraph, providing real-time traceability for every decision an agent makes. If an agent takes an action, you can trace the exact path through the hypergraph that led to that outcome—solving the "black box" problem for enterprise compliance.
  • Open LLM Inference Stack: Don't lock your enterprise data behind proprietary API paywalls. TrustGraph includes a built-in LLM inference stack capable of running open-source models on any hardware (Nvidia, AMD, or Intel accelerators), keeping your data and compute entirely within your sovereignty.
  • Deployment Flexibility: Enterprise requirements

readme truncated — read the full docs on github

Frequently asked questions

Is trustgraph free to use?

trustgraph is open source under the Apache-2.0 licence. There is no licence fee and no seat count — you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does trustgraph do?

The context orchestration layer powered by hypergraphs. Build a unified semantic context layer where agentic outcomes are deterministic and agent behavior is no

What is trustgraph written in?

trustgraph is primarily written in Python. Its source is publicly available at https://github.com/trustgraph-ai/trustgraph, and it has 2,728 GitHub stars.