All plugins

offline-zim

Lets the agent search and read ZIM files on this machine without internet access: the open archive format behind Kiwix's offline Wikipedia, Wiktionary, Stack Exchange, Project Gutenberg and other libraries. zim_list_books lists the ZIM files configured under plugins.entries.offline-zim.settings.paths, zim_search uses each archive's full-text index (or its titles when it has none), and zim_read returns an article as plain text in parts, with redirects followed and in-book links listed. Not affiliated with Kiwix or openZIM; reads archives with python-libzim. Disclosure — reads only the ZIM files and folders you configure (folders are listed to find *.zim), makes no network calls, writes nothing, needs no credentials and runs no commands. Article text is returned to the model as the archive's maker wrote it, with scripts and styles stripped. The libzim dependency is GPL-3.0-or-later.

nftpoetristToolsv0.1.0Updated 8 days ago

About

Lets the agent search and read ZIM files on this machine without internet access: the open archive format behind Kiwix's offline Wikipedia, Wiktionary, Stack Exchange, Project Gutenberg and other libraries. zim_list_books lists the ZIM files configured under plugins.entries.offline-zim.settings.paths, zim_search uses each archive's full-text index (or its titles when it has none), and zim_read returns an article as plain text in parts, with redirects followed and in-book links listed. Not affiliated with Kiwix or openZIM; reads archives with python-libzim. Disclosure — reads only the ZIM files and folders you configure (folders are listed to find *.zim), makes no network calls, writes nothing, needs no credentials and runs no commands. Article text is returned to the model as the archive's maker wrote it, with scripts and styles stripped. The libzim dependency is GPL-3.0-or-later.

hermes-offline-zim

A Hermes Agent plugin that lets the agent search
and read ZIM files on your own machine, without internet access. ZIM is the open archive format
behind the offline libraries Kiwix publishes: full Wikipedia in many
languages, Wiktionary, Wikivoyage, Stack Exchange sites, Project Gutenberg, documentation sets and
more.

Useful when the agent runs somewhere with no or poor connectivity, when you want answers grounded in
a fixed, known copy of a reference work, or when you would rather not send every lookup to a web
search provider.

This plugin is not affiliated with Kiwix or openZIM. It reads ZIM files with the
python-libzim bindings.

Tools

ToolWhat it does
zim_list_booksLists the configured ZIM files: book id, title, description, language, date, article count, whether it has a full-text index, and its main page.
zim_searchSearches one book or all of them. Uses a book's full-text index when it has one (results carry a plain-text snippet) and falls back to matching article titles when it does not.
zim_readReads one article as plain text, with headings marked # and list items -. Redirects are followed and an exact title works in place of a path. Long articles come back in parts (next_offset). The first part also lists the article's links to other articles in the same book.

The tools are offered to the model only while at least one path is configured and libzim is
installed.

Install

hermes plugins install offline-zim --enable

The plugin depends on libzim (declared in pyproject.toml). Hermes asks before installing it.
libzim ships prebuilt wheels for Linux (glibc and musl), macOS and Windows.

Get some ZIM files

Download them from the Kiwix library or
download.kiwix.org. Files range from a few megabytes (for example
wikipedia_en_climate-change_mini) to around 100 GB (all of English Wikipedia with images). The
nopic and mini variants are much smaller and read the same way, since this plugin returns text
only.

Configure

plugins:
  entries:
    offline-zim:
      settings:
        paths:                     # ZIM files and/or folders holding .zim files
          - ~/zims
          - /data/wikipedia_en_all_nopic_2026-10.zim
        max_chars: 12000           # optional; characters per zim_read call (1000-100000)

A folder is scanned one level deep for *.zim. Each file becomes a book whose id is its file name
without .zim, for example wikipedia_en_all_nopic_2026-10. If two folders hold files with the same
name, the first one wins and the second is reported under unavailable. Missing paths and damaged
files are reported the same way and do not hide the other books.

What it does on your machine (disclosure)

  • Reads only the ZIM files you configure. Nothing else on disk is opened. Folders are listed
    only to find *.zim files.
  • No network. All search and reading happens locally through libzim. The test suite checks this
    by refusing to open any socket while all three tools run.
  • Writes nothing. No files, caches or state are written. Archives are opened per call and
    nothing is kept between calls.
  • No credentials, no shell commands, no background work.
  • Content is third-party text. Article text from a ZIM is returned to the model as written by
    whoever made the archive. Scripts and styles are stripped and HTML is reduced to plain text, but
    the words themselves are not filtered. Use archives from sources you trust, such as Kiwix's own
    library.
  • Dependency licence. libzim is GPL-3.0-or-later. It is installed as a separate package and
    is not bundled here. This plugin is MIT.

Limits

  • Text only: images, audio and video inside a ZIM are not returned (zim_read says so for a media
    entry).
  • Split archives (.zimaa, .zimab, …) are not discovered. Point paths at a single .zim file.
  • Full-text search needs the archive's own index. Kiwix's published files include one. A file
    without one is searched by title only, and zim_list_books shows full_text_search: false.
  • Up to 50 in-book links are listed per article.

