OpenPrism
An AI assistant inside your LaTeX or Typst project
An AI chat beside the editor means copying text into the chat, copying the answer back, and fixing whatever broke on the way.
OpenPrism, an open-source take on OpenAI's Prism, puts the assistant inside the project. You write LaTeX or Typst with a live PDF preview, and the assistant reads your files, proposes changes as diffs in the source, and searches the literature while you write. It handles multi-file projects, keeps the source and the PDF scrolled together, and has a Vim mode.
Decisions
LaTeX compiles on the server. Typst compiles in the browser through WebAssembly, so its preview keeps up with typing.
Suggestions arrive as diffs you accept or reject in the editor. They are placed by a fuzzy match that tolerates whitespace changes, so a suggestion still applies after the text around it has moved. To ask about a passage, you highlight it, and the question goes to the model with that selection.
A research agent works in steps you can follow. It plans its queries, searches Semantic Scholar, arXiv and Exa, analyzes what it finds and writes a synthesis with citations. Imported PDFs become part of the project, the bibliography can be searched by meaning, and a knowledge graph shows how the concepts connect.