Skip to content
项目

关于

Zusia, a study buddy inside Zotero: ask Claude Code, Codex, Antigravity, any ACP agent or a local model (Ollama, Unsloth) about the paper you are reading. LaTeX, drawings, linked theorems. No API keys.

开发工具

这些数字如何统计

43 星标7 复刻 +1 24小时

实测星标增长

24小时
+1
7天
+4
15天
+9
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Zusia: a girl in a red hoodie studying the ResNet paper at night

Zusia

Your study buddy inside Zotero.
Ask about the paper you're reading. Get maths, drawings and proofs back.

Tests Latest release Zotero 7 to 10 Zotero Plugins grade Works with Claude Code, Codex, Antigravity, and any ACP agent Agent Client Protocol client No API keys MIT licence Sponsor a breakfast

TL;DR

  • 💬 A chat next to the PDF that reads the whole paper, in its own panel at the side of the window.
  • ✏️ LaTeX made for the model: maths rendered with KaTeX, definitions, lemmas and theorems as numbered boxes, every \ref a link with Back.
  • 🎨 Drawings in the same answer as the maths, in your colours; save any of them as a Zotero note.
  • 🖼️ Reads images: the page you are on, a screenshot, a pasted or dropped picture. Figures and tables included.
  • 📑 Reads efficiently: the paper is split into pages with their printed numbers and a reading map of every equation, figure and table, so the assistant opens only the pages it needs and cites them. Follow-ups don't send the paper again.
  • 🧠 Remembers each paper: what you understood, what is still unclear, how you like answers, your /remember notes.
  • 🔌 Any brain on top: your subscription through Claude Code, Codex or Antigravity, any ACP agent from the ACP registry in one click, your own API key, or a local LLM through Ollama or Unsloth.
  • 🔑 No API key to buy: nothing from me, no Zusia server in between.
  • ⏱️ Install in 2 minutes: jump to Install.

How Zusia works: the paper open in Zotero goes to the Zusia panel, which asks the assistant you already use with your own login (Claude Code, Codex, Antigravity, an ACP agent, or a local Ollama or Unsloth); only that assistant talks to its provider. No Zusia server, no Zusia account, no API key.

1. Ask about the paper

Open a paper and ask. Zusia is the panel on the right of the window, beside your library and the PDF. It follows the paper you select or open; drag its edge to resize it, and ⌥Z (Alt+Z) hides it and brings it back. Turn on Drawing and LaTeX for a diagram and real maths.

Recorded in a real Zotero on a Mac: Attention Is All You Need, a live answer from Claude Opus 5.5 at high effort. 18 seconds, with the wait sped up.

In Zotero, open Zusia's panel beside Attention Is All You Need, turn on Drawing and LaTeX, ask how Q, K and V flow and why attention divides by the square root of d_k, and read Claude's answer with its diagram and equations

▶ Watch in full quality (MP4)

2. Bring any ACP agent

Settings → Zusia → Assistants → ACP agents → Browse the ACP registry. Pick an agent from the official ACP registry, check the command it fills in, and click Add agent. Its own models and reasoning efforts appear in the model menu, and it runs with its own login. Here: Claude Agent, the ACP adapter for Claude.

In Zotero Settings, under ACP agents, browse the ACP registry, pick Claude Agent, let it fill the name, command and arguments, click Add agent and watch its card list Claude's models

▶ Watch in full quality (MP4)

Then ask it something hard. Claude Agent, Opus 5.5 at High, on Adam: is the proof of Theorem 4.1 correct? It finds the step that fails between pp. 14 and 15, states the lemma the proof uses without proving it, and gives a counterexample to that lemma. It also says what this does not show, and marks what it knows from outside the paper (Reddi et al., 2018).

Zusia answers the agent's permission requests itself: a read inside the paper's folder is allowed, anything else is refused.