Development

python -m pip install "libzim>=4.0.0,<5" pytest
python -m pytest -c tests/pytest.ini tests
OFFLINE_ZIM_REAL=/path/to/some.zim python -m pytest -c tests/pytest.ini tests -k real_world -s
hermes plugins validate --install-deps .

The tests build real ZIM archives with libzim's own writer: one with a full-text index, one with
titles only, and one file that is not a ZIM. OFFLINE_ZIM_REAL adds a smoke test against a
downloaded archive.

License

MIT

README from the reviewed commit 0b34b34; it updates when the author re-pins.

More by nftpoetrist

6 plugins by nftpoetrist in the catalog.

nftpoetristcalibre-libraryLets the agent search your calibre e-book libraries and read their EPUB and TXT books, from the metadata.db and book folders calibre leaves on disk; calibre need not be installed or running. calibre_search matches titles, authors, series, tags, publishers and identifiers (ISBN, ASIN, ...) ignoring case and accents, with author, series, tag, format and language filters; calibre_book shows everything calibre records about a book and its files; calibre_read returns an EPUB in reading order with chapter offsets, or a TXT decoded as UTF-8 or Windows-1252, in parts. Standard library only. Not affiliated with calibre. Disclosure — reads only the library folders you configure: metadata.db, opened read-only per call (mode=ro, or immutable=1 for a WAL-mode database, which is refused while its -wal holds changes), and the one book file asked for, which must lie inside the library folder. EPUBs are read in place, never extracted; a package declaring a DTD or entities, a document over 32 MB unpacked or a book over 128 MB is refused. Writes nothing, makes no network calls, needs no credentials and runs no commands. Book text and descriptions are returned to the model as they are, with scripts and styles stripped.Communitytools1nftpoetristoffline-docsetsLets the agent look up API documentation in docsets on this machine without internet access: the offline format Dash and Zeal use, with an index of every function, class and guide plus the HTML pages (Kapeli's public feeds list about 180, among them Python, Node.js, Bash, SQLite and Vim). docset_list lists the docsets configured under plugins.entries.offline-docsets.settings.paths, docset_search looks entries up by name in Dash's searchIndex or Apple's Core Data index, and docset_read returns a page as plain text starting at the entry's own section, in parts, with in-docset links listed. Standard library only. Not affiliated with Kapeli or Zeal. Disclosure — reads only the docsets you configure, and only pages inside each docset's Documents folder (paths through .., encoded .., absolute paths or symlinks that leave it are refused); opens the SQLite index with mode=ro&immutable=1 so nothing is written, a WAL-mode index's -wal and -shm files included; makes no network calls, needs no credentials and runs no commands. Page text is returned to the model as the documentation's authors wrote it, with scripts and styles stripped.Communitytoolsnftpoetristoffline-mailLets the agent search and read mail archives on this machine without signing in to any mail account: mbox files (Thunderbird's folders, a Google Takeout export of Gmail, mailing-list archives) and Maildir folders (mutt, mbsync, OfflineIMAP, Dovecot). mail_folders lists the folders found under plugins.entries.offline-mail.settings.paths, mail_search finds messages by the words of their subject, names, addresses or text (case and accents ignored) with folder, sender, recipient, date and Message-ID filters, newest first, and mail_read returns a message's headers, text (the plain-text part, or the HTML part as text) and attachment list, in parts. Standard library only. Disclosure — reads only the mail files under the paths you configure, and what the agent reads goes to your model provider like the rest of the conversation; opens files read-only and never sends, moves, deletes or marks mail (a Maildir message is not renamed to seen); makes no network calls, needs no credentials and runs no commands. Message text is returned as its senders wrote it, with HTML scripts and styles removed.Communitytoolsnftpoetristorg-filesLets the agent search and read your Org mode (.org) files and answer from their agenda, without Emacs running. org_files lists the files under plugins.entries.org-files.settings.paths, org_search finds headings by words, TODO keyword (each file's #+TODO, or your own org-todo-keywords), tags (inherited and #+FILETAGS included) and priority, org_agenda returns the entries for a span of days by org-agenda-list's default rules (SCHEDULED, overdue items on today, DEADLINE warnings, appointments, +1w/++1m/.+1d repeaters with Org's month arithmetic, date ranges; blocks, COMMENT and ARCHIVE subtrees skipped), checked against Org's own agenda tests, and org_read returns an entry or a file as Org text with its properties and subheadings. Standard library only. Not affiliated with the Org mode project or GNU Emacs. Disclosure — reads only the .org files under the paths you configure (hidden folders, symlinks and Emacs lock and auto-save files skipped), and what the agent reads goes to your model provider like the rest of the conversation; opens files read-only and writes nothing; makes no network calls, needs no credentials and runs no commands, Emacs included.Communitytools

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section