Autonomous coding control plane for 24/7 AI-assisted execution.
BIOMETRICS is a production-grade control plane for autonomous coding workflows. Built as an OpenCode CLI extension (Codex-first), it provides orchestration, policy enforcement, and operator supervision for 24/7 AI-assisted execution at enterprise scale.
Key Capabilities:
| Feature | Description |
|---|---|
| Autonomous Orchestration | 24/7 supervised and autonomous coding runs with checkpoint/recovery |
| Policy Enforcement | Configurable governance, rate limits, and approval workflows |
| Multi-Agent Support | Parallel agent execution with fallback chains and model routing |
| Observability | Real-time SSE events, WebSocket streaming, and Prometheus metrics |
| Enterprise Ready | OpenAPI specs, JSON Schema contracts, soak validation, release gates |
Why BIOMETRICS?
- Battle-tested architecture: Go backend with TypeScript web UI, designed for production workloads
- Codex-native: Extends OpenCode CLI without forking - your existing Codex workflow stays intact
- Enterprise governance: Policy-as-code, approval workflows, and audit trails built in
- Developer-first: One-command onboarding, rich CLI tooling, comprehensive documentation
# Clone and run
git clone https://github.com/Delqhi/BIOMETRICS.git
cd BIOMETRICS
./biometrics-onboard
# Verify
./bin/biometrics-cli --versionThat's it. Onboarding handles dependencies, builds artifacts, and runs smoke checks.
┌─────────────────────────────────────────────────────────────┐
│ BIOMETRICS Control Plane │
├─────────────────────────────────────────────────────────────┤
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ Web UI │ │ REST API │ │ WebSocket │ │
│ │ (TypeScript)│ │ (Go) │ │ (SSE) │ │
│ └──────┬──────┘ └──────┬──────┘ └──────┬──────┘ │
│ │ │ │ │
│ ┌──────▼────────────────▼────────────────▼──────┐ │
│ │ Orchestration Engine │ │
│ │ (scheduler, runs, tasks, checkpoints) │ │
│ └──────────────────────┬─────────────────────────┘ │
│ │ │
│ ┌──────────────────────▼─────────────────────────┐ │
│ │ OpenCode/Codex Integration │ │
│ │ (policy enforcement, model routing, fallbacks) │ │
│ └─────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────┘
- Codex upstream is the primary coding engine and baseline behavior.
- BIOMETRICS provides overlay capabilities (orchestration, skills, policy, supervision, governance).
- We do not position BIOMETRICS as a replacement coding app fork.
- Primary core baseline (read-only by policy):
third_party/codex-upstream/ - BIOMETRICS overlay runtime entrypoint:
biometrics-cli/cmd/controlplane - BIOMETRICS operator tooling entrypoints:
./biometrics-onboard,./bin/biometrics-skills - Temporary compatibility shim:
biometrics-cli/cmd/biometrics- The shim prints a deprecation notice and forwards to V3 runtime behavior.
git clone <your-biometrics-repo-url> BIOMETRICS
cd BIOMETRICS
./biometrics-onboardAfter first run, onboarding exposes biometrics-onboard in ~/.local/bin (if your PATH includes it), installs missing system/project dependencies, builds artifacts, and runs smoke checks.
Legacy bootstrap entrypoints (./bootstrap.sh, ./scripts/setup.sh) are deprecated wrappers that delegate to ./biometrics-onboard.
Non-interactive/ops modes:
./biometrics-onboard --doctor
./biometrics-onboard --resume
./biometrics-onboard --non-interactive --yesState and report artifacts:
.biometrics/onboard/state.json.biometrics/onboard/report.json.biometrics/onboard/events.jsonlreport.jsonmay includewarnings[]for non-blocking remediation items (for example PATH export hints).
make env
make build
./bin/biometrics-cliBIOMETRICS overlay API default endpoint: http://127.0.0.1:59013
Override bind address explicitly with BIOMETRICS_BIND_ADDR when remote binding is required.
BIOMETRICS ships OpenCode extension assets in-repo (for example .opencode/commands/* and .opencode/plugins/biometrics.ts). You should not need a separate “plugin installer” step for normal operation.
Operational notes:
- Non-interactive execution uses
opencode run(OpenCode>= 1.2.x). - Execution directory resolution is
BIOMETRICS_OPENCODE_DIR→BIOMETRICS_WORKSPACE→ process working directory. - Integration details:
docs/OPENCODE.md. - BIOMETRICS also ships a full OpenCode plugin under
.opencode/plugins/biometrics.ts(toolsbiometrics.*).
One-command launcher (prints the plugin flow, optionally starts opencode):
./scripts/opencode-biometrics.sh
./scripts/opencode-biometrics.sh --startOptional web-v3 dev mode:
cd biometrics-cli/web-v3
pnpm install --frozen-lockfile
pnpm run devPublic website dev mode (Next.js + Nextra):
cd website
pnpm install --frozen-lockfile
pnpm run devBuild web-v3 bundle served by Go runtime:
cd biometrics-cli/web-v3
pnpm install --frozen-lockfile
pnpm run buildPOST /api/v1/runsmodevalues:autonomous(default) orsupervised- Optional run payload fields:
scheduler_mode,max_parallelism,model_preference,fallback_chain,model_id,context_budget,blueprint_profile,blueprint_modules,bootstrap
GET /api/v1/runsGET /api/v1/runs/{run_id}GET /api/v1/runs/{run_id}/tasksGET /api/v1/runs/{run_id}/graphGET /api/v1/runs/{run_id}/attemptsPOST /api/v1/runs/{run_id}/pausePOST /api/v1/runs/{run_id}/resumePOST /api/v1/runs/{run_id}/cancelGET /api/v1/blueprintsGET /api/v1/blueprints/{profile}GET /api/v1/modelsGET /api/v1/agents/backgroundPOST /api/v1/agents/backgroundGET /api/v1/agents/background/{job_id}POST /api/v1/agents/background/{job_id}/cancelGET /api/v1/auth/codex/statusPOST /api/v1/auth/codex/loginPOST /api/v1/auth/codex/logoutGET /api/v1/projectsPOST /api/v1/projects/{project_id}/bootstrapGET /api/v1/fs/tree?path=GET /api/v1/fs/file?path=GET /api/v1/events(SSE)GET /api/v1/ws(WebSocket)GET /health/readyGET /metrics
OpenAPI: docs/api/openapi-v3-controlplane.yaml
Readiness payload fields include:
opencode_availablecodex_auth_readyprovider_statusonboard_last_status(optional)
docs/specs/contracts/run.schema.jsondocs/specs/contracts/task.schema.jsondocs/specs/contracts/event.schema.jsondocs/specs/contracts/attempt.schema.jsondocs/specs/contracts/graph.schema.jsondocs/specs/contracts/error.schema.jsondocs/specs/contracts/model.schema.jsondocs/specs/index.json
- Migration guide:
docs/guides/MIGRATION_V3.md - Operator runbook:
docs/guides/OPERATOR_RUNBOOK_V3.md - Visual regression guard:
docs/guides/WEB_VISUAL_REGRESSION.md - Codex upstream-first strategy:
docs/guides/CODEX_UPSTREAM_FIRST_STRATEGY.md - Codex extension architecture:
docs/guides/CODEX_EXTENSION_ARCHITECTURE.md - Codex release/security governance:
docs/guides/CODEX_RELEASE_SECURITY_GOVERNANCE.md - Cloudflare enterprise web blueprint:
docs/guides/CLOUDFLARE_ENTERPRISE_WEB_BLUEPRINT.md - Codex upstream watch lock:
third_party/codex-upstream/upstream.lock.json - Release notes:
docs/releases/V3_CUTOVER_COMPLETE.md - OpenCode integration:
docs/OPENCODE.md - Blueprint catalog:
docs/blueprints/CATALOG.md - Blueprint source mapping:
docs/blueprints/SOURCE_MAP.md
.env.exampleis the tracked canonical template.- Local
.envusage is supported. .envis ignored and must not be committed with real secrets.- Bootstrap from template:
./scripts/init-env.shmake testCI enforces Go build/test, web-v3 build, link checks, migration gate checks, and tracked-file secret scanning.
Release gate check (local):
./scripts/release/check-gates.shRelease closure automation:
git switch -c codex/v3.1-ga-closure
./scripts/release/run-ga-closure-program.sh
# optional final tag in same orchestrated flow:
./scripts/release/run-ga-closure-program.sh --tagManual step-by-step (equivalent):
git switch -c codex/v3.1-ga-closure
./scripts/release/lock-rc-scope.sh
./scripts/release/run-gate-a.sh --write-report
./scripts/release/cleanup-soak-runs.sh --older-than-minutes 30
./scripts/release/run-rehearsal-program.sh
# or explicit control:
./scripts/release/start-soak.sh --profile rehearsal-6h
./scripts/release/soak-status.sh --profile rehearsal-6h
./scripts/release/stop-soak.sh --profile rehearsal-6h
./scripts/release/run-soak-72h.sh
./scripts/release/run-gate-b.sh --p0-count 0 --p1-count 0 --write-report
./scripts/release/run-ga-cut.shWeb V3 E2E:
cd biometrics-cli/web-v3
pnpm run test:e2eWeb V3 visual guard:
cd biometrics-cli/web-v3
pnpm run test:visualPublic website quality checks:
cd website
pnpm run test:content
pnpm run test:e2e
pnpm run test:lighthousePublic website deploy (Cloudflare Pages):
cd website
pnpm run cf:project:create # first-time only
pnpm run deploy:cloudflareRun a local soak profile and evaluate gates:
PROFILE_LABEL=rehearsal-6h DURATION_SECONDS=1800 RUN_INTERVAL_SECONDS=10 GOAL_PARTS=50 ./scripts/run-soak.sh
./scripts/analyze-soak.py --summary logs/soak/soak-summary-<timestamp>.json
./scripts/release/update-soak-report.py --summary logs/soak/soak-summary-<timestamp>.jsonDefault release thresholds:
- run success rate
>= 0.98 - timed-out runs
== 0 - dispatch latency p95 estimate
<= 250ms - fallback rate per run
<= 0.05 - backpressure signals per run
<= 20
SSE compatibility note:
/api/v1/eventsemits both typed SSE events andmessagecompatibility frames with identical event IDs.- Runtime operations emit opencode installer events:
opencode.install.started|succeeded|failed
- Runtime auth/model routing emits:
auth.codex.login.started|succeeded|failedmodel.selectedmodel.fallback.triggered|exhaustedcontext.compiled
- Supervised runs emit runtime checkpoint events:
run.supervision.checkpoint
- Onboarding step telemetry is local-only in
.biometrics/onboard/events.jsonl.
cmd/biometrics remains a temporary compatibility shim in V3.1 and is scheduled for removal in V3.2 on April 22, 2026.
See CONTRIBUTING.md for development setup, commit conventions, and PR workflow.
See SECURITY.md for vulnerability reporting and security policy.
MIT License - see LICENSE for details.
Built by Delqhi at AIOMETRICS
