All plugins

offline-info

Lets the agent search and read the GNU Info manuals on this machine without internet access: the full Texinfo documentation of coreutils, grep, sed, findutils, bash, make, gawk, Emacs, Elisp, Org and most other GNU software, as installed in /usr/share/info. info_list lists the manuals found under plugins.entries.offline-info.settings.paths, info_search looks up the manuals' own index entries and node names (like the info reader's index search; every word in the entry or its node, so 'sort -k' finds the -k entry of sort invocation) or the full text of nodes, and info_read returns a node as plain text with its up/next/prev nodes, menu and cross-references, from an index entry's line or an anchor, in parts. Reads single and split manuals, compressed with gzip, bzip2, xz or (Python 3.14) zstd, in the encoding each declares. Standard library only. Not affiliated with the GNU Project. Disclosure — reads only the Info files under the paths you configure and the subfiles their indirect tables name (a subfile name with a path separator or a leading dot is refused); folders are listed to find *.info files; writes nothing, keeps nothing between calls, makes no network calls, needs no credentials and runs no commands. Node text is returned as the manual's authors wrote it.

nftpoetristToolsv0.1.0Updated 3 hours ago

About

Lets the agent search and read the GNU Info manuals on this machine without internet access: the full Texinfo documentation of coreutils, grep, sed, findutils, bash, make, gawk, Emacs, Elisp, Org and most other GNU software, as installed in /usr/share/info. info_list lists the manuals found under plugins.entries.offline-info.settings.paths, info_search looks up the manuals' own index entries and node names (like the info reader's index search; every word in the entry or its node, so 'sort -k' finds the -k entry of sort invocation) or the full text of nodes, and info_read returns a node as plain text with its up/next/prev nodes, menu and cross-references, from an index entry's line or an anchor, in parts. Reads single and split manuals, compressed with gzip, bzip2, xz or (Python 3.14) zstd, in the encoding each declares. Standard library only. Not affiliated with the GNU Project. Disclosure — reads only the Info files under the paths you configure and the subfiles their indirect tables name (a subfile name with a path separator or a leading dot is refused); folders are listed to find *.info files; writes nothing, keeps nothing between calls, makes no network calls, needs no credentials and runs no commands. Node text is returned as the manual's authors wrote it.

hermes-offline-info

A Hermes Agent plugin that lets the agent search and
read the GNU Info manuals on your own machine, without internet access. Info is the compiled
form of Texinfo documentation: the full manuals of coreutils, grep, sed, findutils, diffutils, bash,
make, gawk, tar, Emacs, Elisp, Org, Gnus and most other GNU software, installed in
/usr/share/info on most Linux systems. They are usually far more complete than the man pages.

Useful when the agent needs an exact answer about a GNU tool (an option, a function, a variable)
from the documentation of the version you have installed, also when it has no network.

This plugin is not affiliated with the GNU Project. It reads the Info format with Python's standard
library only, following the
Info Format Specification
in the Texinfo manual. Where the specification leaves room ("practice wins"), it does what the
standalone info reader does.

Tools

ToolWhat it does
info_listLists the configured manuals: id, title, short description (from the manual's own directory entry), number of nodes and of index entries.
info_searchscope: index (default) looks up the manuals' own index entries and node names, like the info reader's i command. Every word of the query must appear, in the entry or in the node it points to, so sort -k finds the -k entry of sort invocation. Exact entries come first, then entries starting with the query. scope: text searches the full text of every node and returns a snippet. Case and accents are ignored.
info_readReturns a node as plain text, with its up, next and prev nodes, its menu and its cross-references, each with the manual and node to read next. node may be an anchor or (manual)Node, as cross-references give it. With the line of an index result, the text starts where the entry is documented. Long nodes come back in parts (next_offset).

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

Install

hermes plugins install offline-info --enable

No dependencies: the plugin uses only the Python standard library (gzip, bz2, lzma, and
compression.zstd on Python 3.14 for .zst manuals).

Configure

plugins:
  entries:
    offline-info:
      settings:
        paths:                 # Info files and/or folders holding them
          - /usr/share/info
        max_chars: 12000       # optional; characters per info_read call (1000-100000)

A path can be a manual's file (coreutils.info, coreutils.info.gz, ... or any subfile of a split
manual, such as make.info-2.gz), or a folder, which is scanned together with its direct subfolders
(Debian keeps the Emacs manuals in /usr/share/info/emacs). The dir file is not a manual and is
skipped. Each manual's id is its file name without .info and the compression suffix, for example
coreutils. If two manuals share a name, the first one wins and the second is reported under
problems. Missing paths, missing subfiles and unreadable files are reported the same way and do
not hide the others.

Some distributions ship part of the manuals in separate documentation packages; Debian, for
example, ships the Emacs manuals in emacs-common-non-dfsg.