In Zotero on the Adam paper, open the model menu, unfold Claude Agent, pick Opus 5.5 and High effort, ask whether the proof of Theorem 4.1 is correct, and read the answer: the failing telescoping step, the missing lemma and a counterexample

▶ Watch in full quality (MP4)

3. Follow a proof

Turn on LaTeX. Definitions, lemmas and theorems come back as numbered boxes, and every \ref is a link: click to jump, Back (⌥←) to return.

In Zotero on the Adam paper, ask for Theorem 4.1 in a theorem box and its proof as lemmas; the answer arrives as a numbered theorem and lemmas that link to each other, clicking a link jumps to its lemma and Back returns

▶ Watch in full quality (MP4)

4. Derive it, then draw it

Turn on Drawing and LaTeX together. The derivation and the picture come back in one answer. Here, through Claude Agent: why $q\cdot k$ grows like $\sqrt{d_k}$, and what the softmax does to its gradient without the scaling, drawn to scale.

In Zotero on Attention Is All You Need, pick Claude Agent with Opus 5.5 and High effort, ask why q dot k grows like the square root of d_k and to draw the softmax gradient without scaling; the answer derives the variance and draws the softmax slope against the score gap, scaled and unscaled

▶ Watch in full quality (MP4)

Keep it. Every drawing has a save button: PNG, SVG, or Add to a note, which files it as a Zotero note under the paper.

Under the softmax drawing in the answer, open the save menu, choose Add to a note, and see the note with the drawing appear under Attention Is All You Need in the library

▶ Watch in full quality (MP4)

5. Explain a passage

Select text in the PDF → Explain this. Zusia asks about exactly that passage, quotes it above the answer and keeps it with your clarifications. Ask your assistant about this adds your own question to it.

In Zotero on the ResNet paper, select the first sentence of the abstract, click Explain this, and read an answer that quotes the passage and explains the degradation problem

▶ Watch in full quality (MP4)

6. Didn't click? Ask again, better

One button under every answer. It comes back with the intuition first, then the steps, an example and the usual trap.

In Zotero on the BERT paper, a dense answer about the masked language model, then the Explain better button produces the intuition, the steps and a worked example

▶ Watch in full quality (MP4)

7. Ask about an image

📎 → Current PDF page. The page you are looking at goes with the question, so figures and tables can be asked about. Upload, paste, drop or screenshot any other image the same way.

In Zotero on the Vision Transformer paper, attach the current PDF page and ask what Figure 1 shows

▶ Watch in full quality (MP4)

8. It remembers each paper

Click the paper chip above the message box. The Reading memory sheet shows where you are, the reading map with what you have read and each section's printed pages, and what Zusia remembers: a running summary, what you understood, what is still unclear, how you like answers. A short background call keeps it up to date; /remember adds a note of your own and /forget drops one. Everything in it can be edited or deleted.

On the Adam paper, type /remember I like proofs split into numbered lemmas, then click the paper chip: the Reading memory sheet shows where the reader is, the reading map with page ranges, and the summary and preferences Zusia keeps

▶ Watch in full quality (MP4)

9. Make it yours

Settings → Zusia → Appearance → Layout. Four ways to see the chat. Minimal: the conversation and the message box. Standard: the tools as icons, one click away. Rich: a card for the paper with your reading progress, the tools by name. Visual: your buddy beside each answer, bubbles, prompt cards and colour. The setup wizard asks on first run.

The same short chat in the four layouts, Minimal, Standard, Rich and Visual, in Zotero's light theme above and its dark theme below

Then everything else in Settings → Zusia. Style, buddy, pattern, accent colour, background image and button labels, all updating live in the chat. Glass, corners, font, answer length, level, tone and the system prompt are there too.

In Zotero Settings, switch glass and flat, buddy and pattern, pick the red accent and a background illustration while the panel beside it updates live to red and black

▶ Watch in full quality (MP4)

The eight accent colours: Zotero, Red, Clay, Rose, Violet, Teal, Forest and Graphite

