Skip to main content

Next-generation memory provider for Hermes Agent — fusing OpenViking vector storage with MemOS cognitive engine

Project description

Hermes Next

Next-generation memory provider for Hermes Agent.

Hermes Next fuses OpenViking vector storage with a Python-native MemOS cognitive engine, giving Hermes Agent agents persistent,结构化记忆能力。

Features

  • OpenViking Backend — Long-term vector storage, semantic retrieval, session management
  • MemOS Cognitive Pipeline — L1 Trace capture → reward backpropagation → L2 Policy induction → L3 World Model → Skill crystallization
  • Python Native — Zero bridging overhead, runs in-process
  • Local SQLite Cache — FTS5 full-text search + numpy-based cosine similarity, zero dependencies beyond stdlib
  • Fusion Retrieval — 6-step pipeline combining semantic search, full-text search, policy matching, timeline, recency boost, and MMR diversification

Installation

pip install hermes-next

Requires Python 3.10+ and a running OpenViking server (v0.3.22+).

Configuration

Create a hermes-next.yaml in your config directory:

openviking:
  base_url: "http://localhost:1933"
  api_key: null

cache:
  path: "~/.hermes-next/cache.db"
  enable_fts: true

agent:
  name: "default"

Or set environment variables:

export HERMES_NEXT_OV_URL="http://localhost:1933"
export HERMES_NEXT_CACHE_PATH="~/.hermes-next/cache.db"

Usage with Hermes Agent

from hermes_next import HermesNextProvider

provider = HermesNextProvider()
provider.initialize(session_id="my-session")

# The provider handles prefetching, storage, and retrieval automatically
context = provider.prefetch("What did we discuss about RAG?")
print(context)

Or via CLI:

hermes agent --memory-provider hermes-next

Tools

The provider exposes these tools to the agent:

Tool Description
memos_search(query, k) Semantic search across traces
memos_get(trace_id) Read a specific trace
memos_timeline(limit) Recent activity timeline

Project Structure

hermes-next/
├── hermes_next/
│   ├── ov/            # OpenViking REST client
│   ├── memos/         # MemOS cognitive engine
│   ├── cache/         # SQLite local cache
│   └── retrieval/     # Fusion retrieval pipeline
├── tests/
└── plugin.yaml        # Hermes plugin manifest

License

AGPL-3.0 — This project is a derivative of OpenViking (AGPL-3.0).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hermes_next-0.3.2.tar.gz (62.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hermes_next-0.3.2-py3-none-any.whl (69.6 kB view details)

Uploaded Python 3

File details

Details for the file hermes_next-0.3.2.tar.gz.

File metadata

  • Download URL: hermes_next-0.3.2.tar.gz
  • Upload date:
  • Size: 62.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hermes_next-0.3.2.tar.gz
Algorithm Hash digest
SHA256 018771523b85b5f4259ca1c5de491c5044258ac237a44bbfb2fd44e9ed163287
MD5 41ca4de1824efaad3d182a38007ead41
BLAKE2b-256 3508436457d75f1d6a3c52a8bdb1103d3571de37a8003187518c537d18972bf1

See more details on using hashes here.

File details

Details for the file hermes_next-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: hermes_next-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 69.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hermes_next-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 afe859e6fd1d1150b280d324dccbfb740d23084c8ebb35432335008e2188c295
MD5 0dc277c654d2b5f5ee85eb373350b44e
BLAKE2b-256 21299aed41b17c9b0f19aa183e66f8b7fd6edc5a3a84a9a3375186ef7cee836e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page