agenthealth

module
v0.13.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2026 License: Apache-2.0

README

TheAgentHealth

Vendor-neutral health and readiness checks for agentic systems

AgentHealth is an open-source, vendor-neutral, framework-neutral, and language-neutral project for determining whether AI agents and the infrastructure they depend on are reachable, correctly configured, responsive, ready, and operationally healthy.

Start here

Latest release: v0.12.0, pre-1.0. Supported adapters: agent/multi-agent, HTTP/API, MCP HTTP/stdio, A2A, gateway, and router. Model, database, and vector-store adapters are planned; schema vocabulary does not imply adapter availability.

Install

Choose how you want to run AgentHealth. Published distributions share v0.12.0:

Use it as Get it here Installation guide
Standalone CLI Release downloads: Linux AMD64/ARM64, macOS Intel/Apple Silicon, Windows AMD64 Download, verify and extract — no Go required
Docker image Docker Hub: theagenthealth/agenthealth:v0.12.0; GHCR: ghcr.io/theagenthealth/agenthealth:v0.12.0 Docker usage — Linux AMD64/ARM64
Kubernetes / Helm oci://ghcr.io/theagenthealth/charts/agenthealth, chart version 0.12.0; chart archive also in release downloads Kubernetes setup and examples
Linux DEB / RPM AMD64/ARM64 packages in release downloads Local package installation
Homebrew / Scoop agenthealth.rb / agenthealth.json in release downloads Manifest usage; official tap/bucket hosting is planned
OCI download bundle ghcr.io/theagenthealth/agenthealth-binaries:v0.12.0 Retrieve with ORAS; contains release files

Run immediately with Docker:

docker run --rm theagenthealth/agenthealth:v0.12.0 version
docker run --rm theagenthealth/agenthealth:v0.12.0 --help

The same commands work with ghcr.io/theagenthealth/agenthealth:v0.12.0. Use an exact version tag to pin a release; v0 follows stable major-version-0 releases and latest follows the latest stable release.

Install with Helm: save a configuration describing your services as agenthealth.yaml (see the example below), then run against your selected cluster:

helm upgrade --install agenthealth \
  oci://ghcr.io/theagenthealth/charts/agenthealth --version 0.12.0 \
  --namespace agenthealth --create-namespace \
  --set-file config=./agenthealth.yaml

See the installation guide for checksums and signed provenance, and the Kubernetes guide for workload modes. The Python SDK is implemented in source for v0.13.2; PyPI publication is pending. JavaScript/npm remains planned. Official APT/YUM repositories are also planned; DEB/RPM downloads are available today.

60-second example

Run a passive HTTP check against an endpoint you control:

./agenthealth version
./agenthealth ping http http://localhost:8080/health

For a configuration file, save this as agenthealth.yaml:

version: v1
targets:
  - name: local-api
    type: http
    endpoint: http://localhost:8080/health
    checks:
      - reachability
      - protocol
./agenthealth check agenthealth.yaml --format json
./agenthealth doctor agenthealth.yaml

A reachable endpoint returning HTTP 200 should produce HEALTHY and exit code 0; an unavailable endpoint produces UNREACHABLE and exit code 3. See CLI usage for all statuses and exit codes.

Configuration is trusted executable input. Review commands, endpoints, credential references, and token-file paths before running a configuration. See the security boundary.

Supported capabilities

Target Available evidence Limits
HTTP/API Connectivity, status, headers, bearer authentication; opt-in GET body matching HEAD remains the released passive default; explicit GET selection is now implemented in source
MCP HTTP/stdio, protocol negotiation, inventory expectations, OAuth, opt-in safe tool probes Configured stdio commands execute trusted code; supported protocol revisions are explicit
A2A 1.0 JSON-RPC and explicit 0.3.0 compatibility, card/skill expectations, safe task probes No generic framework integration, gRPC or streaming task execution
Agent/multi-agent Application health document and explicit safe-task contract Application integration is required; see reference middleware
Gateway Gateway HTTP health signals and configured dependency/path evidence No product discovery or independently verified Agentgateway interoperability
Router Router HTTP health signals and configured dependency/path evidence No route-table validation or decision verification
Dependency graph Shared node evidence, critical/optional edges and budgets Graph configuration is trusted; large graphs need resource planning
AHP Experimental snapshot serving, readiness/liveness and protected detailed evidence Shared bearer scope; HTTPS and request limits belong at the deployment boundary

Project status

AgentHealth is pre-1.0. Published software is v0.12.0; changes described as implemented in source require a newer build. Planned target vocabulary is not an availability guarantee. Capability status is generated from one machine-readable source.