Eight accents. Red on black is the one in every video here.

Everything else, in one line each

Feature How
🔴 Explain a passage Select text in the PDF → Explain this
🟠 Ask about a passage Select text → Ask your assistant about this, then add your question
🩷 Clarifications Every Ask and Explain is saved: highlighter icon → passage, prompt, answer
🟣 Notes Save any answer or drawing as a Zotero note under the paper
🔵 Search 🔍 searches the chats of every paper
🟢 Models Pick assistant, model and reasoning effort from the message box; the menu opens on the assistant in use, and the others unfold with a click or from the keyboard
🟤 Memory /remember a note, /forget one; click the paper chip above the message box to see, edit or reset what Zusia keeps
🟡 Printed pages Ask about "page 18" and the assistant reads the page printed 18, whatever its PDF number
⚫ Setup A visual wizard on first run, including the assistant's voice: a preset or your own system prompt
⚪ Side panel ⌥Z / Alt+Z shows and hides it; drag its edge to resize, double-click the edge to reset; put it on the left, the right or in the item pane in Settings

Install

  1. Choose an assistant: install and sign in to Claude Code, Codex, Antigravity (agy), or an ACP agent.
  2. Download zusia.xpi from the latest release.
  3. In Zotero: Tools → Plugins → ⚙ → Install Plugin From File… → pick the .xpi. Restart if asked.
  4. Open a paper. Zusia appears in a panel on the right and starts the setup wizard. To have it on the left or in Zotero's item pane instead, choose Settings → Zusia → Chat → Where the chat is.

Updates arrive on their own after that: Zotero checks the release feed.

Connect a local model

CLI assistants remain the default and need no API key. Optionally, start Ollama or Unsloth, open Settings → Zusia → Assistants, enter its /v1 URL, check the connection and select an exact server model. Ollama defaults to http://127.0.0.1:11434/v1; Unsloth uses http://127.0.0.1:8888/v1 and its Studio API key.

Provider profiles are inherited by default. Remote endpoints require HTTPS; custom endpoints require an explicit opt-in for extra background calls. See API setup and provider settings for authentication, profiles, capabilities and troubleshooting.

Add an ACP agent

ACP agents live under Settings → Zusia → Assistants → ACP agents. Command Code is there from the start: install it, or remove its card. To add another agent:

  1. Install the agent.
  2. Enter its name and ACP command in the Add an ACP agent form. The command is a name on your PATH, a full path, or a path starting with ~. Put each argument on its own line.
  3. Click Add agent.
  4. If the agent needs a sign-in, use Sign in on its card, or sign in with its own CLI.

Browse the ACP registry fetches the official list and fills the form for the agent you pick, with its repository and license; nothing is installed or started until you click Add agent. For an agent the registry runs through npx or uvx, the form names the package: Add agent then downloads it from npm or PyPI and starts it at once, with your account's permissions, to list its models. For an agent the registry ships as an archive, Zusia gives the archive and its SHA-256: download and extract it yourself, then set Command to the program's full path. Entries with no build for your platform, and entries that need environment variables, are left out.

An agent installed through nvm, fnm or volta is not on the PATH Zotero sees, so add it by its full path, for example ~/.nvm/versions/node/<version>/bin/command-code (for Command Code, remove its card and add it again). On macOS and Linux the folder of that command goes first on the agent's PATH, so the node beside it is found. On Windows Zusia runs no batch file, and an npm .cmd shim starts only when Zusia knows the program behind it, as for Command Code and npx; other npm agents cannot start there, and their card says Cannot start. The registry fills in a native build before npx there, when it has one.

Zusia starts an agent to list its models only when you add it or open its card or its section of the model menu, and gives it 30 s to answer. A list that failed is not asked for again until you click Try again or Sign in on the card; the card and the menu say why it failed.

