← Back to Plugins
Tools

Hr Openclaw

harnesy By harnesy 👁 3 views ▲ 0 votes

OpenClaw plugin: hire an AI employee from hr.harnsy.dev as an OpenClaw agent

Homepage GitHub

Install

openclaw plugins install git:github.com/harnesy/hr-openclaw@v0.1.0

README

# hr-openclaw

A plugin for [OpenClaw](https://openclaw.ai) that hires an employee from [hr.harnsy.dev](https://hr.harnsy.dev), the
catalog of AI employees, as an OpenClaw agent with a workspace of its own.

Which way fits you (OpenClaw, Hermes Agent or any MCP client): [Hire an AI employee in OpenClaw, Hermes Agent or an MCP client](https://harnsy.dev/hire-ai-employees-openclaw-hermes-mcp).

An employee is a role with a character: who it is, how it decides and speaks, its job, and the skills it works with.
`hire` downloads the employee from the catalog's signed feed, checks the signature on your machine, shows you what it
is about to write, asks, and only then writes the files and adds the agent. Your own agent and its workspace are not
touched; several employees live side by side.

Built and tested against OpenClaw 2026.11.3.

The catalog's public key (key id `c1`) is built into the plugin (`src/keys.ts`). A feed whose signature does not verify
under it is refused, and nothing is written.

## Install

You need OpenClaw 2026.11.3 or later, set up with a model, and `git` on the machine.

```
openclaw plugins install git:github.com/harnesy/hr-openclaw@v0.1.0
```

`@v0.1.0` is the release. Without `@…` OpenClaw installs the current `main`; a full commit after `@` works too. The
source is spelled `git:github.com/…`: a full `https://` address is refused («URLs are not allowed»).

OpenClaw warns that a source outside ClawHub is not reviewed and asks twice, each time with no as the default: first
whether to install from this source, then, after it has cloned the repository, whether to accept what the plugin
declares (one terminal command and one chat command). In a script, or with nobody to answer, add
`--force --accept-capabilities`: without them it cancels and installs nothing.

The second question lists «Prompt injection: allowed». That is OpenClaw's default for every plugin that is not its
own, a setting on your side in your `openclaw.json` (OpenClaw's documentation names it; its name differs between
OpenClaw releases), not something this plugin asks for: it registers no hooks and adds nothing to a prompt. With
that setting denied on OpenClaw 2026.11.3, `search` and `hire` worked the same.

Nothing is built or downloaded at install: the built plugin is in `dist/`, and it has no dependencies to install.
OpenClaw still prints «Installing plugin dependencies with npm…»; all it leaves is a link to OpenClaw itself.
`openclaw plugins inspect harnsy-hr --runtime --json` shows what OpenClaw loaded.

From a checkout of this repository: `openclaw plugins install <path to the checkout>`.

## First hire

```
openclaw harnsy-hr search accountant          find an employee
openclaw harnsy-hr show harnsy/accountant     the card, what it needs, the files, the notice
openclaw harnsy-hr hire harnsy/accountant     shows the same, asks, then writes the files and adds the agent
openclaw harnsy-hr list                       who is hired on this machine
openclaw agent --agent accountant --message "Who are you, what do you do first, what do you hand over?"
```

The hired agent uses the model your OpenClaw is set up with: there is no other step. Before the agent's answer
OpenClaw prints a warning that it cannot verify where this plugin came from: it is not from ClawHub. The answer
follows.

These lines were run as written on a clean OpenClaw 2026.11.3 on Linux, with the plugin installed from GitHub: at a
terminal, answering the questions, and again with `--force --accept-capabilities` and `--yes`. The last line had
`--local` added, since no Gateway ran there: the employee answers in its role. Not run: Windows, macOS.

## Commands

In a terminal:

| Command | What it does |
|---|---|
| `openclaw harnsy-hr search [words…]` | Search the catalog by a few words (a role, a skill, a need; at most 256 bytes and 16 different words). `--department <name>`, `--limit <n>` (at most 20). No words lists everyone. The words stay on your machine. |
| `openclaw harnsy-hr show <id>` | One employee: what it needs, the files a hire writes, its notice. |
| `openclaw harnsy-hr hire <id>` | Shows the card, what the employee needs, every file and the full notice, then asks. After a yes it writes the files and adds the agent. `--yes` for scripts. |
| `openclaw harnsy-hr update <id>` | Fetches and verifies the employee again and brings the files this plugin wrote to the current version. `--yes`, `--replace-edited`. |
| `openclaw harnsy-hr list` | The employees hired on this machine. Reads the disk only. |
| `openclaw harnsy-hr fire <id>` | After a yes, has OpenClaw delete the agent (`openclaw agents delete`: OpenClaw removes the agent and moves its workspace to the Trash). Only an agent this plugin hired. `--yes` for scripts. |

An id is `<publisher>/<name>`, for example `harnsy/accountant`.

In a chat, `/harnsy-hr search <words>`, `/harnsy-hr show <id>` and `/harnsy-hr list` answer with text. `hire`,
`update` and `fire` are not run from a chat: they write files and wait for your yes, so the chat command answers with
the terminal command to type. A chat command runs inside OpenClaw's Gateway process: `search` and `show` fetch the feed
from there and, like the terminal commands, write its number to `harnsy-hr/state.json`; they write nothing else.
(OpenClaw registers the chat command, and this repository's tests run it; it has not been tried in a live channel
yet.)

What the commands print of the catalog's text (a card, what an employee needs, a notice) is printed without control
characters and without the characters that hide or reorder text (zero-width characters, direction overrides and the
rest of Unicode's format characters); in an error message such a character is shown as an escape (`\u202e`). The files
a hire writes keep every byte the catalog signed. A chat answer is sent as one code block, so nothing in a publisher's
text is posted as a link, a mention or markup; a backtick in it is shown as an apostrophe. A chat answer names a
folder by its place in OpenClaw's state folder (`<OpenClaw's state folder>/workspace-<name>`), not by its path on
your machine; a terminal prints the path.

The plugin adds nothing else: no tools for the model, no hooks, no background service. It runs only when you call it.

## What a hire writes

Under OpenClaw's state directory (`~/.openclaw`), a folder `workspace-<name>`:

```
SOUL.md              who the employee is
AGENTS.md            its job
IDENTITY.md          its name, vibe and emoji
skills/<skill>/…     its skills, byte for byte as published; they belong to this agent only
docs/…               its casebook of worked cases
NOTICE.md            licence, source, credits: keep it with the employee
.harnsy/hire.json    this plugin's record: which employee, and the SHA-256 of each file it wrote
```

The files are written first; then the plugin runs `openclaw agents add <name> --workspace <folder> --non-interactive`.
OpenClaw adds its own `USER.md` there and puts the agent's id into the name line of `IDENTITY.md`; the plugin puts
the employee's `IDENTITY.md` back and runs `openclaw agents set-identity --agent <name> --from-identity`, so the agent
carries the employee's name.

- If an agent of that name exists, or the folder already holds files, `hire` stops and says so. It never overwrites.
- If OpenClaw does not add the agent, the files written for it are removed again.
- `USER.md`, `MEMORY.md` and the agent's notes are OpenClaw's and yours: the plugin never writes or reads them.
- Scripts that come with a skill are written as plain files, without the execute bit. The plugin never runs them. The
  agent may run them later, as it may run any file in its workspace: read what `hire` lists before you say yes.
- `update` replaces only files that are still as the plugin wrote them. A file you changed is asked about, one by
  one, and kept unless you say yes (`--yes` keeps them, `--replace-edited` replaces them). `NOTICE.md` is always
  brought up to date.
- `.harnsy/hire.json` is how `update` tells a file you changed from one it wrote. Whoever can write the workspace,
  the agent included, can edit that record: it guards your edits against the plugin's own mistakes, not against
  someone who rewrites the record.
- Before each write the plugin checks that no symbolic link stands on the way to the file. The check is made before
  the write, not in one step with it: a program that works in the workspace at that very moment could put a link
  there in between.
- The hired agent uses the model your OpenClaw is set up with. Talking to it (`openclaw agent --agent <name> …`) is
  OpenClaw's own command; it needs a model, so this repository's tests do not run it. It was run by hand on a clean
  OpenClaw 2026.11.3 («First hire» above).

## What is checked on your machine

Before anything is written, in this order; any failure stops with the reason and writes nothing:

1. `feed.json` against `feed.json.sig`: an Ed25519 signature over the exact bytes of the feed, by a catalog key built
   into the plugin. A feed signed under a key id the plugin does not know is refused («update the plugin»).
2. The feed's version, its expiry date, and its sequence number: the highest one seen is remembered
   (`~/.openclaw/harnsy-hr/state.json`), and an older feed, even a validly signed one, is refused.
3. Every employee entry of the feed: its id and version must have the catalog's form (`<publisher>/<name>` in lowercase
   letters, digits and `-`; `MAJOR.MINOR.PATCH`), and its addresses must be on `hr.harnsy.dev`. Versions the catalog
   withdrew are not served.
4. The bundle file: its size and SHA-256 must equal the feed's, before it is opened.
5. The bundle as a zip, read in memory: at most 128 entries and 8 MB unpacked (counted as it unpacks, whatever the
   headers say), plain files only, no name twice, no name that leaves the bundle.
6. The bundle's manifest: it must name the same employee and version, list only the kinds of files a bundle may carry,
   a

... (truncated)
tools

Comments

Sign in to leave a comment

Loading comments...