Skip to main content

Kiokuko(記憶庫) for Hermes Agent

日本語版

Kiokuko(記憶庫) is a memory plugin for Hermes Agent. It separates memories by person, conversation, and workspace, and keeps model-generated proposals pending until a human approves them.

During compaction and at the end of a conversation, Kiokuko stores only facts that can be rechecked against project files or configuration. The database is stored at $HERMES_HOME/kiokuko/kiokuko.db.

Supported environments are Python 3.11–3.13 and Hermes 0.21.

Install

Install Kiokuko from PyPI into the same Python environment used by Hermes. This is the standard Hermes installation layout:

HERMES_PY="$HOME/.hermes/hermes-agent/venv/bin/python"
"$HERMES_PY" -m pip install --upgrade hermes-kiokuko

Initialize the profile:

HERMES_PY="$HOME/.hermes/hermes-agent/venv/bin/python"
export HERMES_HOME="$HOME/.hermes"
cd "$HOME/.hermes/hermes-agent" || exit 1
"$HERMES_PY" -m hermes_kiokuko setup
"$HERMES_PY" -m hermes_kiokuko doctor

When doctor reports ok: true, restart Hermes. Native MEMORY.md and USER.md are disabled, but existing files are preserved.

When the profile is wrong

If you see active profile is 'main' together with Falling back to .../.hermes, set the active profile explicitly and run setup again:

HERMES_PY="$HOME/.hermes/hermes-agent/venv/bin/python"
export HERMES_HOME="$HOME/.hermes/profiles/main"
cd "$HOME/.hermes/hermes-agent" || exit 1
"$HERMES_PY" -m hermes_kiokuko setup
"$HERMES_PY" -m hermes_kiokuko doctor

HERMES_HOME defines the profile boundary. Use the same value that Hermes uses to start the target profile; each profile has separate configuration, database, and sessions.

Update

Run these commands in the interactive Hermes CLI or a Gateway chat such as Discord or Telegram:

/kiokuko-update
/kiokuko-update status

The update runs in the background using Hermes's own Python interpreter, with the current profile explicitly passed as HERMES_HOME. It upgrades the PyPI package hermes-kiokuko (the repository is named kiokuko-ha). Profiles sharing that Python environment receive the same package update; profile settings and memory databases are left intact. Use /kiokuko-update retry after a failure. Gateway access follows Hermes command permissions.

For the first upgrade from v0.1.0, or to update from a terminal:

HERMES_PY="$HOME/.hermes/hermes-agent/venv/bin/python"
export HERMES_HOME="$HOME/.hermes/profiles/main" # Use your actual profile path
cd "$HOME/.hermes/hermes-agent" || exit 1
"$HERMES_PY" -m pip install --upgrade hermes-kiokuko
"$HERMES_PY" -m hermes_kiokuko doctor

Wait for the update to finish, then restart the Hermes process. For Telegram/Discord, restart the Hermes Gateway process serving those chats: a new chat session does not reload the installed plugin code. No OS reboot is needed. Python 3.14 is outside the current support range.

Explicit storage and approval

Send the entire message in this form to store the original text immediately. The body is limited to 600 characters.

@kiokuko remember --scope principal
Reply in Japanese.

Model proposals and natural-language requests such as “remember this” become pending candidates. Review and approve them from the CLI:

HERMES_PY="$HOME/.hermes/hermes-agent/venv/bin/python"
"$HERMES_PY" -m hermes_kiokuko pending
"$HERMES_PY" -m hermes_kiokuko approve CANDIDATE_ID

kioku-curation rechecks verified project memories and lets you share selected items as Global memories within the same profile.

From an interactive Hermes CLI session in the project directory (v0.1.1+):

/kioku-curation
/kioku-curation select 1 3
/kioku-curation share
/kioku-curation confirm CODE

Replace CODE with the confirmation code shown after share. Use cancel to exit without sharing. Global memories are shared with every user and project in the profile. Gateway chats (DM/group) cannot use this administrative flow; run it from the local CLI. The terminal command is also available:

HERMES_PY="$HOME/.hermes/hermes-agent/venv/bin/python"
"$HERMES_PY" -m hermes_kiokuko curation
# Or, when the venv bin directory is on PATH:
kioku-curation

See curation details, operational boundaries, and verification.

Optional API monitoring and experience memory

OrcaReplay records Hermes's OpenAI-compatible API requests and responses from the CLI and Gateway. With Node.js 22.12 or later installed, enable monitoring and check its status in the interactive Hermes CLI or a Gateway chat for the intended profile:

/kiokuko-monitor enable
/kiokuko-monitor status

Stop with /kiokuko-monitor disable.

Every completed turn schedules additional model extraction (up to four windows); useful experiences can be recalled automatically as unverified historical examples, separately from approved memory. Monitoring is initially disabled; traces are retained for at most seven days / 1 GiB per profile. See setup, model routing, boundaries and deletion. Optional derived lessons add evidence-based updates and conditional recall, with learning initially off. See learning controls and evaluation.

Optional task-profile memory

Local task-profile memory can recall explicit targets from completed CLI/DM requests without extra model calls. It defaults to off. Enable collection without displaying hints, then inspect its status:

python -m hermes_kiokuko task-profiles mode shadow
python -m hermes_kiokuko task-profiles status

Setup, modes, limits and deletion

Buffered research and diagnostics: /kiokuko-research <request> / /kiokuko-research status.

Metadata

Release files for hermes-kiokuko 0.1.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hermes-kiokuko 0.1.11
File Size Uploaded Provenance Actions
hermes_kiokuko-0.1.11.tar.gz 287.8 kB Without provenance Details for hermes_kiokuko-0.1.11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hermes-kiokuko 0.1.11
File Interpreter ABI Platform Actions
hermes_kiokuko-0.1.11-py3-none-any.whl Python 3 none any Details for hermes_kiokuko-0.1.11-py3-none-any.whl

Total release size: 535.7 kB

Release files / hermes_kiokuko-0.1.11.tar.gz

Download URL hermes_kiokuko-0.1.11.tar.gz
Size 287.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6dc9ac07ff781143c0ab0cb91e21a73e48578b65d3d9f8b46d258a541e4f345b
BLAKE2b-256 checksum
How to use checksums
68ba27a395db325d1063e3e049f7154a5fa6d1ec398988fc00f92050591805e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / hermes_kiokuko-0.1.11-py3-none-any.whl

Download URL hermes_kiokuko-0.1.11-py3-none-any.whl
Size 248.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1e213cef89af126ab2da7d79648d81de13c9d5d7b0dcbd2bb43400b0123d9906
BLAKE2b-256 checksum
How to use checksums
5b083ba0e02f34f7f4f318f7337c734c865fd5fe09e7aa40a55844efb7b7f258
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Security for hermes-kiokuko 0.1.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page