Choose the model and reasoning effort from the chat box. The models are the agent's own; the effort is passed on when the agent offers that level. An agent that supports images receives attached images with the question.

What the assistant reads

  • 📄 The paper's full text, as Zotero extracts it from the PDF (split by page), EPUB or web snapshot. Answers cite pages as (p. N).
  • 🎯 Where you are. The page on screen and the passage you selected come first, with the pages you have turned to so far. Antigravity, which cannot read files, gets the pages that fit, chosen around that page and the question, and can ask for a few more.
  • 🗺️ A reading map: the printed page labels, the outline with page ranges, and where each equation, figure and table is. A book is split into section files, whatever its length.
  • 🧠 What it remembers about this paper: what you understood, what is still unclear, how you like answers, your /remember notes and a running summary. Every few questions a short call brings it up to date (Claude Haiku, Antigravity, an ACP agent with the model and effort you chose for it, or the selected API model). Custom API endpoints and ACP agents require an explicit opt-in for these extra calls. Codex does not run background memory jobs.
  • 🏷️ Metadata and your annotations: title, authors, abstract, highlights and comments.
  • 🚫 No text, no guessing. For a scanned PDF with no text layer, the assistant says it cannot read the paper instead of answering from the abstract.

Privacy

  • 🖥️ CLI assistants and ACP agents run on your computer with your own login. Zusia has no relay server. API backends connect directly to the URL you configure, using its own authentication.
  • 📄 They get the paper's full text, metadata and your annotations, its reading map, your reading progress and its memory, plus any image you attach. The CLI or agent sends them to the provider behind it, as it does with anything you type into it.
  • API backends send selected document excerpts, reading context, conversation and optional images to the configured endpoint. A local URL can still route to a cloud model if the server is configured that way. Zusia never silently falls back to another provider.
  • 🔒 Zusia answers an ACP agent's permission requests itself: a read or a search is allowed once, and only when every path it names is inside the paper's folder. Changes, commands, network calls, and reads elsewhere or naming no path are refused. This binds only an agent that asks: what an agent does with its own tools without asking follows its own settings.
  • 🔕 To send only the metadata, abstract and annotations, turn off Settings → Zusia → Chat → Send the paper's full text. Track reading progress in the same card stops noting the pages you turn to.
  • 🧠 Keeping the memory takes extra calls to the same assistant or API, in the background. API memory uses the selected model and can consume its quota or keep a local GPU busy. Extra background calls to custom endpoints are off until you enable them in that endpoint's assistant card, and an ACP agent runs them only once you turn on Background memory on its card. Turn jobs off in the Memory sheet (click the paper chip). Antigravity stores each of its background calls in your agy conversation history. ACP agents may keep these calls in their own session history.
  • 📁 Chats, clarifications, images, the reading map, your reading progress and the memory stay in zusia/ inside Zotero's data folder.

For developers: build, test, release, record the videos

Build

npm ci
npm run build        # packages the committed browser bundle into zusia.xpi
npm run vendor       # regenerate the bundled SSE parser after updating its dependencies

Test

npm test             # unit tests (jsdom): rendering, settings, wizard, backends, repo checks
npm run test:api:zotero       # built XPI in an isolated Zotero profile, against a loopback fixture API (ZOTERO_BIN to override; Python needed)
npm run test:api:live         # opt-in real provider checks; configuration below
npm run shots        # screenshots of the UI in headless Firefox (optional)
npm run test:zotero          # the checks inside a real, headless Zotero (macOS app, or Flatpak on Linux)
npm run test:zotero:linux    # the same in Docker, against the official Linux build
npm run test:zotero:windows  # the same in the Windows build under Wine, in Docker
ZUSIA_BACKGROUND=path/to/illustration.jpg npm run videos   # re-records the README videos (macOS)
INSIDE=1 ZUSIA_BACKGROUND=path/to/illustration.jpg npm run videos     # the same, filmed from inside Zotero: no permissions
REHEARSE=1 ZUSIA_BACKGROUND=path/to/illustration.jpg npm run videos   # walks the same scenes without recording

