agent-signage
Road signs for coding agents: one true fact, delivered at the moment your agent acts — and silence the rest of the time.
agent-signage is developed by Hermes Labs.
Hermes Labs is an agentic infrastructure company building the reliability layer for autonomous systems.

Contents
What it does
When a coding agent edits a file, nothing in its tool loop errors if the checkout is stale, a
symlink points outside the repo, or another worktree is mid-edit on the same path — the edit
just lands, clean and wrong.
agent-signage is a PreToolUse hook that closes that gap: a Claude Code hook today, and, being
a plain subprocess, usable in any agent harness that can shell out before a file operation.
Before a Read, Edit, Write, Grep, or Glob call runs, it checks measurable facts about the git
state of the file about to be touched and injects one short line into the agent's context if
something matters. The rest of the time it says nothing.
Your agent opens a repo and starts fixing things. The checkout is on a stale branch, 26 commits
behind the branch you actually deploy. Every edit is correct, well-tested, and applied to a
version nobody can see. Nothing errors. Nothing warns. You find out later, if you find out at
all.
agent-signage puts a sign on that road:
STALE CHECKOUT - hermes-labs-v2 is 27 commit(s) behind origin/main (upstream tip 31 minutes
ago). This working copy may not be what is deployed; confirm which source is authoritative.
Inspect: git -C /Users/you/dev/hermes-labs-v2 log --oneline HEAD..@{u}
Every number in that line comes from a ref already on disk, so when the last fetch is old the
sign says so rather than going quiet:
STALE CHECKOUT - example-app is 8 commit(s) behind origin/main and 6 ahead from cached
origin/main at a1b2c3d4e5f6 (FETCH_HEAD was 4 days old when checked); the current gap is
unmeasured. This working copy may not be what is deployed; confirm
which source is authoritative.
Inspect: git -C /path/to/example-app fetch && git -C /path/to/example-app log --oneline HEAD..@{u}
That text reaches the model alongside the tool result, at the moment it touches the file.
Not at the start of the session, not in a config file it read twenty turns ago.
Install
Requires Python 3.9+ and git on PATH. No package dependencies.
pip install agent-signage
Or from source:
pip install git+https://github.com/roli-lpci/agent-signage.git
Claude Code
Confirm the installed runtime is sound before anything is written. This is
read-only:
agent-signage selftest # asserts the runtime guarantees, no repo needed
agent-signage install mutates your Claude Code settings file
(~/.claude/settings.json by default): it adds a PreToolUse hook entry and
keeps a timestamped backup of what was there before. Re-running it is
idempotent — it recognizes an existing entry and makes no further change.
agent-signage install # writes the hook entry for you
Read back exactly what got wired, and what it costs in this repo. This is
also read-only:
agent-signage doctor # what is live, what is inert, and what it costs here
Or install the self-contained Claude Code plugin from the Hermes Labs
marketplace. The plugin bundles its dependency-free runtime, so this path does
not require a separate pip install:
claude plugin marketplace add roli-lpci/agent-signage
claude plugin install agent-signage@hermes-labs
Or load it straight from a clone, for that session only, with nothing installed:
git clone https://github.com/roli-lpci/agent-signage.git
cd agent-signage
claude --plugin-dir claude-plugin
GitHub Copilot CLI