How the format is read

  • Files. A manual is one file or a main file with an indirect table naming its subfiles
    (name.info-1, name.info-2, ...). Each may be uncompressed or .gz, .bz2, .xz, .lzma, or
    .zst (Python 3.14 or later).
  • Nodes are found by scanning for node separators, not by trusting the tag table's byte
    positions, which the specification says may be off. Header fields (File, Node, Next,
    Prev/Previous, Up) are read case-insensitively, with DEL-quoted names.
  • Anchors are found in the tag table. As info does, an anchor belongs to the node whose tag
    comes before it in the table, at the anchor's distance from that tag, so an offset error both
    positions share cancels out.
  • Index entries follow the reader's rules: the term runs to the last colon on the line, outside
    DEL-quoted node names, so terms may contain colons. The (line N) part may be on the next line.
    Lines count from 1 at the node's header line, as info counts them (info/session-cmd.c).
  • Menus and cross-references. Menus count from the * Menu: line on. Cross-references are
    *Note/*note followed by white space, in the short (node::), labelled (label: node.) and
    other-manual ((manual)node) forms, possibly across a line break.
  • Encoding comes from the manual's coding: local variable. Without one, UTF-8 is tried, then
    Latin-1.
  • Info directives (\0\b[index\0\b], \0\b[image ...\0\b]) are removed from the text. An image
    becomes its text version or [image: alt text].

What it does on your machine (disclosure)

  • Reads only the manuals you configure. For each one it opens its main file and the subfiles
    its indirect table names. A subfile name with a path separator or a leading dot is refused, so a
    manual cannot make the plugin read outside its own folder. Folders are listed only to find
    *.info files.
  • No network. Search and reading are local. The test suite checks this by refusing to open any
    socket while all three tools run.
  • Writes nothing. Files are read for each call; nothing is kept between calls. The tests check
    that no file in the configured folders changes.
  • No credentials, no shell commands, no background work.
  • Bounded reading. A manual larger than 128 MB unpacked (all its files together) is refused
    rather than loaded. A search stops after 60 seconds and says so (stopped_early).
  • Content is third-party text. Node text is returned to the model as the manual's authors wrote
    it.

Limits

  • Nothing is indexed or cached: every call reads the manuals it needs again. Measured on an Apple
    M4 with Python 3.14 over 71 manuals (22 MB unpacked: the seven Debian manuals and the 64 Emacs
    manuals listed below): an index search takes about 0.5 s, a full-text search about 0.9 s, and
    reading a node of the 5 MB Elisp manual about 0.06 s. Pass manual to search one only.
  • Man pages are not read; only Info manuals.
  • A reference whose node name contains a colon but is not DEL-quoted (older makeinfo output) is
    ambiguous and may not resolve; info has the same limit.
  • Images are not returned, only their text or alt text.

Tested with

  • Debian packages: coreutils 9.12, diffutils 3.12, findutils 4.11 (find, find-maint),
    grep 3.12, sed 4.9 and info-stnd from texinfo 7.3.
  • The 64 Emacs 30.2 manuals from Debian's emacs-common-non-dfsg (Elisp, Emacs, Org, Gnus,
    Calc, Tramp, ...).
  • Texinfo 7.3's own test files: the standalone reader's test manuals (info/t/infodir: split,
    anchors, quoting, index edge cases, malformed split) and makeinfo's expected outputs
    (tta/perl/t/results: split manuals, Latin-1, Latin-2, Shift_JIS and EUC-CN encodings, colons in
    index entries and node names). These files are GPL and are not copied into this repository.

Results:

  • Every node is read without error: all nodes of the Debian and Emacs manuals, and the 282 nodes of
    the 76 texinfo test files that have nodes. The six that have none (empty outputs, a split manual
    whose subfiles are absent) are reported under problems.
  • The Shift_JIS, EUC-CN and Latin-2 outputs decode by their coding: with no replacement
    characters.
  • Every menu entry, cross-reference and index entry pointing inside its own manual resolves to a
    node or anchor (6,828 links in the texinfo and Debian set). The exceptions are links the reference
    reader cannot resolve either: anchors outside any node in makeinfo's index_special_region
    outputs, the deliberately broken test menus, and the unquoted colon case above.
  • Sampled index entries of every Debian and Emacs manual are found by info_search (the
    real_world test below).

Development

python -m pip install pytest
python -m pytest -c tests/pytest.ini tests
OFFLINE_INFO_REAL=/usr/share/info python -m pytest -c tests/pytest.ini tests -k real_world
hermes plugins validate .

The tests write manuals in the layout makeinfo produces: a preamble with directory entries, header
lines with DEL-quoted names, menus, cross-references in every form, an index node with colons in
terms and (line N) on the next line, an image directive, a tag table pointing at each node's
separator with anchors (one on a one-character line), a coding: of ISO-8859-2, and a split manual
with gzip-compressed subfiles. Manuals are compressed with gzip, bzip2, xz and, on Python 3.14,
zstd. Broken inputs: missing subfiles, a subfile name leading outside the folder, a file with no
nodes, and a manual over the size limit.

OFFLINE_INFO_REAL (one or more paths, separated like PATH) adds a test against real manuals: it
reads every node of every manual, checks that every link inside a manual resolves, and searches
for a sample of each manual's index entries.

License

MIT

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

More by nftpoetrist

8 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-dictLets the agent look words up in dictionaries on this machine without internet access, in the two open formats offline dictionaries ship in: dictd (.index + .dict/.dict.dz, the DICT protocol's format: FreeDict, GCIDE, WordNet and Linux dict-* packages) and StarDict (.ifo + .idx + .dict.dz, with .syn alternate spellings). FreeDict alone publishes about 300 bilingual dictionaries in both. dict_list lists the dictionaries found under plugins.entries.offline-dict.settings.paths, dict_define returns every definition of a word as plain text (case ignored; when nothing matches exactly, headwords that differ only in accents, punctuation or spaces, marked loose; otherwise suggestions one typing slip away), in parts, and dict_match finds headwords by prefix, exact, substring, suffix, word or lev (one typing slip off) matching, like the DICT protocol's MATCH. Standard library only; dictzip files are read by chunk. Not affiliated with the DICT Development Group, StarDict, FreeDict or GNU. Disclosure — reads only the dictionary files under the paths you configure (folders are listed to find .index and .ifo files); writes nothing, keeps nothing between calls, makes no network calls, needs no credentials and runs no commands. Definitions are returned as the dictionary's authors wrote them, with HTML and other markup reduced to text.Communitytoolsnftpoetristoffline-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.Communitytools

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section