CI runs both the general and API fixture suites in official Zotero 7, 8, 9 and 10 Linux builds. To include the API suite locally, use NATIVE_API=1 npm run test:zotero:linux. The native fixture suite also accepts ZUSIA_API_UPGRADE_XPI=/path/to/previous.xpi to check an actual package upgrade, including encrypted-key persistence when Zotero exposes its OS key store, model/profile selection and synthetic history.

Real-provider checks are separate from fixtures and require an explicit endpoint and installed model. Set ZUSIA_LIVE_BACKEND (ollama or unsloth), ZUSIA_LIVE_URL (including /v1) and ZUSIA_LIVE_MODEL (exact ID). If authentication is needed, pass ZUSIA_LIVE_KEY through the process environment; the probe keeps it only in memory. Optional ZUSIA_LIVE_IMAGE points to a synthetic green PNG for vision verification. ZUSIA_LIVE_CONTEXT_TOKENS explicitly applies an Ollama context override; ZUSIA_LIVE_OUTPUT_TOKENS changes the default 1024-token output budget. The probe checks streaming, usage, profiles, non-streaming, tools and reasoning when declared, Stop and a Zotero restart. It uses a new profile and synthetic document; Unsloth must already have the selected model and saved profile loaded, otherwise a read-only guard stops the run. Ollama may load its selected local model. It never downloads models or silently changes providers. Responses are model-dependent, so a failed evidence or tool assertion needs inspection even when transport succeeds. Results and the disposable profile are written under test/out/; remove that run directory after retaining the report. ZOTERO_BIN, ZUSIA_LIVE_OUT and ZUSIA_LIVE_TIMEOUT override the executable, output directory and timeout in milliseconds. Both runners refuse a nonempty output directory.

The videos are recorded in a real Zotero with its own demo profile and library, so your library is never used. The scenes move the real pointer: don't touch the Mac while they run. Needs ffmpeg, cliclick, the claude CLI signed in, npx for the ACP scenes (they add Claude Agent from the ACP registry), and Screen Recording and Accessibility permission for the app the terminal runs in. With INSIDE=1 neither permission is needed, nor cliclick: Zotero draws its own window into every frame, clicks and typing reach it as events, and the pointer and the window's buttons are drawn into the film afterwards, so the Mac's pointer stays yours; keep the demo window uncovered while it runs. The videos on this page were made this way. With REHEARSE=1 nothing is recorded, the pointer stays where it is and no assistant is called, so neither permission is needed: every scene is walked through with events sent to Zotero and a canned answer, and what the window shows at each step is saved under ~/.cache/zusia-demo/rehearsal/. Run it after the interface changes, to see that the scenes still find their way.

Release

Bump version in package.json and src/manifest.json, then tag it:

git tag v1.1.0 && git push origin v1.1.0

The tag is what releases. .github/workflows/release.yml refuses to run if the tag and the two versions disagree, then runs the tests, builds the .xpi, writes updates.json and attaches both to a GitHub release. Pushing to main never publishes anything.

New behaviour starts with a failing test; see CONTRIBUTING.md.

Support

Zusia is free, and every feature is in the free release. If it saved you an afternoon on a hard paper, you can buy me a breakfast: an espresso is $1.

An issue, an idea or a pull request counts as much as a donation. See CONTRIBUTING.md.

Credits

Icons: Phosphor Icons (MIT). Maths: KaTeX (MIT) and Latin Modern Math (GUST Font License). The study buddies are original to this project; the illustrations were made for Zusia with Google Gemini. Papers in the videos: arXiv 1706.03762, 1512.03385, 1810.04805, 2010.11929, 2005.14165, 1412.6980. Details in THIRD_PARTY_NOTICES.md.

Zusia is MIT licensed. See LICENSE.

探索相关项目

加载中…