PixCell
From Pixels to PCells: A Neurosymbolic Approach to Photonic Component Creation (arXiv:2608.00084)
https://github.com/user-attachments/assets/d917f8d8-b2de-4ab5-beec-8f414d1154a6
Install
# Claude Code, using its native plugin manager
claude plugin marketplace add QPG-MIT/PixCell && claude plugin install pixcell@pixcell
# Local browser Studio, without cloning the repository
uvx --from 'pixcell[workbench] @ git+https://github.com/QPG-MIT/PixCell' pixcell studio
# Cursor and other npx-plugins hosts (experimental)
npx plugins add QPG-MIT/PixCell
Reproducing the paper, or developing? Clone the repo; it carries the
locked environment, briefs, fixtures, benchmark record, and tests:
# no uv yet? curl -LsSf https://astral.sh/uv/install.sh | sh
git clone https://github.com/QPG-MIT/PixCell && cd PixCell
uv sync # or ./setup.sh (macOS + Linux)
uv run pixcell doctor # preflight: what can run here, what to add
Requires Python 3.11-3.13 (3.13 recommended). The core loop uses no API key:
recreation, verification, gating, the workbench, and the Studio light table
all run locally. GEMINI_API_KEY is used only to standardize an extracted
paper figure; drawn devices do not need it. TIDY3D_API_KEY is used only for
cloud FDTD. See .env.example. Prebuilt wheels cover macOS
and x86-64 Linux/Windows; on Linux arm64, gdstk builds from source — install
CMake and a C++ toolchain first.
How to use
Use the entry point that matches the installation above: the plugin inside a
coding agent, Studio for interactive work, or the CLI from a clone for scripts
and individual stages. Start with a paper figure, drawing, or existing device
and state the component, target PDK or layer stack, and any geometric or
optical constraints. Successful recreations return a gate-verified GDS, its
parametric source, and a fidelity score.
Coding agent
Open Claude Code, Codex, or Cursor in the project where you want the output.
PixCell appears as a homi full-pipeline skill plus stage-specific skills.
Ask directly and let the agent choose, or invoke a skill for explicit control:
"Here's a paper. Recreate the ring resonator in figure 3."
"Hit an 8 nm FSR on 400 nm nitride."
"Show me the device. I want to play with the knobs."
Studio
Try the hosted Studio with no installation
(trusted beta), or launch it locally with the uvx command in
Install. From a clone:
uv run pixcell studio
Drop in a paper or sketch and describe the result you want. The local Studio
opens projects/example_mmi_splitter/ by
default—a drawn 1×4 MMI gate-verified at IoU 0.995—so its geometry, parameters,
and live fidelity are visible before starting your own device.
CLI
From a clone, use the CLI for scripts or stage-level control. homi and
pixcell are aliases; prefix commands with uv run unless the environment is
active:
pixcell extract paper.pdf -o projects/my_device # figure → silhouette + footprint
pixcell generate projects/my_device # blind agent recreation + gate
pixcell retarget device.py --stack sin400.json --spec spec.json
pixcell explore projects/my_device/output/best.py --launch # per-device workbench
pixcell simulate projects/my_device/output/best.gds # FDTD draft; a human presses Start
pixcell serve # the 7 MCP servers · `pixcell api` for REST (localhost-only by default)
Dataset
The released L0–L4 image-to-code curriculum is available as
qpaig-mit/pixcell.
Its dataset card includes loading examples, the schema, and reproducibility
commands.
Structure