Codex

Install?

Codex in Adom Hydrogen with reusable CAD routing, electrical review, copper-ablation and narrated video skills, plus verified KiCad and Fusion demo progressions.

adom-wiki pkg install adom/codex

Latest: v0.1.35, published

Dependencies 1 bootstrap

Contents

README

markdown

Codex

Use Codex Astra for PCB trace routing, component placement, and electrical review in KiCad and Fusion. Adom connects Astra's design reasoning to real EDA applications, so it can inspect a board, make native editor changes, and verify the result.

PCB routing and component placement

  • Route traces: calculate paths from pads and nets, commit traces and vias in the live editor, and check connectivity and native DRC.
  • Place components: work with the connected EDA application's placement controls, accounting for pad access, clearances, routing space, and power/return paths. Inspect the actual board and preserve the original before making changes.
  • Review the electrical design: examine power copper, return paths, thermal bottlenecks, and multilayer connectivity alongside the routing geometry.

The latest BQ example demonstrates independent placement, routing and native 3D comparison. Earlier rerouting recordings retain the original component placement. The EDA workflows run from Codex in Hydrogen through the relevant application bridges and do not require Codex Desktop or the separate Codex Bridge described later.

Latest: Astra places, routes and compares the board in 3D

Watch the narrated 4:12 meeting video and read the method. All 109 elements were moved off-board before a fresh placement; the ending compares Adonis and Astra in native Fusion 3D.

EDA guides

Astra drives live KiCad

The videos below are real KiCad window recordings. Astra runs in the Adom Hydrogen container and sends explicit trace-routing commands through Adom Bridge to KiCad on AdomLapper. Idle footage is trimmed; routing plays at 3x with explanatory captions.

Six nets: the first trace-routing demo

Download the 23-second video. Six nets, 13 pads, 20 trace segments and two vias. KiCad measured zero DRC errors and zero unconnected items; three warnings identify synthetic footprint libraries.

24-net crossover: calculated paths and branches

Download the 31-second video. A permutation maps each input to an output column. Horizontal front-layer traces cross vertical back-layer traces, and each net branches to a third pad. Result: 72 pads, 120 segments, 48 vias, zero DRC errors, zero unconnected items, and three synthetic-library warnings.

This establishes explicit per-net/per-trace control. The crossover fixture uses a constructed routing algorithm; it is not evidence of arbitrary-board autorouting.

Public Adom board: first routing pass

Download the preview. Uses the public Adom Teazzers Solenoid Driver RP2040 v1.1, with 94 footprints and five channels. Astra calculates paths independently, then commits them live through Adom Bridge. Precomputed geometry and 3x playback are labeled. This first pass adds 60 connections as 106 segments, reducing native open items from 118 to 60. Five baseline errors remain. This is the earlier partial run; the full comparison below completes connectivity.

Real Adom boards

The public Teazzers comparison shows the reference, a stripped copy, independently calculated routing, and measured native KiCad results. Only publicly accessible designs are used in published recordings. A combined reel will follow approval of the individual runs.

Public Adom board: full routing comparison

Watch or download the narrated full comparison. The public Teazzers Solenoid Driver RP2040 v1.1 has 94 footprints and five output channels. The video tours the original human layout, removes all 484 segments and 58 vias from a copy, verifies zero remaining traces/vias, and shows Astra's independently calculated routing appearing through live KiCad IPC edits.

Astra runs in Adom Hydrogen and writes a custom geometry/A* planner. It reads the retained placement, pads, netlist and zone outlines; checks candidate paths against copper, pads, holes and board edges; and uses back copper and vias where needed. No Freerouting or other external autorouter is used, and the original trace geometry is not used to generate the replacement paths. Planning and iterative native DRC happened before this recorded execution. The tour and result play at normal speed; route creation plays at 3x, with the validation wait omitted.

The final saved live board contains 1,463 segments and 33 vias, with zero unconnected items after native KiCad zone refill and DRC. Four pre-existing errors remain: two courtyard overlaps, one zone intersection and one starved thermal. There are no new clearance or crossing errors. The human reference reports three open items and 27 errors under the same KiCad checks; the stripped starting copy reports 118 open items and five errors. This demonstrates connectivity routing on this board. Current capacity, USB signal integrity and production electrical qualification remain engineering review tasks.

kicad_routing_state supplies the live revision and verifies copper counts. kicad_remove_route removes the original copper in one native Undo transaction. Then 132 kicad_route_net calls create the independently calculated segments and vias, guarded by expectedRevision. These calls use validate:false because the whole candidate was already checked; the actual saved live board is checked again using kicad-cli pcb drc --refill-zones through Adom Bridge run_script. desktop_record_window_start / desktop_record_window_stop capture one continuous KiCad-window take. The edited film is derived from that take, with caption timing and an edit manifest retained.

The narrated edition uses Adom TTS’s synthetic Andrew voice. The caption-only edition remains available.

Adom setup

Install the Adom integration with adom-wiki pkg install adom/codex, then open the Codex dock card or run adom-codex serve --print-url.

This package configures Codex for Adom. It does not install or replace the OpenAI Codex executable or your credentials.

Codex Bridge

Codex Bridge is an optional desktop-app integration, separate from the EDA tooling above.

