All plugins

skmemory

skmemory as a Hermes memory provider, with skmemory kept outside Hermes: the plugin runs the skmemory-mcp stdio server (from the skmemory package on PyPI, installed as its own tool at the tested version with uv tool install skmemory==0.11.173, never into Hermes's venv) as a child process and calls it over MCP. Default is a private store in HERMES_HOME on skmemory's local tier (flat JSON files plus SQLite/FTS5, offline, no Postgres or embedding server); linked mode serves an existing skcapstone agent with that node's tiers. Recall is reader-scoped per turn, non-owner turns never write, and sensitive memories are never auto-injected. Disclosure — starts one long-running skmemory-mcp child process per Hermes profile with your user privileges and an allowlisted environment (PATH, HOME, locale, TZ, TMPDIR plus the SK variables it sets; no provider keys); every completed owner turn is stored as a short-term memory, and on a messaging gateway turns only recall and never write; the server's error output is logged to $HERMES_HOME/logs; no network calls by the plugin itself, and none by the server in isolated mode; in linked mode the server may use the node's Postgres DSN, read from the Hermes secret SKMEMORY_PG_DSN. No telemetry.

smilinTuxMemoryv0.2.2Updated 3 days ago

About

skmemory as a Hermes memory provider, with skmemory kept outside Hermes: the plugin runs the skmemory-mcp stdio server (from the skmemory package on PyPI, installed as its own tool at the tested version with uv tool install skmemory==0.11.173, never into Hermes's venv) as a child process and calls it over MCP. Default is a private store in HERMES_HOME on skmemory's local tier (flat JSON files plus SQLite/FTS5, offline, no Postgres or embedding server); linked mode serves an existing skcapstone agent with that node's tiers. Recall is reader-scoped per turn, non-owner turns never write, and sensitive memories are never auto-injected. Disclosure — starts one long-running skmemory-mcp child process per Hermes profile with your user privileges and an allowlisted environment (PATH, HOME, locale, TZ, TMPDIR plus the SK variables it sets; no provider keys); every completed owner turn is stored as a short-term memory, and on a messaging gateway turns only recall and never write; the server's error output is logged to $HERMES_HOME/logs; no network calls by the plugin itself, and none by the server in isolated mode; in linked mode the server may use the node's Postgres DSN, read from the Hermes secret SKMEMORY_PG_DSN. No telemetry.

hermes-skmemory

skmemory as a
Hermes Agent memory provider, with skmemory
kept outside Hermes.
Maturity tier: T0, N/A (no key material).

The plugin starts the skmemory-mcp stdio server as a child process and talks to it over
MCP. It never imports skmemory, binds no port and has no CLI. Not a crypto component; in
linked mode it can pass a Postgres DSN (which contains a password) through to the child.
License: GPL-3.0-or-later. Operational contract: SOP.md.

The default needs no infrastructure: a private store inside $HERMES_HOME on skmemory's
local tier (flat JSON files plus SQLite/FTS5), offline, no Postgres, no embedding server.
Linked mode serves an existing skcapstone agent with whatever tiers that node has.

Where this fits: the SK estate itself runs the "enterprise" edition, where skmemory is its
own service that agents reach over MCP or the CLI. This plugin is the "inside Hermes" path,
used by the per-user sksidekick edition and by anyone installing from the Hermes plugin
catalog.

Two things that will confuse you first

1. hermes plugins list reports this plugin as not enabled even while it is loaded
and serving every turn.
That is expected. kind: exclusive plugins are skipped by the
general plugin scanner and loaded by the memory subsystem instead. The lever that
actually activates it is memory.provider: skmemory in $HERMES_HOME/config.yaml,
not plugins.enabled. See SOP.md section 2.

2. The repo is hermes-skmemory; the thing Hermes loads is skmemory. The manifest
name and the installed directory are both skmemory, and that is the name
memory.provider refers to. It is also the name of the separate skmemory package the
plugin runs as a child, which is a different thing.

Install

skmemory is installed outside Hermes's venv, as its own tool, so skmemory-mcp ends up
on PATH. The plugin declares no pip_dependencies on purpose.

uv tool install skmemory==0.11.173   # tested version; or pipx install skmemory==0.11.173
hermes plugins install https://github.com/smilinTux/hermes-skmemory
# lands at $HERMES_HOME/plugins/skmemory (directory name = manifest name)
hermes memory setup                 # pick "skmemory", answer the config prompts
# or set memory.provider: skmemory in $HERMES_HOME/config.yaml by hand

Then restart Hermes (the gateway service, or a new CLI session). Requires Hermes
>=0.21.6 (requires_hermes in plugin.yaml).

Pin skmemory. The server sees every turn, so install the version this plugin is tested
with (TESTED_SKMEMORY, currently 0.11.173). On start the plugin reads the server's
serverInfo and logs a warning when it is not skmemory >=0.11.173,<0.12. Older skmemory
releases report the MCP library's version there (for example 1.30.0), so they warn too.

The server is looked up in this order: config mcp_command, env SKMEMORY_MCP_BIN, PATH,
then ~/.local/bin/skmemory-mcp and ~/.skenv/bin/skmemory-mcp.

Confirm it came up

Look for this line in the Hermes log (for the gateway, journalctl --user -u hermes-gateway):

skmemory: ready (mode=isolated, agent=hermes, read_only=False, server=/path/to/skmemory-mcp)

It is the only positive confirmation. If skmemory-mcp cannot be found, initialize()
logs skmemory: skmemory-mcp not found. ... as a warning and Hermes runs on with no memory,
so silence means broken, not fine. The child itself starts lazily on the first memory call.

If the child fails later (a crash on start, a timeout), the first failure of each kind is
logged as a WARNING (skmemory turn write failed: ...), and the child's own stderr is in
$HERMES_HOME/logs/skmemory-mcp-<agent>.log. Read that file first.

Two modes

The child's environment is an allowlist. skmemory-mcp inherits only PATH, HOME,
USER, LOGNAME, LANG, LANGUAGE, LC_*, TZ, TMPDIR/TMP/TEMP and a few Windows
basics, plus the SK variables the plugin sets itself. Provider API keys, tokens and any
inherited SKMEMORY_*/SKCAPSTONE_*/SKAGENT* selector never reach it.

Isolated (default). A private store at $HERMES_HOME/.skmemory/agents/<agent>/. The
child gets an explicit SKMEMORY_HOME for that store and no DSN, so a Hermes running on an
skcapstone node can never open someone else's store. Local tier
only: flat JSON plus SQLite/FTS5, offline. The store lives inside $HERMES_HOME, so
hermes backup already covers it. (The leading dot is deliberate: $HERMES_HOME can be on
sys.path, and a directory named skmemory there would shadow the package for anything
that does import it.)

Linked. Set skcapstone_home and agent to serve an existing skcapstone agent, with
the tiers that node has (pgvector, BM25, graph). The Postgres DSN is a Hermes secret:
set SKMEMORY_PG_DSN in the profile's .env (declared in plugin.yaml with password: true). The plugin reads it with agent.secret_scope.get_secret and passes it to the child
in linked mode only. The plugin
creates nothing in the target store; it warns if the agent directory is missing.

{ "skcapstone_home": "~/.skcapstone", "agent": "myagent", "read_only": true }

Pair linked mode with read_only: true unless you mean it. Without it, the model can
write into that store with skmemory_store, and every completed owner turn is written
into it automatically. SECURITY.md explains what that exposes,
including memory as a persistent prompt-injection surface.

Config: $HERMES_HOME/skmemory.json (all keys optional)

KeyEnv fallbackDefaultMeaning
agentnonehermesstore name (isolated) or agent name (linked)
skcapstone_homeSKMEMORY_LINK_HOME""non-empty selects linked mode
read_onlySKMEMORY_READ_ONLYfalserecall only: no store tool, no per-turn writes
mcp_commandSKMEMORY_MCP_BINfound on PATHpath to skmemory-mcp
assume_ownerSKMEMORY_ASSUME_OWNERfalsesingle-user install on stock Hermes: every turn is the owner's
timeoutnone20seconds per MCP call

File values win over env values; an empty string or null in the file is ignored.
hermes memory setup writes agent, skcapstone_home, read_only and assume_owner
through the provider's get_config_schema/save_config. There is no DSN in this file:
since 0.2.1 a dsn key is ignored with a warning (use the SKMEMORY_PG_DSN secret).

Removed in 0.2.0: vector_backend, embed_url, embed_model and the env vars
SKMEMORY_VECTOR_BACKEND, SKMEMORY_DSN, SKMEMORY_EMBED_*. Search tiers are now
whatever the skmemory server has; the plugin does not configure them.

Tools exposed to the model

  • skmemory_search(query, limit): recall facts, preferences, context (server tool
    memory_search, limit capped at 20).
  • skmemory_store(content, title?, tags?): persist something durable (server tool
    memory_store). Withheld entirely when read_only is true.

Recall before each turn. Keywords are extracted from the user message and sent to the
server's memory_auto_context; the results are injected as "Relevant memories".
queue_prefetch runs this in the background so the next turn does not wait.

Sessions write to memory. Each completed primary-context owner turn is stored as a
short-term memory tagged hermes and session:<id>, with source: hermes. Cron and
subagent contexts never write.

Owner and reader rules

A turn is an owner turn only when Hermes says so. Upstream Hermes has no public per-turn
scope for plugins yet; it is proposed in
hermes-agent#160124. Until
then:

  • Stock Hermes (the gateway fallback): the local CLI is the owner, and every turn in a
    messaging gateway counts as @public. Gateway turns recall only what skmemory serves to
    @public and never write, so on a stock gateway the store grows only from CLI turns.
    Set assume_owner: true only for a single-user install where every gateway user is you.
  • Hermes builds that carry a tools.session_scope module (not in upstream; the SK estate's
    fork) supply the per-turn reader instead, so owner DMs write and strangers do not.
  • Any error resolving the scope fails closed to @public.

Non-owner turns search under their reader (passed to the server as reader) and never
write, neither per-turn nor through skmemory_store. In owner turns the server drops
sensitive-tagged rows from auto-injected context, which covers sacred and owner-only
memories; per the server they remain reachable by an explicit skmemory_search.

Status

v0.2.2, tested, not currently deployed on the SK estate. tests/ holds 32 provider
tests against a fake MCP server and one end-to-end test against a real skmemory-mcp
(skipped when it is not installed). CI runs compileall, ruff, an AST contract check, a
manifest check and pytest. Incubating: expect breaking changes.

Docs

SOP.md · SECURITY.md · CONTRIBUTING.md ·
CHANGELOG.md · CODE_OF_CONDUCT.md

Related projects / See also

  • Depends on: skmemory, the memory system and
    the skmemory-mcp server this plugin runs as a child.
  • Depends on: Hermes Agent, whose
    MemoryProvider interface this implements.
  • Sibling: skcapstone, the agent framework
    whose agent homes linked mode serves.
  • Standards: sk-standards, the doc/SOP and
    version standards this repo follows.

README from the reviewed commit 39c9212; it updates when the author re-pins.

More by smilinTux

2 plugins by smilinTux in the catalog.

smilinTuxnextcloud-talk-platformNextcloud Talk platform adapter for Hermes Agent, in two modes behind one plugin: a webhook bot (Nextcloud Talk Bot API, HMAC-SHA256 signed, with an explicit body-size cap and a nonce-replay cache ahead of payload parsing) and a real Nextcloud user account (app password, long-polling the Chat REST API, with federation-invite support, per-room mention/watch/free modes, and an agent-to-agent loop guard plus active-listening context for multi-agent rooms). Mode is picked automatically by which credential is configured. No extra SDKs -- aiohttp for bot mode, httpx for user mode, both already Hermes dependencies. Disclosure — Connects to your Nextcloud server either as a Talk bot (HMAC-verified webhook listener, 127.0.0.1:18797 by default) or as a real Nextcloud user with an app password (long-polls the Chat API and auto-accepts federation invites only from NEXTCLOUD_TALK_ALLOWED_INVITERS); in user mode, unanswered room messages from allowed senders (up to 40 per room by default) and, for rooms listed in NEXTCLOUD_TALK_ROOM_MODES or with room_rules_all_rooms on, the room description are added to the agent's next turn in that room. Since 1.5: optional Talk tools (threads, polls, scheduled messages, a raw nextcloud_ocs_call for the agent's own account, room history/threads/files reads, a per-room shared-folder workspace whose guest writes wait for an owner approval, and opt-in call_join/call_leave/call_status that start and stop a local skcall-join@<room> systemd --user unit). An optional per-agent access file (~/.skcapstone/agents/<agent>/config/talk-access.yaml or NEXTCLOUD_TALK_ACCESS_FILE) is read for allowlists; open polls are kept under $HERMES_HOME/nctalk.Communityplatform

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section