Skip to main content

Self-healing supervision agent for Linux hosts and Kubernetes.

Project description

Spero

Self-healing supervision agent for Linux hosts and Kubernetes.

Spero watches the things you run — processes, services, disks, workloads — notices when they break, and heals them under policy-governed autonomy. It sits between a single-host tool like Monit and a full Prometheus + Alertmanager + Ansible stack: lightweight, agent-based, cluster-aware, with an AI layer for prediction, root-cause, and policy-gated remediation.

Shipped under Altikva.

Status: pre-alpha, but the spine is complete. Spero supervises and heals Linux hosts (local + asyncssh) and Kubernetes (kubectl) through one engine, with an AI layer for prediction, root-cause, natural-language queries, and agentic (policy-gated) remediation. 91 tests, ruff + mypy clean.

Concepts

Spero is built on four seams so it spans hosts today and Kubernetes next without re-architecting:

Seam Question Examples
Provider where things run local, SSH host, Kubernetes
Probe how you know it is healthy process, systemd, port, disk, pod-ready
Remediation what to do about it restart, respawn, rotate, rollout, scale
Policy the declared intent YAML: target → probe → remediations + autonomy

Remediations carry an autonomy level — suggest, gated, or auto — so low-risk healing happens on its own while high-risk actions wait for a human.

Install

pip install spero            # or: uv pip install spero
pip install "spero[ai]"      # add the Claude-backed AI layer
pip install "spero[k8s]"     # add the Kubernetes provider deps

Quickstart

spero status                       # show targets from policies/example.yaml
spero run                          # run one supervision cycle
spero watch                        # supervise continuously (each target on its interval)
spero watch --ai-approve           # agentic: the model decides gated remediations
spero heal nginx                   # probe one target, walk its remediations interactively
spero ask "what flapped today?"    # natural-language query over the event history
spero serve                        # run the control-plane API on :8800

From source

git clone https://github.com/altikva/spero && cd spero
uv venv && source .venv/bin/activate
uv pip install -e ".[dev]"
pytest                             # run the suite

License

Spero is released under the ALTIKVA Dual License v1.0 (MIT and CC BY-NC-SA 4.0), SPDX MIT AND CC-BY-NC-SA-4.0. See LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spero-0.1.0.tar.gz (262.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spero-0.1.0-py3-none-any.whl (43.1 kB view details)

Uploaded Python 3

File details

Details for the file spero-0.1.0.tar.gz.

File metadata

  • Download URL: spero-0.1.0.tar.gz
  • Upload date:
  • Size: 262.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for spero-0.1.0.tar.gz
Algorithm Hash digest
SHA256 00ccf3e86f2f64560a18ddc7e3f834aa16ae0a41d9ae9bda3bb61c835828bfc6
MD5 c86478ef354d230c9c96318d8d5f505c
BLAKE2b-256 c339111794ace296a3c9097b7d2999c39c08a364c7a49c0875223b7ded0fbfd4

See more details on using hashes here.

Provenance

The following attestation bundles were made for spero-0.1.0.tar.gz:

Publisher: release.yml on altikva/spero

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file spero-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: spero-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 43.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for spero-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1233a63667c6a4bf0528e1b98ee8e511a55c3f065d23ef0a3610aaa583353bbd
MD5 cc0143d98c0884e86389c3ee2dca17e5
BLAKE2b-256 c1a5113ba9a96efff6a7be10a1c326282309c5a0b51bf1b665b1b3191df6bea9

See more details on using hashes here.

Provenance

The following attestation bundles were made for spero-0.1.0-py3-none-any.whl:

Publisher: release.yml on altikva/spero

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page