Hercules Testing Agent
World's first open-source testing agent enabling UI, API, security, accessibility, and visual validations without code.
- Source repo
- test-zeus-ai/testzeus-hercules
- Stars
- ★ 1.3k
- Last updated
- today 2.0.3
- FARS reviewed
- Nov 08, 2026 +4 new
- License
- Apache-2.0
- Primary language
- Python
- FA score
- 49/100 · Major gaps
At a glance
- How it runs
- Works with
- Portable with changes
- Cost
- Free software; you pay for model usage
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- QA engineers who want to write end-to-end tests in plain Gherkin without coding
- Not a fit if
- Teams unwilling to pay per-use LLM API costs
- Users who need a GUI instead of a terminal
- Website
- testzeus.com/hercules ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-12-02latest release 2.0.3 (2026-12-01)+1.6 ★/day over 7 days
- Source review
- 49/100 · Major gaps
What does this agent do, and when should you use it?
Hercules is an open-source testing agent that turns Gherkin feature files into automated end-to-end tests. Built on a LangGraph state machine, it coordinates planner, executor, and assertion nodes to route actions to navigation agents for browser, API, security, SQL, MCP, and more. Users write tests in Gherkin; Hercules executes them and produces JUnit XML and HTML reports, along with video recordings, screenshots, and network logs as proof. It offers multiple deployment paths: PyPI package, Docker image, or from source. Additionally, Hercules can run as an MCP server, exposing tools like generate_gherkin and run_test to MCP clients.
It reads Gherkin feature files, parses them into strict JSON plans, and uses a PlannerAgent to decide the next step. The executor routes to the appropriate navigation agent—such as browser_nav_agent, api_nav_agent, sec_nav_agent—which bind LangChain StructuredTools (open_url, click, bulk_enter_text) to interact with browsers or APIs. It integrates security scanning via Nuclei and accessibility checks per WCAG standards. After execution, it generates JUnit XML and HTML reports, and saves artifacts like screenshots, videos, and network logs. It also supports MCP servers for tool discovery and can act as an MCP server itself.
- QA engineers who want to write end-to-end tests in plain Gherkin without coding
- DevOps teams integrating Hercules into CI/CD pipelines using the Docker image for automated regression testing
- Security testers who need to run vulnerability scans (Nuclei) from Gherkin test cases
- Accessibility specialists verifying WCAG 2.0/2.1/2.2 compliance at A, AA, AAA levels
- Teams that want to extend functionality with custom Python scripts or community tools via ADDITIONAL_TOOL_DIRS
- Organizations needing remote browser execution (BrowserStack, LambdaTest, BrowserBase) for scalable testing
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Environment variables
LLM_MODEL_API_KEYLLM_MODEL_BASE_URL- Config files
agents_llm_config.json.env- Runtime
- Python 3.11
- Install notes cover
- Docker
How do you install or deploy this agent?
Install Python 3.11–3.13, then run: pip install testzeus-hercules; next, run playwright install --with-deps to set up browsers. Alternatively, use Docker: docker pull testzeus/hercules:latest. For source-based installation, clone the repository, install UV, and run make setup-uv && make install. You'll need to configure LLM environment variables (LLM_MODEL_NAME, LLM_MODEL_API_KEY, LLM_MODEL_BASE_URL) or optionally use an agents_llm_config.json for per-agent model routing.
How do you use this agent?
Create a Gherkin feature file (e.g., opt/input/test.feature). Set environment variables like LLM_MODEL_NAME=gpt-4o and LLM_MODEL_API_KEY=your-key. Run testzeus-hercules --project-base=opt or specify --input-file, --output-path, and --test-data-path. After execution, check the output directory for JUnit XML and HTML reports. For Docker, run: docker run --env-file=.env -v ./opt:/testzeus-hercules/opt --rm -it testzeus/hercules:latest. Results appear in the mounted opt folder.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
Inherits capabilities of connected MCP servers; audit third-party servers before enabling.
What are this agent's strengths and limitations?
- No-code testing: write tests in Gherkin, no programming required
- Multi-type coverage: UI, API, security (Nuclei), accessibility, and visual checks
- Flexible deployment: PyPI package, Docker, or source
- Rich execution evidence: videos, screenshots, network logs
- MCP integration: can connect to MCP servers and act as one
- Auto-healing capabilities reduce maintenance
- Requires LLM API access, incurring cost (approx. $0.20 per complex use case)
- Configuration overhead: model keys and environment variables needed
- Playwright browser installation required (playwright install)
- Windows users need extra setup script (hercules_windows_setup.ps1)
- Telemetry enabled by default, but can be disabled
How does this agent compare with similar options?
Hercules differentiates from traditional test automation frameworks (e.g., Selenium, Cypress) and LLM-driven approaches by being open-source, code-free, and covering multiple test types. Specific comparisons to other agents are not detailed in the source.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Hercules Testing Agent This agent | 49 · Major gaps | CLIFree + model costs | ★ 1.3k | today | Python | — |
| agent-qa | 58 · Major gaps | CLIFree + model costs | ★ 830 | 1d ago | TypeScript | Codex · Claude Code |
| qa-skills — QA Skill Framework for Coding Agents | 78 · Good | Agent plugin / skillFree | ★ 72 | 2d ago | Python | Claude Code |
| Emdash Skills | 38 · Blocked | Agent plugin / skillFree + model costs | ★ 32 | today | TypeScript | Codex · Claude Code |
How does FollowAgents rate this agent?
Why each dimension lost points
The documentation discloses that telemetry is enabled by default, sandbox scripts can access environment variables and API keys, and MCP tools inherit the server process's privileges; it also describes some containment measures. However, the Python sandbox is explicitly not a security boundary, execution is powerful, and evidence for telemetry data flows, user confirmation, and rollback is limited. Dependencies have version constraints and several overrides, but the packet does not show a complete ongoing audit or vulnerability response process. An author and repository address are listed, but publisher identity and maintenance responsibility are unverified.
The entry point handles missing scenarios, missing results, and parse failures with explicit errors, and the docs describe output artifacts and optional features. The README and guides cover several operating modes, but the dependency set is large and some version constraints are broad; the packet does not establish dependable availability or maintenance of those dependencies.
The materials address Gherkin testing, CI, interactive debugging, browser/API/MCP use, and custom Python extensions, covering varied scenarios and stating sandbox limits and some MCP boundaries. Natural-language instructions and tool routing are flexible, but the provided materials do not fully define triggers, permission boundaries, or how to choose among modes.
The README gives several installation and run paths; documentation is split by feature, with useful examples and troubleshooting. Sandbox and MCP docs state important limitations. The AGPL-3.0 license text is present, earning full marks for the license criterion. Naming and paths are inconsistent in the packet (for example, the repository URL differs between README and pyproject); version information is present but no change history is included in the supplied materials, and maintenance responsibility is not clearly stated.
The product can produce JUnit XML, HTML, logs, screenshots, video, and network records, supporting test workflows and review. Natural-language/Gherkin input and extensible tools can reduce test automation authoring effort. Operation depends on browsers, model services, and potentially remote tools; the materials do not adequately quantify costs or describe a lighter default setup, so cost-benefit is only partly supported.
Some capabilities are traceable to the entry-point code, configuration manifest, and feature docs; the README execution flow aligns with entry-point failure handling, and the sandbox docs distinguish limitations from security guarantees. Many broad testing and quality claims remain primarily README or tutorial-title assertions, without independent corroboration or run results that can be confirmed from this packet.
- Do not run untrusted scripts through Python sandbox execution: the docs say scripts can access the network, filesystem, imports, and credentials in environment variables; the default in-process mode also lacks a hard timeout or resource limits.
- Telemetry is enabled by default; the packet does not fully show collected fields, recipients, or retention. Check the relevant configuration before running and avoid putting real credentials in scripts or test data.
- MCP, browser, and API tools can cause external effects with the privileges of the running process. The README says runs may record video, screenshots, and network logs; confirm the target environment and data handling requirements before execution.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
2.0.3 Hercules 2.0.3
Release notes excerpt
Shriyansh Agnihotri (2): feat: Hearth, the free self-hosted farm, as the first built-in cloud (#221) release: 2.0.3 (Hearth, the free self-hosted farm, as a built-in cloud) (#222)View on GitHub ↗ -
2.0.2 Hercules 2.0.2
Release notes excerpt
Shriyansh Agnihotri (2): release: 2.0.2 (dependency updates, mcp 2.x) (#219) test: give the mcp shim import budget room for the 2.x SDK's own imports (#220)View on GitHub ↗ -
2.0.1 Hercules 2.0.1
Release notes excerpt
Shriyansh Agnihotri (3): docs: fixes from the 2.0.0 install checks (#208) fix: API and SQL checks work in the default install; reverify runs plans as made (for 2.0.1) (#210) release: 2.0.1 (#211)View on GitHub ↗
FAQ
What LLMs are supported?
Can I disable telemetry?
How do I connect to a remote browser?
What happens if a test fails?
Can it run without external LLM APIs?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.