BlattBot
An agentic LaTeX editor that syncs with any Overleaf.
Runs on your machine with Codex, Claude Code, or your own model endpoint.
\section{proof}
Agent edits land as diffs you approve
The agent works in a local git checkout and compiles after editing to check its own work. You can watch the diff grow during the turn. Keep what you want and discard the rest — as a text diff or as a rendered PDF diff that highlights the pages that visually changed. On a connected project, approved changes are pushed to Overleaf with a normal history entry; if Overleaf changed in the meantime, a conflicting push is blocked until you resolve it.
\section{editor}
A full editor on its own
Projects can live entirely on your machine. Saving triggers a compile and the PDF sits next to the source. Double-click a line in the PDF to jump back to the code, or send a sentence from the PDF into the chat.
\section{citations}
Paper search, built in
Search OpenAlex, Semantic Scholar, DBLP, and Crossref from inside the app. Each paper comes with a one-line summary so you can judge relevance quickly. New entries are deduped and normalized on the way in, and a citation audit checks each one against Crossref and OpenAlex, badging it verified, unresolved, or mismatched. The References tab shows where every entry is cited and flags the ones that never get used. BibTeX import and export are there too.
\section{overleaf}
Syncs with any Overleaf
Overleaf.com works, and so does a self-hosted server — even without a git bridge, through your existing browser session. Pushes update documents in place, so comments, tracked changes, and history survive, and a Verify button runs Overleaf's own compiler on the pushed state. You can keep several accounts side by side. When a local project is ready to share, publish it to Overleaf.
\section{trust}
You can read the whole system prompt
The server listens on loopback only and requires a token on every request. Secrets live in your data dir with 0600 permissions. Every turn shows what it cost, and a disclosure generator writes an AI-use statement from your actual usage logs. Source-available under PolyForm Noncommercial.
\begin{enumerate}
How it works
Overleaf (optional) ⇄ local project ⇄ Codex agent (edit → compile → verify)
⇩
you review the diff → approve → push
-
npx blattbotStarts the local server and opens the app.
-
Create or connect a project
Start with a blank local project, or paste an Overleaf link. BlattBot imports the session from your browser.
-
Ask, then approve
Ask for an edit and read the diff. Approve it and it's committed.
\end{enumerate}
Requires Node 20+, git, and Codex CLI (logged in). Claude Code and custom endpoints are also supported. A TeX engine is auto-installable.