Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 31 additions & 15 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,39 +15,55 @@ contribution unmergeable no matter how good it is.

## Getting set up

Public v0.1 is the engine-first CLI (`heph`). `web/` exists on `main`;
`heph serve --web` is the optional operator workspace. MCP is optional and not
required.

```console
$ git clone https://github.com/autonome-research/hephaestus && cd hephaestus
$ uv sync --dev # Python workspace
$ pnpm --dir agent install --frozen-lockfile # the TypeScript agent
$ pnpm --dir web install --frozen-lockfile # the web workspace client
$ uv sync --dev # Python workspace — this is the install
$ uv run heph --version
```

Python is driven with `uv run …`; the two Node packages with
`pnpm --dir agent …` and `pnpm --dir web …`. They are separate packages with
The TypeScript agent and the web operator chrome are separate packages with
separate lockfiles, not members of one root workspace (`repo_conventions.md`,
"Stage 4 `web/` accepted versions").
Running the engine tests needs bubblewrap on Linux x86_64 — see
[docs/install.md](docs/install.md) for what each capability requires and what
fails closed without it.

Gate G4's browser suite has two extra prerequisites, both once per machine:
"Stage 4 `web/` accepted versions"). Install them when you are changing those
trees or running their checks. Running the engine tests needs bubblewrap on
Linux x86_64 — see [docs/install.md](docs/install.md) for what each capability
requires and what fails closed without it.

```console
$ pnpm --dir web exec playwright install chromium
$ pnpm --dir web build # `heph serve --web` serves web/dist at /
$ pnpm --dir web test:e2e # the Gate G4 command; see web/e2e/README.md
$ pnpm --dir agent install --frozen-lockfile # the TypeScript agent
```

Python is driven with `uv run …`; the two Node packages with
`pnpm --dir agent …` and `pnpm --dir web …`.

Default local checks (engine / CLI; no `web/` required):

```console
$ uv run ruff check . && uv run ruff format --check .
$ uv run pyright opstore core server
$ uv run pytest -m "not slow" # add -m slow for the wheel lanes
$ pnpm --dir agent typecheck && pnpm --dir agent test
$ pnpm --dir web typecheck && pnpm --dir web lint && pnpm --dir web test
$ uv run python scripts/docs_check.py # links, paths, and §refs
$ uv run python scripts/license_headers.py --check
```

### Optional: operator workspace (`heph serve --web`)

`web/` is in-tree on `main`. It is optional operator chrome, not the agent
core. Install and test it when you are changing that tree, running Gate G4, or
serving the workspace client (`heph serve --web` serves `web/dist` at `/`).

```console
$ pnpm --dir web install --frozen-lockfile # the web workspace client
$ pnpm --dir web exec playwright install chromium
$ pnpm --dir web build # `heph serve --web` serves web/dist at /
$ pnpm --dir web typecheck && pnpm --dir web lint && pnpm --dir web test
$ pnpm --dir web test:e2e # the Gate G4 command; see web/e2e/README.md
```

## The clean-room boundary

This project derives from **observed behavior** of a commercial product — screen
Expand Down
7 changes: 6 additions & 1 deletion PACKAGING.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ Artifacts (`dist/`, gitignored):
| `opstore-0.1.0-py3-none-any.whl` | ~38 KB | internal WAL/op store |
| `hephaestus_bench-0.1.0-py3-none-any.whl` | ~94 KB | evaluation only, behind the `bench` extra |

Install: `pip install hephaestus-cad` (add `[bench]` for the Tier 3 harness).
There is **no published wheel** and **no GitHub Release**. Users install from a
clone (`uv sync --dev`; see `docs/install.md`). A `git+…#subdirectory=…`
install cannot build `hephaestus-server`: the sidecar is gitignored and
`server/hatch_build.py` refuses a non-editable wheel without it. Document that
path only after wheels with `_sidecar/` exist. The table above is what a
successful local `uv build` produces, not what anyone can `pip install` today.

## Why the sidecar is bundled, not vendored

Expand Down
59 changes: 44 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ SPDX-License-Identifier: Apache-2.0
**An open agentic CAD harness.** Hephaestus pairs a language model with a real
parametric solid-modeling kernel (build123d / OpenCascade), a grounded
visual-feedback loop, and a persistent geometric verification layer, so that an
agent can design, inspect, iterate on, and export manufacturable parts — from a
terminal, from any MCP client, or from a web workspace.
agent can design, inspect, iterate on, and export manufacturable parts from a
terminal. The web UI is optional operator chrome. MCP is optional.

