Examples/1H NMR

1H NMR

Created from a prompt

OpenCode (DeepSeek V4 Pro via OpenRouter) in a Vercel Sandbox. Starter only (AGENTS.md, serve.py, player/, helpers/dom/view_kit). No hardcoded demo code. Cursor did not edit workspace/.

2026-10-15 · task 4kYkEKHCdK-N · opencode · openrouter/deepseek/deepseek-v4-pro-0813

The prompt

Build a proton NMR exercise. I get a molecular formula, a spectrum, and a short list of structures that share that formula. The spectrum should look like a real one: integrals, splitting, and the way multiplets lean when the magnet is weak. Chemical shifts can be slightly off a textbook value, so I should lean on the splitting and the integrals.

The spectrum is split into numbered regions with areas that add up to the number of hydrogens. I pick a structure, and then I can assign each region to a site on that structure. Getting the structure right is most of the score. Assignments only count if the structure is right. After I submit, show the true structure and which site each region was. Several molecules, including one at a low spectrometer frequency where the multiplets get messy. The same problem should show the same spectrum.

Live environment

Running the prompt-created workspace on this machine — not a mock. Save an episode, then open Replay below to scrub the timeline.

opening · 0 ms

Generated workspace

Exact files the agent wrote — not rewritten by hand.

# AI : shared Action contract — the page posts {"move": "..."}; keep this shape.
from pydantic import BaseModel


class Action(BaseModel):
    move: str