Skip to content
| Marketplace
Sign in
Visual Studio Code>AI>StetNew to Visual Studio Code? Get it now.
Stet

Stet

archechef

|
6 installs
| (0) | Free
Review AI-proposed changes to LaTeX, Typst, Lean and Markdown projects: accept, reject, edit or comment on each change.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Stet: review AI edits to your LaTeX project

stet (Latin, "let it stand"): the proofreader's mark for undoing an edit.

Let AI agents (Claude, Codex, …) propose changes to your paper, and decide on each one yourself.

  • Agents work in their own copy of your project. They never touch your files.
  • Their edits reach you as small changes, usually a few words each. LaTeX math, labels and citations stay intact.
  • You accept, reject, edit, ask for a revision or comment, right where the change is in your file, and see it in the compiled PDF.
  • Your decisions, reasons and comments go back to the agent. It learns your style and revises.
  • Everything you accept becomes one git commit when you finish the review.

Preview. Stet is new. It has been tested with the Claude desktop app and in VS Code. Tests with the command-line versions of Claude Code and Codex are still to come. Feedback is welcome.


Getting started

You need VS Code 1.101 or newer and git 2.28 or newer (on Windows: Git for Windows). To see changes in the PDF you also need Podman (see below); everything else works without it.

1. Set up your project

Open the folder of your LaTeX project in VS Code. Click the Stet icon ① in the activity bar (the icons at the left edge), then Set up project ②. If git is not used in the folder yet, Stet offers to start it for you.

The Stet icon (1) at the left edge and the Set up project button (2) in the Stet panel

2. Give the agent its own copy

Click New agent workspace ③ and choose Claude or Codex.

The New agent workspace button (3) in the Stet panel

This is a separate folder where the agent works. Open it in your agent:

  • Claude desktop app: see the steps below.
  • Claude Code or Codex in a terminal: cd into the folder and start the agent.
  • Agents inside VS Code (for example the Codex extension): choose Open in new VS Code window.

Claude Code in the desktop app

  1. Install the Claude desktop app and sign in.

  2. In VS Code, click New agent workspace, choose Claude, keep the suggested name (claude-1) and choose Copy folder path.

  3. In the Claude app, open the Code tab and start a new session. Under the message box, keep This computer (A).

  4. Click Choose folder (B) and pick the folder you just copied. It is next to your project, in <project>.stet/claude-1. Choose that folder, not your project folder. If a Worktree box appears, leave it unticked.

    Under the message box of the Claude app: This computer (A) and Choose folder (B)
  5. If Claude asks whether you trust the folder, say yes.

  6. Ask for what you want, for example "Tighten the introduction." The changes then appear in VS Code.

There is nothing else to configure: the folder already holds the instructions and tools Claude needs. To check, ask Claude "Which Stet tools do you have?"; it should name tools starting with stet_. After you have reviewed, tell it "Check your feedback."

Optional: save the folder for next time. Click This computer (A) under the message box and choose to create a new environment. In the window that opens, stay on Local (C), add the agent workspace folder with + Add (D), give it a name, and click Create environment (E).

The New environment window: Local (C), + Add (D) and Create environment (E)

Other platforms work similarly (Codex, Claude Code in a terminal or inside VS Code, other agents): create a workspace for it, open that folder in the tool, and ask for changes.

3. Ask for changes

Ask the agent as usual, for example "Tighten the introduction." It edits its copy and hands the changes to Stet by itself.

4. Review

The changes appear in your VS Code window:

A review in VS Code with six numbered places, explained in the table below
Where What it is for
① Stet icon Opens the Stet panel. The number counts the changes waiting for you.
② Pending changes The ones not decided yet. Click one to jump to it; ✓ accepts, ✗ rejects.
③ The change in your text Struck through in red: the old words. Green (grey with word wrap on): the suggested words.
④ Buttons above the change Accept, Reject… or More… (everything else you can do).
⑤ Finish review Saves everything you accepted as one commit. Appears once you have accepted something.
⑥ View options Switches for how things are shown.

5. Finish

Click Finish review ⑤ when you are done.

Stet keeps its own records inside the project's hidden .git/stet/ folder. They are never shared, so Overleaf and your co-authors don't see them.


Reviewing a change