Run the CLI

ping checks one endpoint, check executes configuration, and doctor shows dimension-level evidence. Use --format json or --format yaml for automation. The CLI guide defines flags and the exit-code contract defines statuses. Serving stays alive when monitored targets become unhealthy.

Security principles

Treat configuration as trusted executable input. Review MCP commands, endpoints, credential references and OAuth paths. TLS verification and redirect refusal are mandatory in the supplied engine. Active probes need explicit authorization. Redaction suppresses known credentials and raw diagnostic material; it cannot identify every unknown or transformed secret. See SECURITY.md and the threat model.

Limitations

In-process adapters are trusted code. A timed-out adapter can continue running and retain a concurrency slot; enough stuck calls can exhaust capacity. Third-party adapters need future out-of-process isolation. A shared process is not safe for mutually untrusted tenant configurations.

Health declarations and safe-task results are target-provided evidence, not independent proof of agent correctness. Gateway/router HTTP signals do not establish real product interoperability. Official MCP/A2A SDK CI runs controlled servers; broader frameworks/products remain validation work.

AHP reads a fixed configuration and serves snapshots; clients do not submit commands or trigger checks. Detailed routes require a token, public routes still disclose status, and authorized readers see topology. Remote deployment requires HTTPS, ingress restrictions and rate limits. Kubernetes needs CNI-enforced egress rules for the destinations in your reviewed configuration.

Application integration

The agent adapter requires a specific read-only health document and an optional bounded safe-task handler. Start with reference middleware for Go, FastAPI, Express and LangGraph. These examples are application integration helpers; the Python SDK provides typed CLI access. JavaScript/npm remains planned.

Specification — Protocol — Implementation

The specification defines health states, configuration, results and adapter contracts. AHP defines the experimental serving binding. Core and adapter guides describe the reference implementation and its bounds.

Documentation

Contributing

Follow CONTRIBUTING.md, GOVERNANCE.md and the release policy. Security reports belong in private vulnerability reporting as described by SECURITY.md. New behavior must keep Go validation, schemas, fixtures and documented contracts aligned.

Passive GET in source builds

Released HTTP/API checks use HEAD. For a read-only endpoint that returns 405 or 501 to HEAD, the updated source accepts an explicit method. Old binaries reject this field; omission preserves existing behavior.

version: v1
targets:
  - name: get-only-api
    type: http
    endpoint: http://localhost:8080/health
    checks: [reachability, protocol]
    http:
      method: GET

Passive GET checks status and headers without body matching. Body inspection still requires an explicit functional check. The engine does not silently retry HEAD as GET or follow redirects. Only configure GET against a read-only handler.

Development validation

Use Go 1.23 or newer and install the Python test requirements. CI runs race tests, coverage gating, schema validation, documentation checks and protocol suites. Reference application handlers have separate FastAPI/LangGraph and Express tests.

go test -race ./...
python3 -m pytest tests -q -ra
python3 scripts/generate_status.py --check

See stabilization for fuzzing, graph profiles, real-product smokes, Kubernetes versions and compatibility checks. Passing one suite does not establish every planned integration; consult its exact scope and limitations.

Directories

Path Synopsis
adapters
a2a
Package a2a implements bounded A2A 1.0 and 0.3.0 JSON-RPC health validation.
Package a2a implements bounded A2A 1.0 and 0.3.0 JSON-RPC health validation.
agent
Package agent implements a framework-neutral, bounded agent health interface.
Package agent implements a framework-neutral, bounded agent health interface.
gateway
Package gateway implements read-only Agentgateway HTTP health signals.
Package gateway implements read-only Agentgateway HTTP health signals.
http
Package http implements passive HTTP readiness and opt-in response matching.
Package http implements passive HTTP readiness and opt-in response matching.
mcp
Package mcp implements bounded, session-isolated Streamable HTTP health checks.
Package mcp implements bounded, session-isolated Streamable HTTP health checks.
router
Package router implements read-only HTTP health signals for agent routers.
Package router implements read-only HTTP health signals for agent routers.
cmd
agenthealth command
Package core implements the shared Agent Health Specification model.
Package core implements the shared Agent Health Specification model.
examples
core-check command
This example exercises Phase 2 without implementing the Phase 3 CLI.
This example exercises Phase 2 without implementing the Phase 3 CLI.
reference/go
Package agenthealthref provides a reference application contract, not an SDK.
Package agenthealthref provides a reference application contract, not an SDK.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL