Papilot Workspace
Keep LaTeX papers and project code in the same editor. Papilot discovers papers in the workspace's Git repositories and opens each PDF in its own tab. The conversation lives in a separate sidebar, so switching between source, PDFs and reviews keeps it open.
- Edit LaTeX with VS Code's normal text editors, undo and save controls.
- Jump from PDF passages to LaTeX source, or use Papilot: Show LaTeX Source in PDF from an editor. Papilot waits for the saved manuscript to compile. From a task source tab, it opens the task's PDF once the saved lines are included in a published review.
- Compile several papers in the same repository without changing Papilot's default document.
- Read compilation diagnostics in Problems and the TeX log in Papilot's Output channel. Recoverable errors can accompany a PDF.
- Add PDF notes, include them in tasks, and review the resulting changes with Papilot's existing viewer.
- Open chat attachments and page thumbnails in VS Code editor tabs.
- Browse earlier review rounds and return to the current changes in the same tab. Source navigation opens the task's current worktree.
- Apply a reviewed task to the working tree, then stage and commit in VS Code's Source Control. Save edits in both the manuscript and the task worktree before applying.
Requires VS Code 1.96.4 or newer, Git, a local TeX distribution, and a signed-in agent CLI for agent tasks. Open a trusted workspace containing a committed Git repository. Papilot lists independently buildable TeX roots and refreshes the list when TeX files change; included files stay with their paper.
Install Papilot from the VS Code Marketplace, or search for PapilotAI.papilot-vscode in the Extensions view.
The extension starts and stops its bundled runtime. There is no separate application server to install or start. Remote workspaces run Papilot and TeX on the remote host. The standalone app keeps its current interface and selected document.
PDF pages, changed passages, and review highlights follow VS Code's light or dark theme. Review controls, native commands and prompts use VS Code's display language.
Development
From the repository root:
npm ci
npm run setup:review
npm --prefix vscode ci
npm --prefix vscode run typecheck
npm --prefix vscode test
npm --prefix vscode run build
npm --prefix vscode run test:web
npm --prefix vscode run test:host
npm --prefix vscode run package
test:host launches an isolated VS Code window with disposable papers. Set PAPILOT_CODE to a VS Code executable if it is not on PATH. On headless Linux, run it under xvfb-run -a.
Native strings use src/i18n.ts and package.nls.json. The shared i18n commands extract them alongside the app's messages; the extension build generates VS Code localization bundles from those catalogs.
Set PAPILOT_TEST_VSIX to test the packaged extension on older editors such as VS Code 1.96.4. Running the test from the source checkout uses the editor's Node.js, which must be 22.22 or newer. The test opens two papers, edits LaTeX in the native editor, checks diagnostics and PDF navigation, renders the conversation sidebar, and stages a reviewed change in Git. It makes no live agent calls. PAPILOT_HOST_INSPECT=1 keeps its temporary directory and screenshots.
Package with an official Node.js distribution (22.22 or newer). The platform-specific VSIX includes that Node executable and Papilot's production dependencies. Install it with Extensions: Install from VSIX…. For Remote SSH, use a VSIX for the workspace host's OS and architecture.
The CI workflow builds the VSIX on native runners. Download the vscode-extension-<target> artifact from a successful run for darwin-arm64, darwin-x64, linux-x64, or win32-x64. Use packages from the same run for a Marketplace release.