Control Codex Desktop on a named Windows machine through Adom Bridge. The project's codex-bridge.exe is compiled in Rust and runs under AB's bridge lifecycle, without a Node or Python runtime for the bridge. The live test installation is on arav-rog, so Codex Desktop does not need to be installed on AdomLapper.

Codex Desktop running on arav-rog through the Adom Codex Bridge

  • Install, detect, launch, and uninstall the official Windows desktop package.
  • Reuse an authorized native Codex sign-in cache without overwriting existing credentials.
  • Discover the actual desktop's tools to create, read, and continue conversations.
  • Find, inspect, install, and remove plugins through native Codex APIs.
  • Discover project, worktree, panel, and scheduling tools, with native approvals intact.
  • Inspect jobs, events, and requests; warn the user with an AB toast before a setup step triggers UAC.

Read the illustrated Codex Bridge guide for screenshots, examples, build/deployment instructions, and tested limitations. The bridge ZIP, OpenAI desktop app, and Adom skills/dashboard package are separate installations. adom-wiki pkg install adom/codex does not deploy the bridge or install Codex Desktop. The tested bridge is development-pinned; a public runtime release/update manifest has not been published.

Codex Bridge technical setup and protocol notes.

Optional reload integration

Installing this wiki package enables container-local Codex reload continuity, fixes startup timeouts in restored hidden tabs, and removes the typing-box fade. See installation, extension updates, and uninstall behavior.

Broken Codex builds are held back

Version 0.1.28 keeps Codex working when OpenAI ships a build that does not load. Builds listed in runtime/bad-versions.json (26.1021.22027 and its 26.51021.22027 pre-release: the UI never loads and freezes the editor, openai/codex#56780) are swapped back to the last good build once no Codex turn is running (0.1.29: if the editor loads a listed build anyway, as a manual update does, its panel shows a short notice instead of OpenAI's UI, so it can never freeze the editor), the user sees a notice, and the hold lifts by itself when Open VSX ships a build that is not listed. The list is re-read from this page hourly, so adding or clearing a build needs no release. A Codex update that changes the backend's startup options now replaces an idle backend instead of refusing every Codex view, and the runtime installs bubblewrap (Codex's Linux sandbox) when sudo needs no password.

Version 0.1.30 brings OpenAI's newest models to the held build. The good build bundles an older Codex engine whose model picker stops at GPT-6 Astra and GPT-5.6, so while the hold lasts the runtime fetches OpenAI's newest stable engine from npm (@openai/codex, checked against the registry's sha512, then run once to confirm it starts and reports its version), records it in ~/.local/state/adom/codex-integration/engine.json, and runs it for the held build from the next editor reload: GPT-6.1 Sol becomes the default, with GPT-6.1 Terra, GPT-6 Sol and GPT-6 Luna alongside. It never swaps the engine under a running turn, rechecks npm every six hours, and drops the engine (back to the build's own) when the hold lifts.

Version 0.1.31 fixes a hold that could not come back. When VS Code reinstalled the bad build over the held one, the guard tried to put the good build back every five seconds and failed each time: its watcher had been started from an editor terminal and still carried that window's VSCODE_IPC_HOOK_CLI, so after a reload every code-server --install-extension went to a dead socket. The guard now installs with the editor's VSCODE_* variables removed, so the good build is back within seconds. The "This Codex build is turned off" page also gained a Reload now button: it stays off while the good build is being put back and turns on once VS Code will load it, so one click replaces the Command Palette steps.

Version 0.1.32 fixes two ways a Codex conversation left waiting on an approval could lock Codex up. The guard now puts the good build back on disk at once, even mid-turn (a running backend keeps its own files), and only stops a bad build's backend once no turn is running; before, it waited for idle first, and a thread waiting on an approval for days meant it never swapped. And when only the engine differs (the newest-engine swap above, an optional upgrade), the runtime keeps using the running backend this extension already started and switches when it is idle, instead of refusing to start Codex at all.

Version 0.1.33 says plainly what happened when a held-back Codex build shows up: the notice now leads with "Codex is broken for everyone right now", names OpenAI's issue, says you are already on the working Codex with the newest models, and that you can skip the update because it comes back by itself once OpenAI fixes it. It also removes Codex Audio (openai.codex-audio), OpenAI's microphone add-on for dictation: it is a desktop-only extension with no browser build, so code-server can never run it and it only sat there with a warning.

Version 0.1.34 makes those fixes reach everyone. The background watcher used to restart only when one of its files changed, so a machine that took 0.1.33 while Codex was open kept running the old check and kept Codex Audio. It now restarts when any of its files change, and it removes Codex Audio whenever it shows up again (a Codex update can bring it back).

Version 0.1.35 gives OpenAI's newest models to fresh installs too. The newest-engine swap from 0.1.30 only ran while a hold was active, which needs the bad build to have arrived first. A workspace that started on the good build (the Hydrogen golden image ships it) was never held, so its Codex kept the build's own older engine and the model picker stopped at GPT-6 Astra. The guard now fetches the newest engine whenever Codex is on the listed fallback build, held or not; reload the editor once and GPT-6.1 Sol is the default.

Skip the repeated IDE walkthrough

Version 0.1.23 opens new Codex editor tabs directly at the prompt. The default ships through Hydrogen’s existing Codex package dependency; it preserves sign-in and permission prompts. See diagnosis and verification. Already-open walkthrough tabs should be closed and reopened.