MeshOS - A lightweight multi-agent memory system with semantic search
Project description
MeshOS
The Memory & Knowledge Engine for Multi-Agent Systems
MeshOS is a developer-first framework for building multi-agent AI-driven operations with structured memory, knowledge retrieval, and real-time collaboration. Unlike generic memory stores, MeshOS is purpose-built for:
- Autonomous Agents & Teams – Agents and humans evolve a shared memory over time.
- Graph-Based Memory – Track relationships, dependencies, and evolving knowledge.
- Fast Semantic Search – Vector-based retrieval with pgvector.
- Event-Driven Execution – Automate workflows based on evolving context.
- Versioned Knowledge – Track updates, past decisions, and historical context.
- Open & Portable – Runs on PostgreSQL + Hasura with no vendor lock-in.
Why MeshOS?
Most frameworks give you a blob of memories—MeshOS gives you structured, evolving intelligence with deep relationships and versioning.
| Feature | MeshOS | Mem0 / Letta / Zep |
|---|---|---|
| Multi-Agent Memory | ✅ Yes | ❌ No |
| Structured Taxonomy | ✅ Yes | ❌ No |
| Versioned Knowledge | ✅ Yes | ❌ No |
| Graph-Based Relationships | ✅ Yes | ❌ No |
| Semantic & Vector Search | ✅ Yes | ✅ Partial |
| Event-Driven Execution | ✅ Yes | ❌ No |
| Open-Source & Portable | ✅ Yes | ✅ Partial |
Who is MeshOS for?
✅ Builders of AI-powered operations – Structured memory and decision-making for AI-driven systems.
✅ Multi-agent system developers – AI agents that need to store, process, and evolve shared knowledge.
✅ Developers & engineers – Wanting an open-source, PostgreSQL-powered framework with no lock-in.
flowchart LR
%% Main System
subgraph MeshOS[MeshOS System]
direction LR
%% Taxonomy Details
subgraph Taxonomy[Memory Classification]
direction TB
subgraph DataTypes[Data Types]
direction LR
knowledge[Knowledge Type]
activity[Activity Type]
decision[Decision Type]
media[Media Type]
end
subgraph Subtypes[Example Subtypes]
direction LR
k_types[Research/Mission/Vision]
a_types[Conversations/Logs/Events]
d_types[Policies/Strategies]
m_types[Documents/Images]
knowledge --> k_types
activity --> a_types
decision --> d_types
media --> m_types
end
subgraph Relations[Edge Types]
direction LR
basic[related_to/version_of]
semantic[influences/depends_on]
temporal[follows_up/precedes]
end
end
%% Memory Operations
subgraph MemoryEngine[Memory Operations]
direction LR
rememberAction[Store/Remember]
recallAction[Search/Recall]
linkAction[Link Memories]
versioning[Version Control]
rememberAction --> recallAction
recallAction --> linkAction
linkAction --> versioning
end
end
%% Organization & Agents
subgraph Organization[Organization & Agents]
direction TB
%% Company Memory
subgraph CompanyMemory[Company-Wide Memory]
direction LR
corpVision[Company Vision]
corpMission[Company Mission]
corpData[Knowledge Base]
end
%% Agents
subgraph Agent1[Research Agent]
a1Mem[Research Memories]
end
subgraph Agent2[Service Agent]
a2Mem[Service Memories]
end
end
%% System Connections
Taxonomy --> MemoryEngine
MemoryEngine --> Organization
%% Memory Connections
corpVision -.->|influences| a1Mem
corpMission -.->|guides| a2Mem
a1Mem -.->|shares| a2Mem
a2Mem -.->|feedback| corpData
a1Mem -.->|versions| corpData
%% Styling
classDef system fill:#dfeff9,stroke:#333,stroke-width:1.5px
classDef engine fill:#fcf8e3,stroke:#333
classDef taxonomy fill:#e7f5e9,stroke:#333
classDef types fill:#f8f4ff,stroke:#333
classDef org fill:#f4f4f4,stroke:#333
class MeshOS system
class MemoryEngine engine
class Taxonomy,DataTypes,Subtypes,Relations taxonomy
class Organization org
Getting Started
Install & Create a New Instance
pip install mesh-os
mesh-os create my-project && cd my-project
mesh-os up
Usage
from mesh_os import MeshOS
# Initialize MeshOS
os = MeshOS()
# Register an agent
agent = os.register_agent(name="AI_Explorer")
# Store structured knowledge
memory = os.remember(
content="The Moon has water ice.",
agent_id=agent.id,
metadata={
"type": "knowledge",
"subtype": "fact",
"tags": ["astronomy", "moon"],
"version": 1
}
)
# Retrieve similar knowledge
results = os.recall(query="Tell me about the Moon.")
🏗️ Core Features
✅ Memory for Multi-Agent Systems – Let agents store, retrieve, and link structured knowledge.
✅ Fast Semantic Search – pgvector-powered similarity matching across all memories.
✅ Graph-Based Knowledge – Build evolving relationships between facts, ideas, and actions.
✅ Versioning Built-In – Track updates, past decisions, and context shifts.
✅ Event-Driven Execution – Automate workflows based on new knowledge.
✅ Open & Portable – Runs anywhere PostgreSQL does. No black-box infrastructure.
🔗 Structured Taxonomy & Memory Graph
MeshOS enforces structured knowledge with memory classification and versioning:
| Memory Type | Examples |
|---|---|
| Knowledge | Research reports, datasets, concepts |
| Activity | Agent workflows, logs, system events |
| Decision | Policy updates, business strategy |
| Media | Documents, images, AI-generated content |
Memories evolve over time, with full versioning and relationship tracking.
🛠️ Development & Configuration
Configuration
# Required
OPENAI_API_KEY=your_api_key_here
# Optional (defaults shown)
POSTGRES_PASSWORD=mysecretpassword
HASURA_ADMIN_SECRET=meshos
POSTGRES_PORT=5432
HASURA_PORT=8080
HASURA_ENABLE_CONSOLE=true
Development
git clone https://github.com/yourusername/mesh-os.git
cd mesh-os
poetry install
poetry run pytest
Contributing
Contributions are welcome! Please submit a Pull Request.
⚖️ License
This project is licensed under the Apache 2.0 License – see LICENSE for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mesh_os-0.1.3.tar.gz.
File metadata
- Download URL: mesh_os-0.1.3.tar.gz
- Upload date:
- Size: 27.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d45e94fa2579163e9b6924a1bb43380e7a3e4ddb3f3199a3b34f832a9f81a58
|
|
| MD5 |
b1823a707fa2789633539e86a3b19aa0
|
|
| BLAKE2b-256 |
634f8ccb660790000af597cf6fb5cb6cc2ff3a35f2f45f4c4f4253f894275972
|
Provenance
The following attestation bundles were made for mesh_os-0.1.3.tar.gz:
Publisher:
python-publish.yml on Props-Labs/mesh-os
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mesh_os-0.1.3.tar.gz -
Subject digest:
1d45e94fa2579163e9b6924a1bb43380e7a3e4ddb3f3199a3b34f832a9f81a58 - Sigstore transparency entry: 168150787
- Sigstore integration time:
-
Permalink:
Props-Labs/mesh-os@1804b9f66b07d5108ca1545d94b9ff3855018319 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/Props-Labs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@1804b9f66b07d5108ca1545d94b9ff3855018319 -
Trigger Event:
release
-
Statement type:
File details
Details for the file mesh_os-0.1.3-py3-none-any.whl.
File metadata
- Download URL: mesh_os-0.1.3-py3-none-any.whl
- Upload date:
- Size: 33.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03fd759f33c546dbceedfc86577e6dc341b569ec171274148bba2bc106aa6bf7
|
|
| MD5 |
1f94f1dbfe40f40885bbaa69e9a91914
|
|
| BLAKE2b-256 |
e2eeb49adef7f2f322fb31bec60d50ef9a04dd69dbce0bbeca79c18e469e7744
|
Provenance
The following attestation bundles were made for mesh_os-0.1.3-py3-none-any.whl:
Publisher:
python-publish.yml on Props-Labs/mesh-os
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mesh_os-0.1.3-py3-none-any.whl -
Subject digest:
03fd759f33c546dbceedfc86577e6dc341b569ec171274148bba2bc106aa6bf7 - Sigstore transparency entry: 168150788
- Sigstore integration time:
-
Permalink:
Props-Labs/mesh-os@1804b9f66b07d5108ca1545d94b9ff3855018319 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/Props-Labs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@1804b9f66b07d5108ca1545d94b9ff3855018319 -
Trigger Event:
release
-
Statement type: