### Development setup and test commands Source: https://github.com/hermes-labs-ai/agent-gorgon/blob/main/README.md Install the package in editable mode with development dependencies, then run the test suite with pytest. ```bash pip install -e .[dev] pytest ``` -------------------------------- ### Example audit-only summary output Source: https://github.com/hermes-labs-ai/agent-gorgon/blob/main/README.md Example output from the audit-only run, showing the mode, exit status, observed process count, safe count, flags, and would-halt/would-kill counts. The evidence file path is also shown. ```text 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 ``` -------------------------------- ### Run audit demo with packaged command Source: https://github.com/hermes-labs-ai/agent-gorgon/blob/main/docs/EVIDENCE.md Reproduce the audit workload using the packaged CLI command. Outputs evidence to a JSON file. Requires `pip install agent-gorgon`. ```bash agent-gorgon-audit-demo --out /tmp/gorgon_evidence.json ``` -------------------------------- ### Install and run Agent Gorgon in audit-only mode Source: https://github.com/hermes-labs-ai/agent-gorgon/blob/main/README.md Installs version 0.3.0 and runs the agent in audit-only mode, watching the command's process tree and printing what would be halted without pausing or terminating anything. The command exits with the target's exit status and a summary line. ```bash pip install agent-gorgon==0.3.0 agent-gorgon run --audit-only --scope coding-agent -- ``` -------------------------------- ### False-trigger JSON example Source: https://github.com/hermes-labs-ai/agent-gorgon/blob/main/docs/EVIDENCE.md A false FLAG verdict caused by unresolved /tmp paths on macOS. This demonstrates why `allowed_paths` must be built from `os.path.realpath(path)`. ```json { "verdict": "FLAG", "reason": "Path outside allowed scope: /private/var/folders/.../T/agent-gorgon-workload.XXXX/safe_output.txt (LLM disabled)" } ``` -------------------------------- ### Run audit demo from source wrapper Source: https://github.com/hermes-labs-ai/agent-gorgon/blob/main/docs/EVIDENCE.md Equivalent thin wrapper for running the same audit workload from a source checkout. ```bash python3 examples/harness/run_audit_workload.py --out /tmp/gorgon_evidence.json ``` -------------------------------- ### Show help for agent-gorgon and run subcommand Source: https://github.com/hermes-labs-ai/agent-gorgon/blob/main/README.md Displays help for the primary command and its run subcommand, listing available options and usage. ```bash agent-gorgon --help agent-gorgon run --help ``` -------------------------------- ### Attach to a running process with agent-gorgon (PID mode) Source: https://github.com/hermes-labs-ai/agent-gorgon/blob/main/README.md Creates a temporary 'wget' command that only sleeps, launches it in the background, and runs agent-gorgon in audit-only mode against that PID. The output shows a HALT would be requested but no signal is sent. ```bash DEMO_DIR=$(mktemp -d /tmp/agent-gorgon-demo.XXXXXX) ln -s "$(command -v sleep)" "$DEMO_DIR/wget" /bin/sh -c '"$1" 3 & wait' agent-demo "$DEMO_DIR/wget" & TARGET_PID=$! agent-gorgon \ --scope starter \ --agent-pid "$TARGET_PID" \ --poll 0.05 \ --no-llm \ --audit-only \ --log-dir "$DEMO_DIR/evidence" ``` -------------------------------- ### Run fully scripted audit demo Source: https://github.com/hermes-labs-ai/agent-gorgon/blob/main/README.md Runs the scripted audit demo covering SAFE/HALT/KILL scenarios, producing a machine-readable JSON receipt and exiting nonzero on any mismatch. ```bash agent-gorgon-audit-demo --out /tmp/agent-gorgon-audit-demo.json ``` -------------------------------- ### Expected output from audit-only PID mode Source: https://github.com/hermes-labs-ai/agent-gorgon/blob/main/README.md Shows the explicit result of the audit-only run: control mode, disabled LLM, and a summary line indicating a HALT would be requested for the suspicious 'wget' process. ```text Control: audit-only (SIGSTOP/SIGKILL disabled) LLM: qwen3:4b disabled (rules only) 🟡 AUDIT ONLY, would HALT: Suspicious process spawned: wget Observed: 1 | Safe: 0 | Flags: 0 | Halts: 1 | Kills: 0 ``` -------------------------------- ### Generate forensic JSON report with agent-gorgon-forensic Source: https://github.com/hermes-labs-ai/agent-gorgon/blob/main/README.md Runs the forensic tool to produce a private JSON summary at an explicit path, using the demo workspace and evidence directory. ```bash agent-gorgon-forensic \ --last-hours 24 \ --workspace "$DEMO_DIR/workspace" \ --evidence-dir "$DEMO_DIR/evidence" \ --out "$DEMO_DIR/report.json" ``` -------------------------------- ### Import Scope from agent_gorgon.warden Source: https://github.com/hermes-labs-ai/agent-gorgon/blob/main/README.md Imports the canonical Scope class from the agent_gorgon.warden module for Python integrations. ```python from agent_gorgon.warden import Scope ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.