Hephaestus is an Autonome Research Labs project, licensed Apache-2.0.

Expand All @@ -28,16 +28,17 @@ Hephaestus inverts each of those decisions:
| Axis | Closed products | Hephaestus |
|---|---|---|
| Model | Locked to a house model | API and local-model endpoints compatibility-tested through the pinned Pi runtime; the benchmark corpus measures which are good at CAD |
| Surface | Browser-only webapp | Engine-first: CLI and MCP server are the product; the web UI is a client |
| Surface | Browser-only webapp | Engine-first: the CLI is the agent core; the web UI is optional operator chrome (`heph serve --web`); MCP is optional |
| Versioning | Opaque `v1*` badge | Plain files in git; branches, PRs, blame, CI |
| Verification | Transient, in-loop only | Persistent geometric spec tests re-run on every build |
| Skills / parts / materials | Closed catalogs | Open, versioned, community-contributed registries |
| Provenance | Implicit | Source maps: every solid and face traceable to the statement that made it |

The load-bearing consequence of "engine-first": because the core loop is
exposed over MCP, *any* agent environment — Claude Code, a droid fleet, a CI
pipeline — gains CAD capability without touching a browser. The web UI is one
client among several, not the product.
The load-bearing consequence of "engine-first": the agent core is the CLI and
the headless engine. A CI pipeline, a local shell, or any agent that can run
`heph` gains CAD capability without a browser and without MCP. The web UI is
optional operator chrome — one way to look at a project — not the product.
`heph serve --mcp` is there if you want it; nothing requires it.

## What already works about the approach

Expand Down Expand Up @@ -93,7 +94,7 @@ hephaestus/
├── core/ Python: CAD executor, kernel, render, checks + opstore adapters
├── agent/ TypeScript: Pi SDK runtime + thread-phase workflows
├── server/ Python: MCP/HTTP API + Node agent bridge
├── web/ TypeScript: React + three.js client
├── web/ TypeScript: React + three.js operator chrome (`heph serve --web`)
├── registries/ skills/, parts/, materials/, dfm/
└── corpus/ golden prompts + expected assertions
```
Expand All @@ -103,10 +104,16 @@ hephaestus/
Under active construction, engine-first. Stages S through 3 are complete with
green gates (durability substrate, CAD engine, render service, agent runtime,
MCP server); the validation ladder (Stage 2V) and manufacturing depth (Stage 6)
follow, then a **headless v0.1 release** — wheel, `heph` CLI, MCP server and
packaged agent sidecar, no browser dependency — before any web UI work begins
(`mission_plan.md`, 2026-07-26 ordering amendment). Everything built so far is
headless and deployable into any MCP client today.
continue.

Public v0.1 is the **engine-first CLI**: `heph` is the agent core. `web/` exists
on `main` as optional operator chrome — `heph serve --web` is the operator
workspace. MCP (`heph serve --mcp`) is optional and not required to use the
engine.

There is **no PyPI package** and **no GitHub Release**. Tag `v0.1.0-headless`
is a historical headless cut; it has no `web/` and is not an install path.
Install from a clone of this repository ([Install](#install)).

Originally documented as: pre-implementation. `mission_plan.md` is the operative document: a
staged droid mission in which every stage gates on machine-checkable evidence
Expand All @@ -115,7 +122,29 @@ Playwright/computer-use screenshot assertions, and benchmark success rates).
The agent layer embeds Pi for individual sessions and uses thread-phase only
for deterministic multi-session workflows; the Python CAD engine remains
independent. The Python CAD CLI works without Node on every supported Python
platform. v0.1 agent/server script execution requires either native Linux
bubblewrap isolation or a capability-tested Docker/Podman/OrbStack-compatible
OCI backend (including on macOS); it fails closed when neither is available.
platform. In v0.1, script execution is supported on Linux x86_64 with probed
bubblewrap isolation. On macOS, script execution refuses by design; a
capability-tested Docker/Podman/OrbStack-compatible OCI backend is post-v0.1.
Everything that does not execute part scripts (`heph lint`, schema/contract
reads, `heph --version`) works on macOS today. Script execution fails closed
anywhere else.
No stage advances on human vibes.

## Install

Hephaestus is **not on PyPI**. There is no GitHub Release. `pip install
hephaestus-cad` 404s. Do not install from a `git+…#subdirectory=…` URL — the
agent sidecar is gitignored build output, and `server/hatch_build.py` refuses a
non-editable `hephaestus-server` wheel without it.

Install from a clone:

```console
$ git clone https://github.com/autonome-research/hephaestus && cd hephaestus
$ uv sync --dev
$ uv run heph --version
```

Python 3.11 through 3.14. Capability tiers (engine vs sandbox vs agent/Node)
and the optional operator workspace: [docs/install.md](docs/install.md).
Contributor checks: [CONTRIBUTING.md](CONTRIBUTING.md).
15 changes: 9 additions & 6 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,24 @@ Copyright 2026 The Hephaestus Authors
SPDX-License-Identifier: Apache-2.0
-->

# Hephaestus documentation (headless)
# Hephaestus documentation

This is the documentation set for **v0.1.0-headless**: the Python wheel, the
`heph` CLI, the MCP server, and the packaged agent sidecar. There is no web UI
in this release and nothing here needs a browser.
This is the documentation set for the engine-first product on `main`: the
`heph` CLI (the agent core), optional MCP, and optional operator chrome
(`heph serve --web`, the `web/` tree). There is no published wheel, no PyPI
package, and no GitHub Release. Tag `v0.1.0-headless` is a historical
engine-first cut and does not include `web/`. Install from a clone —
[install.md](install.md).

These pages are the *user-facing* half of the documentation. The normative
design and mission documents live at the repository root and win any
disagreement; each page below names the ones it distills.

| Page | What it covers |
|---|---|
| [install.md](install.md) | Installing the wheel, what each capability actually requires, and how to verify the install |
| [install.md](install.md) | Installing from a clone (`uv sync --dev`), what each capability actually requires, and how to verify the install |
| [cli.md](cli.md) | Every `heph` verb, with one honest worked example each |
| [mcp.md](mcp.md) | Configuring a stock MCP client against `heph serve --mcp` |
| [mcp.md](mcp.md) | Optional: configuring a stock MCP client against `heph serve --mcp` |
| [conventions.md](conventions.md) | What a Hephaestus project is: layout, part scripts, `PARAMS`/`hc`/`CHECKS`, and what the executor will and will not allow |
| [registry-pinning.md](registry-pinning.md) | Pinning skills/parts/materials/DFM registries by Merkle digest, and what a pin buys you |
| [leaderboard.md](leaderboard.md) | Generated model leaderboard — which models can do CAD here, and the interpretation tax |
Expand Down
19 changes: 10 additions & 9 deletions docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ $ cp -r corpus/public_fixtures/assembly /tmp/demo && cd /tmp/demo
```

`heph` is engine-first: it talks to the CAD engine directly and starts no
server. Verbs are grouped below by what they need, not alphabetically, because
what they need is the thing that surprises people.
server. From a clone, prefix every command with `uv run` (`uv run heph
--version`). Verbs are grouped below by what they need, not alphabetically,
because what they need is the thing that surprises people.

```console
$ heph --version
$ uv run heph --version
heph 0.1.0
```

Expand Down Expand Up @@ -447,9 +448,10 @@ stderr, always.

### `heph serve --web`

Serve the **web workspace API** (`INTERFACE.md` §2) on loopback. Orthogonal to
`--mcp`: neither flag requires the other, and both force the same serve-mode
executor policy, so the web never has an unsandboxed path either.
Serve the **operator workspace** (`INTERFACE.md` §2) on loopback — optional
chrome, not the agent core. Orthogonal to `--mcp`: neither flag requires the
other, and both force the same serve-mode executor policy, so the web never
has an unsandboxed path either. MCP is not required to use this workspace.

```console
$ heph serve --web # 127.0.0.1:8760
Expand Down Expand Up @@ -490,9 +492,8 @@ is a local instrument, not a deployment.

## Evaluation verbs — the `bench` extra only

These appear only when `hephaestus-bench` is installed
(`pipx install 'hephaestus-cad[bench]'`). They are how the numbers in
[leaderboard.md](leaderboard.md) are produced.
These appear when `hephaestus-bench` is installed. `uv sync --dev` includes
it. They are how the numbers in [leaderboard.md](leaderboard.md) are produced.

### `heph bench run`

Expand Down
Loading
Loading