All plugins

hermes-pi-lane

Run the pi coding agent from Hermes as a worker. The plugin adds two tools. pi_delegate runs one task and returns the final text, the token count and the session id. Send the same session id in a later call to continue the work. pi_lane keeps one pi child alive over the pi RPC protocol. You can send more work, correct a run while it works, read the status, read the log and stop the child. A lane keeps its session across agent turns and belongs to the conversation that started it. The plugin allows one writer for each working directory and session id. The plugin makes no network calls of its own and has no Python dependencies. It bundles one skill, pi-lane, that tells the agent which tool to use. Disclosure: the plugin starts the pi binary with your user permissions. pi has no sandbox. pi can read and write files and run commands in the working directory. pi uses its own provider, model and credentials, and it inherits the environment of the Hermes process. The plugin writes one JSONL log for each lane, with mode 0600, under the plugin data directory of the profile. It keeps a small ledger of lane ids in the same directory. A lane stops after 60 minutes with no activity, and a lane left by a crash is ended when the next Hermes process starts. It reads four plugin settings that only the operator sets: pi_path selects the pi binary, trust enables project-local pi files, share_lanes lets another session read a lane and idle_timeout_min sets the idle limit. The agent cannot set them. RPC mode has no user interface, so the plugin cancels an approval dialog and records the event.

AkshxdevToolsv0.2.1Updated 9 hours ago

About

Run the pi coding agent from Hermes as a worker. The plugin adds two tools. pi_delegate runs one task and returns the final text, the token count and the session id. Send the same session id in a later call to continue the work. pi_lane keeps one pi child alive over the pi RPC protocol. You can send more work, correct a run while it works, read the status, read the log and stop the child. A lane keeps its session across agent turns and belongs to the conversation that started it. The plugin allows one writer for each working directory and session id. The plugin makes no network calls of its own and has no Python dependencies. It bundles one skill, pi-lane, that tells the agent which tool to use. Disclosure: the plugin starts the pi binary with your user permissions. pi has no sandbox. pi can read and write files and run commands in the working directory. pi uses its own provider, model and credentials, and it inherits the environment of the Hermes process. The plugin writes one JSONL log for each lane, with mode 0600, under the plugin data directory of the profile. It keeps a small ledger of lane ids in the same directory. A lane stops after 60 minutes with no activity, and a lane left by a crash is ended when the next Hermes process starts. It reads four plugin settings that only the operator sets: pi_path selects the pi binary, trust enables project-local pi files, share_lanes lets another session read a lane and idle_timeout_min sets the idle limit. The agent cannot set them. RPC mode has no user interface, so the plugin cancels an approval dialog and records the event.


What it does

You ask Hermes for a coding job. Hermes gives the job to pi, and pi works in your
repository.

You do not type a command. Ask in your own words, and Hermes chooses the shape
and calls the tool for you.

There is no command to learn. The plugin registers one skill, pi-lane. The
skill teaches Hermes which of the two tools to use, so a one-shot task, a
resumed session and a live lane all start the same way: you ask.

What you can ask for

You say to HermesWhat happens
"Have pi fix the failing test in tests/test_api.py."pi does the job and returns the result.
"Ask pi to finish that tomorrow."pi continues the same session. The context is kept.
"Put pi on the settings migration. Tell me if it drifts."pi works in a live lane. You can correct it while it runs.

Three things follow from that:

  • The answer comes back with evidence. You get the final text, the tool count
    and the token count.
  • A long job does not hold up the chat. Hermes starts the run, then reports
    status when you ask.
  • You can stop a run that goes off course. A correction reaches pi before its
    next step, so the work in flight is not lost.

Install

  1. Install the plugin.

    hermes plugins install --enable Akshxdev/hermes-pi-lane
    
  2. To install from a local clone, use a file:// URL.

    hermes plugins install --enable "file:///absolute/path/to/hermes-pi-lane"
    

    A bare filesystem path is read as owner/repo, so it tries GitHub and
    fails. For development, symlink the directory into $HERMES_HOME/plugins/
    and enable it instead.

  3. Make sure that the plugin is enabled. The install above enables it, and this
    step is safe to repeat.

    hermes plugins enable hermes-pi-lane
    
  4. Make sure that the install is complete.

    hermes plugins doctor hermes-pi-lane
    

The doctor command reports two tools. A new session picks up both tools and the
pi-lane skill.

Requirements

Make sure that these items are ready before you start:

  • Hermes 0.22.3 or later. The per-call working directory reads
    ctx.session_cwd(), which first appears in 0.22.3.
  • pi on PATH, or the plugin setting pi_path set to its absolute path.
  • A pi provider with valid credentials.
  • Python 3.10 or later. The plugin needs no third-party Python package.

Windows has code paths for process groups, but no automated test covers it
yet. The manifest lists Linux and macOS only. Linux is tested. macOS shares the
POSIX code path but has no automated test.

Make sure that the provider answers:

pi auth check --provider <name> --json

Version

ComponentTested
pi1.7.0
Hermes0.23.4

The plugin is tested against pi 1.7.0. Any other version gives a warning, not a
refusal.

How it works

The plugin starts pi as a child process. Hermes talks to that process over its
own control channel, so a command and its answer stay matched.

For one task, the plugin closes the child when the work is done. For a long job,
it keeps the child open. That open child is the live lane, and it is what lets
you correct a run in flight.

A lane does not live forever. It stops after 60 minutes with no activity, and
the operator can change that with the idle_timeout_min setting. A lane left by
a Hermes crash is ended when the next Hermes process loads the plugin. A lane
that another live Hermes process owns is left alone.

Read docs/design.md if you want the details.

Safety

CAUTION: pi has no sandbox. Every pi tool call and every bash command
runs with the permissions of the user who started Hermes.

  • The working directory defaults to your session's directory. Two chats
    never share one. Pass cwd to choose a different directory.
  • A lane releases its process and its session. The idle sweep stops it
    after 60 minutes by default. A crash leftover is ended at the next start.
  • Trust is off by default. pi ignores project-local files until the operator
    enables it for the whole profile with the plugin setting trust.
  • The tool list is short by default. For review work, ask for a read-only
    list.
  • An approval dialog is cancelled and logged. RPC mode has no place to ask
    you, so the plugin never approves in silence.
  • A repository can lie to the model. Treat the output as untrusted.
  • For untrusted work, use a container or a separate user account.

Learn more

DocumentContents
docs/tools.mdEvery argument, action, return field, limit and fault code.
docs/design.mdWhy a plugin, the engine rules, the timeouts, the locks, the ledger.
docs/protocol.mdThe pi RPC subset, the framing rules, the event map.
skills/pi-lane/SKILL.mdThe bundled skill: which shape to use, how to steer, how to read a fault.
CHANGELOG.mdRelease history.

Development

If you change the code, run these commands:

python -m pytest -q                    # 84 tests, no model call
hermes plugins validate .              # manifest and safety checks
hermes plugins doctor .                # import and registration

The test suite drives a fake pi. The fake speaks the real framing, so a test
makes no model call. The suite covers a steer, a dialog, a crash in the middle of
a run and a malformed line.

License

MIT. The banner uses Press Start 2P
under the SIL Open Font License. See assets/fonts/OFL.txt.

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

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section