spaex — reproducible coding harnesses for any repo and development environment
Status: 4.0.0.dev0 (v4 vocabulary landed as part of Spec 014, first PyPI release upcoming). Portmanteau of spec and haex. See docs/adr/0011-rename-to-spaex.md for the rename decision and specs/014-rename-to-spaex/ for the full spec.
What it is
spaex composes a coding harness for a single repo out of reusable pieces (skills, MCPs, constitutions, slash commands, dev-environment files, collectively "molecules"). You declare which molecules you want in .spaex.json. spaex install writes them into .claude/, .codex/, .spaex/, and any other participating roots deterministically, pinned by SHA. Two consecutive spaex install runs on unchanged inputs produce byte-identical output.
What you can do today
spaex add <source-url> <molecule-ids...>: adopt one or more molecules from a publisher repo into.spaex.jsonand install them in one invocation.spaex remove <molecule-ids...>: retract one or more molecules from.spaex.jsonand re-run install (files that only the retracted molecule contributed are deleted).spaex install: publish adopted molecules atomically into their participating roots. Writes.spaex/install.lock.spaex migrate: read v1/v2/v3 legacy manifests (.haex-hive.json,manifest.json) and emit v4.migratedsidecar proposals with adoption instructions.spaex constitution show: print the effective constitution to stdout, assembled from adopted molecules perinstall.lock.
Atom-category conventions
The v4 molecule-manifest schema treats atoms{} as an open Dict[str, List[str]] map. Publishers pick category names by convention. Common categories today: constitution, slash_commands, agents, mcps.
Environment-config files (flake.nix, Dockerfile, devcontainer.json, .envrc, shell.nix, etc.) can be declared under any category name a publisher chooses. Spec 014 makes no naming commitment here; multi-environment vocabulary (dev/staging/prod), consumer-side selection, and orchestration verbs are the scope of Spec 015 (planned; see docs/plans/2026-09-07-slot-015-multi-environment-placeholder.md).
Install
Once published to PyPI (upcoming with the v4.0.0 tag):
pipx install spaex
From a local checkout (development):
git clone https://github.com/haexmas/haex-hive.git
cd haex-hive
pip install -e '.[dev]'
Requires Python 3.10+ and Git 2.30+ on $PATH. Only runtime dependency is jsonschema.
Migrating from haex-hive v3
If your project has a .haex-hive.json with haex_hive_version: "3":
pipx install spaex
cd /path/to/your/project
spaex migrate
spaex migrate walks the repo and writes .migrated siblings for every v3 (or v1/v2) manifest it finds:
.haex-hive.json(v1/v2/v3) →.spaex.json.migrated- publisher-root
manifest.json→manifest.json.migrated - per-molecule
manifest.json→manifest.json.migrated
Review the printed diffs. When satisfied, adopt each proposal:
# consumer
mv .spaex.json.migrated .spaex.json
rm .haex-hive.json
# publisher-root and each molecule
mv path/to/manifest.json.migrated path/to/manifest.json
# runtime output (safe to delete; regenerated by install)
rm -rf .haex-hive/
spaex install
After spaex install completes, .spaex/install.lock is present and byte-identical across two consecutive runs.
The v4 vocabulary at a glance
- Compound (
.spaex.json.compounds[]): a(source, revision)pair with a list of adoptedmolecules[]. The consumer's allowlist. - Molecule: a published, reverse-DNS-identified bundle that a publisher declares in its root
manifest.jsonundermolecules{}. - Atom: a single delivered file, grouped under a category key in a molecule's
manifest.jsonatoms{}map.
This vocabulary (compounds -> molecules -> atoms) was introduced by Spec 013 and is unchanged in v4. The v4 delta is limited to two field-name renames: haex_hive_version -> spaex_version (value "3" -> "4") and haex_hive_min_version -> spaex_min_version.
Multi-device delegation
Not part of spaex. That is a separate project: holzi (Nostr + iroh + MCP agent plane, single-user first). spaex is deliberately scoped to one repo, one device.
Environment variable
spaex honors $SPAEX_STATE for the per-invocation state directory (publisher clones, migration proposals). Unset falls back to ~/.local/share/spaex/.
Documentation
- Every spec under specs/ is authoritative for the mechanism it introduces.
- Design plans under docs/plans/ capture pre-spec requirements.
- Architecture Decision Records under docs/adr/ record decisions that reshape the system.
- The constitution at .specify/memory/constitution.md is the non-negotiable invariant set every spec, plan, and implementation MUST respect.
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 spaex-4.0.0.tar.gz.
File metadata
- Download URL: spaex-4.0.0.tar.gz
- Upload date:
- Size: 66.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
608ab06c2cbd31cb3b7cee1c83ace45fa0dd44f6c9473ae5b3fa344073d58182
|
|
| MD5 |
3b7aabe10b76edb27a6e58b918aadb64
|
|
| BLAKE2b-256 |
ec43661546b2936d48ee5ff8b116bc6d7bb7c6bd089c49d362ab432388e2e100
|
Provenance
The following attestation bundles were made for spaex-4.0.0.tar.gz:
Publisher:
release.yml on haexmas/spaex
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spaex-4.0.0.tar.gz -
Subject digest:
608ab06c2cbd31cb3b7cee1c83ace45fa0dd44f6c9473ae5b3fa344073d58182 - Sigstore transparency entry: 2753057629
- Sigstore integration time:
-
Permalink:
haexmas/spaex@fc6937539f235e969ae588d579b9e14ba7852f73 -
Branch / Tag:
refs/tags/v4.0.0 - Owner: https://github.com/haexmas
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@fc6937539f235e969ae588d579b9e14ba7852f73 -
Trigger Event:
push
-
Statement type:
File details
Details for the file spaex-4.0.0-py3-none-any.whl.
File metadata
- Download URL: spaex-4.0.0-py3-none-any.whl
- Upload date:
- Size: 89.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fdd1b8a03b8227b39d58d80f757831e42e8a33d55fa64f45dbde22c871be425
|
|
| MD5 |
57dc60767cc9219c34cac19b8bd30866
|
|
| BLAKE2b-256 |
5b15ec656a426b41d25cd9c15a610b58e56f857a3e0f274bf5b051da5f670ea2
|
Provenance
The following attestation bundles were made for spaex-4.0.0-py3-none-any.whl:
Publisher:
release.yml on haexmas/spaex
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spaex-4.0.0-py3-none-any.whl -
Subject digest:
8fdd1b8a03b8227b39d58d80f757831e42e8a33d55fa64f45dbde22c871be425 - Sigstore transparency entry: 2753057647
- Sigstore integration time:
-
Permalink:
haexmas/spaex@fc6937539f235e969ae588d579b9e14ba7852f73 -
Branch / Tag:
refs/tags/v4.0.0 - Owner: https://github.com/haexmas
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@fc6937539f235e969ae588d579b9e14ba7852f73 -
Trigger Event:
push
-
Statement type: