Serialized merge by gitea-merge-queue after current-main, genuine approvals, and required CI checks were green.
The org-native control plane for heterogeneous AI-agent workspaces
Quick start
git clone https://git.moleculesai.app/molecule-ai/molecule-core.git
cd molecule-core
./scripts/dev-start.sh
Open http://localhost:3000. See the quick-start guide for prerequisites, manual startup, first-run configuration, and troubleshooting.
OpenAI Codex & GPT-5.6
Codex is both a product surface and a build tool for EnterOS:
- Codex as a first-class agent runtime. The
codexworkspace template wraps Codex CLI (@openai/codex) as an EnterOS workspace runtime: each tenant session holds a long-livedcodex app-serverchild bound to one thread, so agent-to-agent messages process in order with full conversation continuity. Provisioning a Codex workspace is a singleprovision_workspacecall from the platform agent — the same runtime-contract SDK drives Codex and five other runtimes identically. - GPT-5.x model routing. A provider registry in the template's
config.yamlroutes auth via a ChatGPT/Codex subscription (CODEX_AUTH_JSON), a directOPENAI_API_KEY, or any endpoint speaking the OpenAI Responses API; GPT-5-family models are selectable per workspace. - Codex in the build loop. During OpenAI Build Week (Jul 13–21, 2026), Codex CLI sessions running GPT-5.6-codex were used to implement and review changes shipped to this repository; our CI/merge pipeline (all-green status gate plus reviewer approval) applied to that agent-authored work the same as to any human contribution.
The canonical public mirror of this repository is github.com/EnterOS-AI/enteros-core.
What this repository owns
molecule-core contains the tenant workspace server and Canvas. Together they
provide:
- authenticated workspace lifecycle and backend dispatch;
- a
parent_idorganization hierarchy used for peer discovery and communication authorization; - registry, heartbeat, Agent Card, A2A proxy, poll-delivery, activity, and approval surfaces;
- scoped agent memory and key/value workspace-memory APIs;
- encrypted secrets, files, terminal, templates, bundles, schedules, and operational views; and
- live Canvas updates through WebSocket fanout.
A workspace is a durable organizational role, not a task node. Teams are composed by creating or reparenting workspace rows. Canvas's Expand Team View and Collapse Team View controls only show or hide existing descendants; they do not provision or delete workspaces.
Runtime boundary
Agent execution lives in the maintained workspace-runtime and workspace-template repositories. Core stores and forwards supported configuration, supplies authenticated platform and hierarchy context, and dispatches lifecycle work to the configured backend.
manifest.json is the checked-in source of truth for the
template and plugin repositories Core currently offers. Every entry is pinned to
an immutable commit. Do not copy a fixed runtime count or a mutable main ref
into documentation; inspect the manifest and the runtime-owned parser instead.
The retired shared_context parent-file injection model and destructive team
expand/collapse routes are not current runtime contracts.
Architecture at a glance
Canvas (Next.js) <-- HTTP / WebSocket --> Workspace server (Go / Gin)
| |
Postgres Redis
|
configured lifecycle backend
|
pinned workspace-template image
|
workspace runtime / agent
- Postgres domain tables are authoritative for durable current state.
- Redis supports liveness, cache, and fanout; it is not the workspace source of truth.
structure_eventsis append-only selected lifecycle history, not a complete event source.- Local and control-plane provisioning are implementations behind shared dispatchers. Tier does not select a cloud vendor.
- Deployment topology is environment-specific. This repository does not promise a universal EC2, Railway, Render, ECR, Neon, or co-location shape.
See the current technical reference for the code-backed boundaries and source files.
Repository layout
| Path | Purpose |
|---|---|
workspace-server/ |
Go APIs, auth, lifecycle, registry, hierarchy, A2A, memory, bundles, and backend dispatch |
canvas/ |
Next.js operational UI |
workspace-server/migrations/ |
Durable schema |
.gitea/workflows/ |
Active CI, release, and deployment automation |
manifest.json |
Immutable template/plugin catalog |
docs/ |
Focused architecture, protocol, development, and runbook references |
Deployment and verification
Canonical SCM and automation are on
git.moleculesai.app.
Changes ship through the active Gitea Actions workflows after normal review and
merge; there is no documented operator-host or one-click Railway/Render deploy
path.
A merged PR is not, by itself, proof that a user-visible environment is current. Verify the exact commit's terminal workflow results and the relevant staging or runtime health surface.
Documentation map
- Docs home
- Quick start
- Core technical reference
- Platform API
- Communication rules
- Registry and heartbeat
- Event log
- Runtime config boundary
- Canvas
- Local development
License
Business Source License 1.1, copyright © 2025 Molecule AI. The license converts to Apache 2.0 on January 1, 2029; see the license text for the complete terms.
