Hercules Testing Agent

World's first open-source testing agent enabling UI, API, security, accessibility, and visual validations without code.

Stars
★ 1.3k
Last updated
today 2.0.3
FARS reviewed
Nov 08, 2026 +4 new
License
Apache-2.0
Primary language
Python

At a glance

How it runs
CLISelf-hosted serviceMCP server
Works with
Portable with changes
Cost
Free software; you pay for model usage
Setup effort
Medium · a few setup steps
You'll need
Python >=3.11,<3.14PlaywrightDockerShell / CLINetwork accessLocal filesystemMCP Server
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

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.

  1. QA engineers who want to write end-to-end tests in plain Gherkin without coding
  2. DevOps teams integrating Hercules into CI/CD pipelines using the Docker image for automated regression testing
  3. Security testers who need to run vulnerability scans (Nuclei) from Gherkin test cases
  4. Accessibility specialists verifying WCAG 2.0/2.1/2.2 compliance at A, AA, AAA levels
  5. Teams that want to extend functionality with custom Python scripts or community tools via ADDITIONAL_TOOL_DIRS
  6. 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_KEY LLM_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)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

External MCP tool bridge

Inherits capabilities of connected MCP servers; audit third-party servers before enabling.

What are this agent's strengths and limitations?

Pros
  • 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
Limitations
  • 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?

FollowAgents source review · FARS-2.1
Major gaps
49/ 100 5-point scale 2.5 / 5
This review covers the source as of Nov 08, 2026. The project has shipped 4 stable release(s) since, which have not been re-reviewed. The score and verdict describe the reviewed version only. Recent releases ↓
Trust 10/29
Reliability 8/14
Adaptability 10/18
Convention 10/18
Effectiveness 7/13
Verifiability 4/8
Why each dimension lost points
Trust10 / 29 · 1.7/5

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.

Reliability8 / 14 · 2.9/5

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.

Adaptability10 / 18 · 2.8/5

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.

Convention10 / 18 · 2.8/5

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.

Effectiveness7 / 13 · 2.7/5

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.

Verifiability4 / 8 · 2.5/5

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.

Risks and how to mitigate them
  • 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.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision 269c053fbf6a New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/testzeus-hercules.svg)](https://followagents.com/en/agents/testzeus-hercules)
<a href="https://followagents.com/en/agents/testzeus-hercules"><img src="https://followagents.com/badge/testzeus-hercules.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. 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. 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 ↗
  3. 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?
Models with tool-calling and JSON planning support, such as GPT-4o, Claude, or any OpenAI-compatible model via LiteLLM proxy.
Can I disable telemetry?
Yes, set the environment variable ENABLE_TELEMETRY=0 before running.
How do I connect to a remote browser?
Set CDP_ENDPOINT_URL to the CDP endpoint of the browser instance (e.g., BrowserBase, self-hosted grid).
What happens if a test fails?
Check the HTML report and the proofs folder for video, screenshots, and network logs; also inspect agent_inner_thoughts.json for decision traces.
Can it run without external LLM APIs?
Local models (e.g., Ollama) can be used if they support tool calling and strict JSON output, but you need to configure them appropriately.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts