A molecular-biology workbench for you and your AI agent

Work on your sequences without leaving Codex or Claude Science. Motif opens in the pane beside the chat with the records your agent fetched or built, so you can check its work on a map. Claude Code, Gemini, or another agent that can run commands builds Motif as one HTML file that opens in any modern browser.

Paste into Claude Code, Gemini, or another agent that can run commands:

Set up Motif from https://github.com/jvogan/motif

Your agent

You: Open pUC19 in Motif so I can check its map and restriction sites.

Agent: pUC19 is open in Motif: 2,686 bp, circular, with its features and restriction sites on the map.

motif_open_workbench Opened in Motif

pUC19 · 2,686 bp

Motif showing pUC19, a 2,686 bp circular plasmid. The map labels AmpR, lacZ-alpha, the lac promoter, and the pMB1 origin, and marks restriction sites such as NdeI and BsaI. The sequence appears with the map.
The conversation is an illustration. The Motif screenshot comes from the public build.

Why use Motif with your agent

  • Stay in Codex or Claude Science

    In Codex, and in Claude Science on macOS, your agent opens its records in Motif in the pane beside the chat. You don't switch apps, download files, or paste sequences between tools.

  • Check your agent's work on a map

    Open each record your agent fetched or built, read its features and restriction sites, and edit bases with undo. Every digest fragment, PCR product, and assembly links to its parent record and the step that made it.

  • Works with the agent you use

    Claude Code and Gemini each built Motif from the one prompt on this page. The result is one HTML file that opens in any modern browser with no account, so you can send it to a colleague or use it with no agent.

  • Free and open source

    Motif is free under the MIT license, needs no account or hosted service, and sends nothing anywhere by itself. Records you share with an AI app fall under that app's data terms.

Ask your agent, then work in Motif

Your agent opens the records, and you do the work in Motif. Each screenshot comes from the public build.

Linear map

Open pcDNA3.1(+) in Motif so I can check its features and restriction sites on a linear map.

pcDNA3.1(+), 5,428 bp, on a linear map with a ruler from 0 to 5,000 bp. Labeled features include the CMV promoter, BGH pA, MCS, f1 ori, SV40 ori, NeoR/KanR, SV40 early pA, pUC ori, and AmpR, and restriction sites are marked along the ruler.
Open full-size screenshot
Motif draws the 5,428 bp record on a ruler and labels its features and restriction sites.

Restriction digest

Open pUC19 in Motif. I want to cut it with NdeI, BsaI, and ScaI and preview the gel.

Gel preview of pUC19 cut with NdeI, BsaI, and ScaI: a 1 kb ladder lane beside one sample lane with three bands. The saved fragments are 1,576, 691, and 419 bp.
Open full-size screenshot
Motif predicts three fragments, saves them as records, and previews their bands on a gel.

Primer design

Open pUC19 in Motif so I can design primers for lacZ-alpha and compare the ranked pairs.

Primer design window for pUC19 with a 324 bp target at positions 146 to 469. Ten ranked pairs list product sizes and melting temperatures, and pair 1 is a 331 bp product.
Open full-size screenshot
Motif ranks 10 primer pairs for the 324 bp target and lists each pair's product size and melting temperatures.

Golden Gate

Build PCR amplicons from pUC19 and pET-28a(+), then open them in Motif so I can plan a BsaI Golden Gate assembly.

Golden Gate design with BsaI: a 361 bp pUC19 amplicon and a 5,001 bp pET-28a(+) amplicon, joined through AATG and AAGC overhangs, with a preview of the 5,310 bp circular product.
Open full-size screenshot
Motif joins the two amplicons through their overhangs and previews a 5,310 bp circular product.

Protein alignment

Open the example alignment of three synthetic proteins in Motif so I can see where they differ.

Alignment of three synthetic proteins over 60 columns. Four differences are boxed in red: three substitutions and one gap. The alignment also shows conservation marks, a consensus sequence, and a conservation histogram.
Open full-size screenshot
Motif boxes the four differences in red and adds a consensus row and a conservation histogram.

Translation

Open pUC19 in Motif so I can translate lacZ-alpha and list the open reading frames.

pUC19 with the lacZ-alpha region (146 to 469) selected on the map and translated on the antisense strand into a 107-amino-acid protein. The analysis panel lists 66 open reading frames of at least 10 amino acids.
Open full-size screenshot
Motif translates lacZ-alpha into a 107-amino-acid protein and lists 66 open reading frames of 10 or more amino acids.

Edit, analyze, and plan in one workbench

  • Maps

    Pan and zoom circular and linear maps to read features and restriction sites.

  • Edit and annotate

    Edit bases and undo changes. Add features, tags, and notes.

  • Digest

    Predict restriction digests, save the fragments as records, and preview a gel.

  • Clone

    Plan Gibson, Golden Gate, GoldenBraid, and ligation assemblies. Design primers and simulate PCR.

  • Align

    Align 2 to 10 sequences of up to 3,000 residues each in your browser, or use the external runner with MAFFT, MUSCLE, or Clustal Omega installed on your computer.

  • Sanger traces

    Open AB1 files to review the traces.

  • Translate and search

    Find open reading frames and CRISPR guide candidates, translate with NCBI genetic codes, and search for motifs.

  • Save and share

    Export FASTA, GenBank, workspace JSON, CSV, ZIP, or an HTML or Markdown report. Print to PDF. Share the workbench as one HTML file.

Find feature details in the capability reference.

See it in Claude Science

Claude Science fetches human KRAS, four GFP color variants, and pUC19 from two requests and opens them in Motif beside the chat. The rest of the film is work in Motif: a translation, DNA and protein alignments of the GFPs, a digest of pUC19, and a GenBank export.

Get started

Any agent that can run commands on your computer can set Motif up from this prompt:

Set up Motif from https://github.com/jvogan/motif

The agent builds one HTML workbench file that you open in your browser. To open Motif beside the chat instead, use the Codex or Claude Science setup below.

Set it up yourself

  • In your browser

    Build Motif with these commands, then open preview/motif-artifact.html. You need Git and Node.js 22.13 or newer on 22.x, or Node.js 24 or newer.

    git clone https://github.com/jvogan/motif.git
    cd motif
    npm ci --ignore-scripts
    npm run security:policy
    npm run security:lifecycle
    npm run preview:motif
    Browser build instructions
  • In Codex

    Install the local plugin to open Motif inside Codex. Install the skills-only plugin to have Codex fill workbench files with the records it prepares.

  • In Claude Science

    On macOS, set up the local connector to open Motif in the pane beside the chat, loaded with the records Claude Science fetches.

    Claude Science setup

The Codex local plugin and the Claude Science connector run the same local MCP server. Its tool motif_open_workbench opens the interactive workbench, and its tool motif_create_workbench_artifact returns a portable HTML workbench.