Watch process, file, and network activity visible from user space, rehearse policy without sending signals, and keep a local evidence trail.
Agent Gorgon is developed by Hermes Labs.
Hermes Labs is an agentic infrastructure company building the reliability layer for autonomous systems.
Audit coding agents at runtime. Enforce deterministic policy when you are ready.
Quickstart · Evidence · Recipes · Security
Autonomous agents need shell access to be useful. Agent Gorgon adds a reactive user-space policy layer around the process that gets that access—without requiring the agent or its tools to adopt an SDK.
- Observe the process tree. Wrap a command you launch or attach to an exact PID and inspect the process, file, and network activity visible from user space.
- Audit before enforcing. Exercise the same deterministic policy path without sending
SIGSTOPorSIGKILL, then enable controls only after the scope is calibrated. - Keep the evidence. Local JSONL actions and incident reports separate the policy verdict, the signal attempt, and the observed process state.
agent command or PID
↓
user-space observation
(process · files · network)
↓
deterministic policy
SAFE · FLAG · HALT · KILL
↓
audit-only: record enforce: attempt signal
↓
local actions + incident evidence
Agent Gorgon requires Python 3.9+.
python -m pip install agent-gorgon
agent-gorgon --versionStart with the packaged audit demo. It launches controlled fixtures that it owns—no real agent, network access, or credentials—and writes a machine-readable receipt:
agent-gorgon-audit-demo --out /tmp/agent-gorgon-audit-demo.jsonThe demo evaluates declared SAFE, HALT, and KILL expectations in audit-only mode. It exits nonzero if an observed verdict does not match the declared ground truth; read the receipt before treating the run as a passing calibration.
See Evidence and reproducible receipts for captured results, overhead measurements, and their limitations.
Run your normal command behind Agent Gorgon. agent-gorgon run is audit-only unless you explicitly pass --enforce:
agent-gorgon run --audit-only --scope coding-agent -- claude
# or:
agent-gorgon run --audit-only --scope coding-agent -- <your agent command>When the command exits, Agent Gorgon returns its exit status, prints a compact summary, and leaves the action evidence on disk:
agent-gorgon run: mode=audit-only exit=0 observed=14 safe=11 flags=3 would-halt=0 would-kill=0 evidence=/home/you/.local/share/agent-gorgon/logs/actions_20260911_101500.jsonl
After you have reviewed the evidence and narrowed the scope for the exact workload and host, active signaling is explicit:
agent-gorgon run --enforce --scope coding-agent -- <your agent command>The shipped coding-agent scope is a starter policy, not universal or production-calibrated coverage.
Agent Gorgon polls operating-system telemetry available to the monitored process tree through psutil and evaluates each observation against the active scope. The normal CLI poll interval is 0.5 seconds; shorter intervals increase watcher overhead.
| Verdict | Meaning | Response |
|---|---|---|
SAFE |
Observation is within active policy | Continue |
FLAG |
Suspicious or outside expected scope, below intervention threshold | Log and continue |
HALT |
Deterministic dangerous pattern matched | Attempt process-tree SIGSTOP and record evidence |
KILL |
Deterministic severe violation matched | Attempt process-tree SIGKILL and record evidence |
Optional local Ollama analysis is advisory-only. It cannot authorize HALT or KILL decisions; deterministic policy owns active control.
coding-agent is designed to make common development activity usable while surfacing:
- reads of SSH, AWS, GPG, gcloud, GitHub, netrc, credential, and key material;
- outbound transfer utilities such as
curl,wget, andnc; - writes outside the expected workspace;
- network activity outside configured policy;
- destructive recursive deletion patterns.
The scope cannot know your repository layout, caches, credentials policy, network requirements, or threat model. Calibrate it in audit-only mode and adapt it to the workload. See Harness recipes for scenario and scope guidance.
To monitor a process that is already running, prefer an exact PID:
agent-gorgon \
--scope starter \
--agent-pid <PID> \
--no-llm \
--audit-onlyUnlike agent-gorgon run, the direct PID command does not default to audit-only. Keep --audit-only until you intentionally want active controls.
Default evidence locations include:
~/.local/share/agent-gorgon/warden.log~/.local/share/agent-gorgon/logs/actions_*.jsonl~/.local/share/agent-gorgon/logs/incidents/*.json
Generate a structured incident report from recent evidence:
agent-gorgon-forensic \
--last-hours 24 \
--workspace /path/to/workspace \
--evidence-dir ~/.local/share/agent-gorgon/logs \
--out report.jsonThese are structured local receipts, not cryptographically immutable records.
Important boundaries:
- Not a kernel sandbox. Agent Gorgon does not replace namespaces, seccomp, virtualization, or other kernel/VM isolation.
- Reactive, not pre-execution interposition. An action can begin or finish between polling observations.
- User-space visibility is incomplete. Short-lived children, file handles, or other activity can be missed.
- Signal attempts are attempts. The process tree can change while a signal is being applied.
- A scope is not proof of coverage. Validate each policy against its workload and environment.
CI exercises Python 3.9–3.12 on Ubuntu. Active controls are POSIX-oriented. Treat other operating systems, Python versions, and production environments as unevaluated until they have been validated directly.
Agent Gorgon includes no Hermes Labs telemetry or remote reporting client.
Unless --no-llm is used, Agent Gorgon probes the local Ollama service at http://localhost:11434 and may send local action context to it for advisory analysis. --no-llm disables that path.
Local evidence can contain sensitive paths, commands, and remote IP/port observations. Protect it as operationally sensitive data.
- Evidence and reproducible receipts
- Harness recipes
- Audit checklist
- Examples
- Security policy
- Contributing guide
- Code of conduct
- Changelog
- Release checklist
- Compatibility shim notes
- Layered implementation plan
- Contributor agent guide
Distributed under the Apache-2.0 License. See LICENSE. Report security issues according to SECURITY.md.