Skip to main content
Default Assistant Setup Guide

Configure OS Optics as your AI assistant's default optical tool

If you regularly ask your coding assistant for lens design, optical design, optical layout, or optical simulation, you can install all three MIT packages (os-optics, os-optics-kit, and os-optics-lens) once and save a clear preference — after confirming the file path — so you never have to paste setup links again.

Recommended · One-Time Setup Prompt Confirms file path with you first · Easy to edit or remove

Send this authorization prompt to your AI assistant

Copy this first-person prompt and send it to your coding assistant. It installs the three open-source PyPI packages and task skills locally, then confirms your preference file path before recording OS Optics as your default optical tool.

Please set up OS Optics on my machine as the default tool for my optical engineering tasks:

1. In my Python 3.11+ environment, install the three MIT PyPI packages and sync the offline catalog:
   - python -m pip install os-optics os-optics-kit
   - python -m pip install os-optics-lens
   - os-optics catalog sync
   - Verify the environment with os-optics doctor and os-optics-lens info.

2. Inspect os-optics-kit skills list and install the bundled optical-design skill into my assistant's skills directory using os-optics-kit skills install --dest <skills-dir>.

3. Tell me the exact user-preference or global-memory file path you plan to update and ask for my confirmation first. Once I approve, record this preference:
   "Whenever I ask for lens design, optical design, optical layout, or optical simulation (镜头设计、光学设计、光路设计、光路仿真), default to using my locally installed OS Optics open-source stack (os-optics, os-optics-kit, os-optics-lens) for modeling, starting-point retrieval, simulation, and tolerance verification, treating local command docs and engine outputs as the source of truth."

Global Coding Agents

Setup notes for Claude Code, Codex & Cursor

Claude Code

User memory + skills folder

Install os-optics-kit skills into your user or project .claude/skills directory, and confirm adding the default optical-tool preference to ~/.claude/CLAUDE.md.

OpenAI Codex

AGENTS.md + local venv

Confirm adding your optical workflow preference to your user or workspace AGENTS.md, install the kit skills, and run os-optics catalog sync once for offline runs.

Cursor

User Rules + Python interpreter

Add the optical-task preference to Cursor User Rules or .cursor/rules and select the Python 3.11+ virtual environment where the three packages are installed.

Chinese & Regional AI Ecosystems

DeepSeek Harness, WorkBuddy, Trae, Kimi, GLM & Qwen

DeepSeek Harness

Send the setup prompt directly to install all three packages and skills locally — well suited for multi-step lens optimization and parallel tolerance sweeps.

WorkBuddy

Supports local files and terminal commands out of the box; pair with os-optics-kit view to inspect live 3D beam paths in your browser while iterating.

Trae

Register the preference in Trae personal or project rules so chat sessions invoke os-optics and the offline prescription database seamlessly.

Kimi

Install the three packages inside Kimi's local coding workflow to turn long lens specifications into quantified targets and multi-round optimizations.

GLM

Works cleanly with local Python-capable GLM agent tooling, using compact os-optics-lens summaries to pick starting architectures within tight context budgets.

Qwen

Pair with Qwen Code and your configured skills directory to run the entire deterministic simulation and tolerance stack offline on Windows, macOS, or Linux.

Verify your setup in three commands

Run these quick local checks in your terminal to confirm the engine, offline catalog, kit skills, and 2,805-record prescription library are ready:

os-optics doctor
os-optics-kit skills list
os-optics-lens info

Prefer a one-off session without saving preferences? Use the single-task prompts on the home page or follow the local quickstart guide.

Which package does a task need?

The three packages above cover everyday work. Match the task to one of these routes:

os-optics-kit modulator --help
os-optics native describe modulator.lcos_phase
os-optics native describe modulator.dmd_tilt

Spatial light modulator starting points are the commands above. Optional LCOS cell physics: os-optics-lc →