Each change is shown in your file: the old text struck through in red, the new text right where it goes, in green (grey if VS Code's word wrap is on). Only what actually differs is marked, even inside a long formula. You can keep writing; Stet finds each change again in your current text.

Every change has the same actions, under the same names, wherever you meet it:

Where What you get
Above the change Accept · Reject… · More…
Rest the mouse on it (or on the word next to it) a pop-up with the agent's reason, old and new text, the conversation, the PDF preview, and every action
Ctrl+. (Cmd+. on macOS) in the change a menu with every action (VS Code calls it Quick Fix)
More… every action, with its key and what it does
The Stet panel buttons on each row, every action on right-click, and one key per action
Action Key What happens
Accept a Applies the change to your file. Linked changes are accepted together (Accept all 3 linked).
Reject… r You can give a reason. The agent won't suggest it again.
Edit & accept… e Change the wording, then accept it, or save it and decide later (Ctrl+S in its editor). The agent sees your version and adapts.
Revise… v Tell the agent what to do differently; it sends a new version.
Comment… c A message about the change; the agent can reply.
Diff d Your file without and with the change, side by side (a diff). You can type in it.
PDF preview p The compiled page with the change, after and before.
Review file f The same side-by-side view with all pending changes of the file.
Undo u Takes back a decision: the change is pending again.
More… . Every action on the change.
Next / previous j / k Moves through the changes and shows each in the editor.

After each decision Stet moves on to the next change, so a review takes one key per change.

Review file shows your file next to the same file with all its pending changes applied, with real line breaks. Type in the right side to reword proposals: saving keeps your wording, and the changes stay pending until you accept them. Each change has the same actions there as in your file. Diff opens the same view for one change.

Groups. 🔗 Linked changes only work together, like renaming a label and every reference to it; large linked groups come in parts you can accept one at a time. ▣ Related changes are about the same topic and can be decided in one go (Shift+A / Shift+R).

Moves. A moved paragraph is shown as a move, not as a deletion plus an insertion: moved here from line 40, word for word, or with 1 word changed.

History. Decided changes move to the History list below the Stet panel, by round. Click one to see what was accepted. Undo works on a rejection at any time, and on an accept until you finish the review.


PDF previews

PDF preview opens a panel with the whole page where the change lands, opened at it, the changed words highlighted. After | Before flips between the versions. Zoom and drag like a PDF viewer (Ctrl/Cmd + wheel, double-click). The hover shows the changed region too.

Previews compile the agent's text in an isolated Podman container without network access, because LaTeX can read any file you can and put it into the PDF. The first time, Stet offers to set it up; it never downloads anything without your click. On macOS, and on Linux without a standalone TeX Live, the container brings its own TeX Live (about 1 GB). If a package is missing, Stet names it and offers TeX's extra fonts.


Agents

  • What they see: changes you accept always reach them. Your own edits reach them when you click Share my edits (cloud icon), or on every save if you choose so.
  • Notifications: an agent that is waiting for you (with the command stet watch) is woken when something arrives for it. Click the bell next to the agent to choose when (right away, or when you pause) and for what (accepts, rejections, comments, notes, …). The megaphone there wakes it at once.
  • Notes: select a passage, right-click → Note for agent…, and ask for something the agent hasn't touched yet ("shorten this paragraph").
  • Several agents can work in parallel, each in its own workspace. When a task is done, right-click the agent → Archive agent.

View options

View options ⑥ (the sliders icon in the Stet panel) holds everything you may want to switch while you work, with a checkmark at the current choice: changes inline, the actions above changes, moving to the next change after deciding, what the left side of a diff shows, how new text is drawn with word wrap, how long changes are shown, which of your edits agents see, and where PDF previews appear. They are ordinary settings (stet.*), so the Settings editor shows the same values.

Setting Default Meaning
stet.inlineChanges true Show changes in the editor.
stet.diffShowsProposals false Diffs show your file itself on the left, with the proposals in it, instead of your text as it is.
stet.codeLens true Actions above each change.
stet.autoAdvance true After a decision, move on to the next change.
stet.newTextStyle auto New text highlighted (green, doesn't wrap), wrapping (wraps with the line), or by the word wrap setting.
stet.longChanges collapsed Long proposals in a panel under the change, opened from the gutter (collapsed), open (expanded), or only on hover (hover).
stet.shareEdits manual Which of your edits agents see: when you share them (manual), every save (saved), or only commits (committed).
stet.pdfPreviews both Previews in the hover and the panel, in one of them, or off.
stet.previewsAhead 2 Previews built for the first changes of a new round when it arrives; 0: only when you look at a change.
stet.runtime auto What runs the agents' Stet server: Node.js 22+ if installed, else VS Code's own runtime.

Safety

  • Agents can write only their own workspace. Your project, its .git folder and Stet's data are read-only to them.
  • Stet checks everything an agent submits before using it, and an accept is all-or-nothing.
  • The agent's work can't be merged into your project or uploaded by accident: small checks that git runs (git hooks) refuse it. Checks you already had keep working.
  • On macOS, Linux and WSL2, the agent program itself enforces these limits (its sandbox). On Windows without WSL2, Claude Code has no sandbox: a simpler guard catches mistakes, but not a deliberately evasive agent (one following instructions hidden in a source document, say). For untrusted material, use WSL2.
  • Stet runs only in folders you trust (it is off in VS Code's Restricted Mode).

Troubleshooting

Run Stet: Check setup (Stet panel → …) first. It checks git, the hooks and the agent workspaces, and prints fixes in the Stet output channel.

Symptom Fix
The panel says "Stet is not set up" Run Set up project. If you opened a sub-folder of the repository, open its root instead.
The panel stays empty, VS Code shows Restricted Mode Choose Trust in the Restricted Mode banner.
An agent can't find the Stet tools Start a new agent session in the workspace folder. Sessions started before a Stet update keep the old server until they restart.
"Your project folder is on '…', not 'main'" Switch your project back to its main branch before accepting.
A change "is no longer where it was" Its text changed in the meantime. Reject it or ask for a revision.
No PDF preview The preview panel says why: Podman missing, its machine not running (macOS), or a LaTeX error. Set up PDF previews (panel → …) sets it up.
A commit or push of an agent branch is refused That's the git hooks protecting your review. Accept the changes through Stet instead.

License

MIT. © 2026 Noah Tittelbach.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft