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.2.0.tar.gz (43.6 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.2.0-py3-none-any.whl (56.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hermes_next-0.2.0.tar.gz
  • Upload date:
  • Size: 43.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for hermes_next-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7524251e532c6a9746743215616c2c221ef699cd9dad54c0e10da8ede2a793c5
MD5 63262735456df856a58824bd40d80c29
BLAKE2b-256 b141ab48705b5163ae0247b3c1be6159c26d6be59d26cefb920139d2e25d465c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hermes_next-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 56.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for hermes_next-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 980882b12b92ca2bc9b37662a3e2b564bfd74c5a836b2a230d98fd0e580b6bc0
MD5 f997128d0084e9ed761ea0a2d34997ab
BLAKE2b-256 cd542f7ba97aef3eed946c32808a6b62eac19c7632e6e1a8ccaa01838590982b

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