Agentic Framework for Orchestrated Runtime, Governance, and Execution
Project description
Hyperforge
Hyperforge is an Agentic Framework for Orchestrated Runtime, Governance, and Execution — the core runtime powering AI agent workflows at Nuclia. It provides the infrastructure for defining, deploying, and running agentic pipelines backed by NucliaDB for memory and retrieval, Redis/Valkey for pub/sub and session state, PostgreSQL for persistence, and a FastAPI HTTP/WebSocket API surface.
Architecture Overview
hyperforge/
├── api/ # FastAPI application, REST + WebSocket endpoints, OAuth
├── broker/ # Pub/sub backends (Redis, local)
├── context/ # Execution context passed through agent runs
├── db/ # SQLAlchemy models and Alembic migrations
├── memory/ # Session memory backed by NucliaDB
├── retrieval/ # Retrieval agent and config
├── server/ # Long-running server process
├── standalone/ # Single-process standalone mode
├── agent.py # Base Agent and AgentConfig abstractions
├── engine.py # Initialization and state wiring
├── manager.py # Agent lifecycle manager
├── workflows.py # Workflow data models
└── settings.py # Pydantic settings (env-driven)
Key components:
- Agent / AgentConfig — abstract base classes for building typed, configurable agents
- Engine — initializes agent state, loads external modules, wires LLM connections and memory
- Manager — handles agent lifecycle within a session
- Memory — session-scoped memory stored in NucliaDB (
SessionMemory,QuestionMemory) - Broker — pub/sub layer (Redis or in-process) for streaming workflow events
- API — FastAPI app exposing REST and WebSocket endpoints for agents, workflows, sessions, MCP, and OAuth
- Workflows — structured workflow definitions with parameters, rules, and required fields
Install
From the workspace root:
uv sync
Running
API server
uv run hyperforge-api
Other entry points
| Command | Description |
|---|---|
hyperforge-api |
Main HTTP API server |
hyperforge-server |
Background server process |
hyperforge-sandbox |
Sandbox execution environment |
hyperforge-standalone |
All-in-one single-process mode |
hyperforge-downloads-cronjob |
Downloads cleanup cron job |
hyperforge-workflows-cleanup-cronjob |
Stale workflow cleanup cron job |
hyperforge-extract-openapi |
Extract OpenAPI schema to file |
Health and observability endpoints
GET /health/ready— readiness probeGET /health/alive— liveness probeGET /metrics— Prometheus metrics
Configuration
All settings are provided through environment variables consumed by Pydantic BaseSettings.
| Variable | Description |
|---|---|
HTTP_HOST |
Bind host (default 0.0.0.0) |
HTTP_PORT |
Bind port (default 8080) |
MEMORY_READER_NUCLIADB |
NucliaDB read endpoint |
MEMORY_WRITER_NUCLIADB |
NucliaDB write endpoint |
MEMORY_SEARCH_NUCLIADB |
NucliaDB search endpoint |
MEMORY_APIKEY_NUCLIADB |
NucliaDB API key |
VALKEY_URL |
Redis/Valkey connection URL |
LOAD_MODULES |
Comma-separated list of agent package modules to load at startup |
NUCLIA_ZONE |
Nuclia zone (default arag) |
NUCLIA_PUBLIC_URL |
Public Nuclia URL template (default https://{zone}.nuclia.com) |
Loading Agent Packages
Hyperforge supports dynamically loading external agent packages at startup. Set the LOAD_MODULES environment variable to a comma-separated list of Python module names. Each module is scanned for agent and configuration definitions and registered in the global registry.
LOAD_MODULES=hyperforge_rephrase,my_custom_agent uv run hyperforge-api
Development
Run tests from the workspace root:
uv run pytest hyperforge
Run a specific test file:
uv run pytest hyperforge/tests/test_engine.py
Format and lint:
make fmt
make lint
License
Apache 2.0 — see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hyperforge-1.0.0.post48.tar.gz.
File metadata
- Download URL: hyperforge-1.0.0.post48.tar.gz
- Upload date:
- Size: 242.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e7b880a79487b00ff3f051cdb6df6fd54de4915b679411e37a8222ced750f00
|
|
| MD5 |
ca2264d0f1764f43a28384ba9538c90c
|
|
| BLAKE2b-256 |
e2ae600e37c471d07f417c0689301524331b00f992c45fc75e6068f04bfea9e7
|
Provenance
The following attestation bundles were made for hyperforge-1.0.0.post48.tar.gz:
Publisher:
hyperforge_workflow.yaml on nuclia/hyperforge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hyperforge-1.0.0.post48.tar.gz -
Subject digest:
8e7b880a79487b00ff3f051cdb6df6fd54de4915b679411e37a8222ced750f00 - Sigstore transparency entry: 1754848671
- Sigstore integration time:
-
Permalink:
nuclia/hyperforge@7afe7ded2e48b175da6837f7b67aa8ef5a8b57c5 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/nuclia
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
hyperforge_workflow.yaml@7afe7ded2e48b175da6837f7b67aa8ef5a8b57c5 -
Trigger Event:
push
-
Statement type:
File details
Details for the file hyperforge-1.0.0.post48-py3-none-any.whl.
File metadata
- Download URL: hyperforge-1.0.0.post48-py3-none-any.whl
- Upload date:
- Size: 278.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb95fe4a911163d42593aedcbca15920ba0a9f5054309909201246482955ec9e
|
|
| MD5 |
4601e6fc8b5c90db42db47cdf69dbe20
|
|
| BLAKE2b-256 |
6438334e56c7008452f5a7a8e169a4939cabe9252ec96ce0d7ebc7c78dc10d51
|
Provenance
The following attestation bundles were made for hyperforge-1.0.0.post48-py3-none-any.whl:
Publisher:
hyperforge_workflow.yaml on nuclia/hyperforge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hyperforge-1.0.0.post48-py3-none-any.whl -
Subject digest:
fb95fe4a911163d42593aedcbca15920ba0a9f5054309909201246482955ec9e - Sigstore transparency entry: 1754848676
- Sigstore integration time:
-
Permalink:
nuclia/hyperforge@7afe7ded2e48b175da6837f7b67aa8ef5a8b57c5 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/nuclia
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
hyperforge_workflow.yaml@7afe7ded2e48b175da6837f7b67aa8ef5a8b57c5 -
Trigger Event:
push
-
Statement type: