StateJar docs

Hermes Agent

StateJar as Hermes Agent's memory provider (memory.provider statejar). It recalls the memory each message needs and captures your messages with secrets removed, and it adds four tools and a statejar command.

What it does

Scheduled (cron), subagent and flush runs read memory but never write to it. The provider is open source (MIT) in statejar-integrations.

Install

You need Hermes Agent 0.19 or later. The provider uses Python's standard library only.

hermes plugins install KING-OF-FLAME/statejar-integrations/hermes/statejar --enable
hermes memory setup          # choose statejar and paste your key

Set it up

Make a developer key on the API keys page. hermes memory setup stores it as STATEJAR_API_KEY in your profile's .env, and sets the provider in config.yaml:

memory:
  provider: statejar

Other options go in statejar.json in your Hermes home (~/.hermes unless you use profiles):

KeyDefaultWhat it does
scopehermesThe scope in your account the provider reads and writes. A new scope builds on your newest memory.
auto_capturetrueQueue your messages and send them in batches.
recall_each_prompttrueRecall what each message needs, as one audited query per message.
api_urlhttps://api.statejar.com/api/v1The REST API the provider calls.

If no key is set, the provider uses the one that statejar login (the statejar package on PyPI) keeps.

Check it works

  1. hermes memory status lists statejar ← active.
  2. hermes statejar status shows the scope, what is queued, and the last batch's status (202 when accepted).
  3. In a chat, say "I'm Kavya, I live in Bengaluru and my laptop budget is 80000 rupees." Then end the chat.
  4. In a new chat, ask "what is my laptop budget?". The answer uses the budget, and hermes statejar search what is my budget prints the memory with its handle.

What it sends

Troubleshooting

This page as Markdown: /docs/hermes.md