Skip to content

Repository files navigation

AlphaCore

Shared execution runtime, sandboxed tools, storage, and interfaces for the Alpha ecosystem.

Capabilities · Ecosystem · Applications · Installation · Documentation · License

English | 中文

AlphaCore provides the shared execution foundations behind AlphaApollo, AlphaDiana, and AlphaHebe. It unifies model adapters, sandboxed tool execution, scoped memory, environment contracts, content-addressed storage, and optional CLI, Workbench, and inference-serving interfaces into modular Python packages.

Shared foundations

Capability What AlphaCore provides Contracts & entry points
Model generation & inference Unified API for OpenAI-compatible endpoints, Codex, and verl, plus batched Hugging Face inference and OpenPI connections for vision-language-action models. Generation contract · Hugging Face runtime
Tools & sandboxed execution Built-in Bash and file tools across local, Docker, and rootless Podman sandboxes with bounded output, cancellation, and owned-process cleanup. Execution contract · Bash executor
Memory Scoped retrieval of claims, results, and failures within a run, plus optional persistent memory across runs of the same task. Memory contract
Environments Typed robotics actions and observations for MuJoCo scenes and remote robot backends, plus shared lifecycle contracts for tool environments and Biology records. Environment contracts
Storage & evidence Content-addressed artifact storage, atomic run-state writes, workspace and SQLite snapshots, and native workspace client support for AlphaDiana. Storage contract · Artifact store · Workspace capabilities
Identity & access Scoped workspace permissions, configured outbound HTTP event delivery, and installed-package verification against wheel RECORD manifests. Workspace access · Package identity · HTTP callouts

How it fits together

AlphaCore is one of four packages in the Alpha ecosystem. Each downstream system builds on AlphaCore's contracts and supplies its own workload policy.

Package Role Needed for
AlphaCore (this repository) Model adapters, sandboxed tool execution, memory, storage, environment contracts, CLI (alphacore-cli), Workbench (alphacore-gui, alphacore-tui), and serving (alphacore-serving). Every run.
AlphaApollo Deep agentic reasoning workflows, native and external agent loops (such as Pi Coding Agent and Codex), verifiers, domain tools, and run records across Math, Software, Biology, and Robotics. Solving tasks and running agent workflows.
AlphaDiana Benchmark datasets, authoritative graders, and trajectory or component analysis. Private reference answers stay on the grading side. Scored benchmark evaluations.
AlphaHebe Harness search (prompt and workflow optimization) and model training. Improving a harness or a model.

See public interfaces for cross-package boundaries.

Applications and serving

Each user interface and the shared inference gateway ship as a separate package. Install only the interfaces you need and follow their guides to configure backends.

Use case Package Commands & guide
Run workflows, score benchmarks, or optimize harnesses from the shell alphacore-cli alpha-workflow, alpha-eval, alpha-optimize
Launch tasks or browse evaluations in a browser alphacore-gui alpha-workbench, alpha-evaluation-dashboard
Use the workbench from a terminal alphacore-tui alpha-tui
Serve shared model inference over HTTP with admission and draining alphacore-serving python -m alphacore_serving serve --config gateway.json

Use qpool to inspect serving replicas or request capacity (qpool command reference).

Installation

AlphaCore uses Conda with Python 3.10+ (3.12 shown below). Create a Conda environment and install the base library from a checkout:

conda create -n alphacore python=3.12 pip -y
conda activate alphacore

git clone https://github.com/tmlr-group/AlphaCore.git
cd AlphaCore
python -m pip install --upgrade pip
python -m pip install -e .

Install optional extras (such as memory, execution, records, generation, robotics, or bio) or companion interface packages as needed:

python -m pip install -e ".[memory,records]"
python -m pip install -e alphacore/interfaces/cli

See INSTALL.md and the installation profiles guide for full extra combinations, browser/terminal workbenches, and serving setup.

Repository layout

.
├── alphacore/
│   ├── generation/          Model adapters and Hugging Face inference
│   ├── execution/           Tools, processes, sandboxes, and working directories
│   ├── workspace_client/    AlphaDiana workspace HTTP client and MCP tools
│   ├── security/            Account permissions and installed-package verification
│   ├── model_content/       Model content limits and answer extraction
│   ├── storage/             Files, leases, digests, and SQLite snapshots
│   ├── http_targets/        Configured event and object delivery destinations
│   ├── environments/        Shared environment contracts
│   ├── memory/              Scoped retrieval and persistence
│   ├── artifacts/           Content-addressed types and storage for run outputs
│   ├── interfaces/          Separate CLI, GUI, and TUI packages
│   ├── serving/             Separate HTTP inference gateway package
│   ├── readonly_mapping.py  Deeply read-only mappings
│   ├── stable_json.py       Deterministic JSON serialization and digests
│   └── trace_encoding.py    OpenTelemetry span and batch encoding
├── docs/                    Guides and boundary contracts
├── scripts/                 Wheel validation checks
├── tests/                   Foundation test suite
└── pyproject.toml           Package metadata, dependencies, and extras

See module locations and compatibility for public import paths.

Development and validation

Run the foundation test and lint suite from an active environment in a full Git checkout:

python -m pip install -e ".[dev]"
python -m pytest tests -q -ra
ruff check alphacore tests scripts
ruff format --check alphacore tests scripts

Application tests live alongside each package under alphacore/interfaces/ and alphacore/serving/. See wheel validation and the skills guide for shared development workflows in .agents/skills/.

Documentation

License

AlphaCore is released under the Apache 2.0 license. Third-party attributions are in NOTICE.txt.