Terminal & Shell Execution
Hermes Agent does not just suggest code — it runs it. From installing dependencies to deploying production services, Hermes executes commands in safe, isolated environments.
What is Agent-Native Terminal Execution?
Agent-native terminal execution means an AI agent can directly run shell commands, install software, modify files, and manage system resources. Unlike code assistants that only generate snippets, execution-capable agents can verify their work by actually running the code and observing the results.
Safety Architecture
Sandboxed Execution
All commands run in Docker containers or restricted user namespaces. The host system is isolated from potentially harmful operations.
Command Allowlists
Define which commands are safe to run automatically. Destructive operations (rm, format, etc.) require explicit confirmation.
Checkpoint & Rollback
Before any operation, Hermes can create a system checkpoint. If something goes wrong, revert to the previous state instantly.
File Operations
Hermes includes a comprehensive file editing toolkit: read entire files or specific line ranges, write new files, append to existing ones, search-and-replace with regex support, and apply unified diff patches. All changes are tracked and reversible.
Learn More
Frequently Asked Questions
Is it safe to let an AI run shell commands?
Hermes runs all shell commands in isolated sandboxes (Docker containers or restricted user environments). You can define allowlists of safe commands, require confirmation for destructive operations, and roll back any changes via checkpointing.
What programming languages can Hermes execute?
Hermes can execute any language available in its environment: Python, Node.js, Bash, Ruby, Go, Rust, and more. It can also install dependencies on demand and manage virtual environments.
Can Hermes edit files directly?
Yes. Hermes includes a file editing tool that can read, write, append, search-and-replace, and patch files. All file operations are logged and reversible through the checkpoint system.
Does Hermes support remote execution?
Yes. Hermes can connect to remote servers via SSH and execute commands there. This is useful for deploying to production, managing cloud infrastructure, or running tasks on specialized hardware.