Lectern LogoLECTERN

Every release, accounted for

Changelog

Generated from the CHANGELOG in the repository — the same file every release is cut from.

2.18.0

Added

  • Select slide text to start a card. The slide next to your cards is now real text. Select a passage and "+ Create card from selection" opens a new card with it as the question; with a card already open, the selection fills the answer. n and "+ New card" pick up the selection too.
  • See what each card quotes. The wording a card takes from its slide is marked on the slide. Hover a mark to see that card's wording stand out, click it to jump to the card. What is left unmarked is what the deck does not cover yet.
  • Slide text, readable. A "Slide text" section under the slide shows the page's text with the same marks, for slides too small to read.
  • A slide panel as wide as you want. Drag its left edge; Lectern remembers the width. The filmstrip lights the slide that is open, even when it has no cards. All four contributed by @leonhardmuehlmeyer (#103, #104).

Changed

  • Lectern runs on Gemini 4 Hydrogen. Google's new model, released on 12 November, replaces both Gemini 3.8 Flash and Gemini 3.1 Pro. In blind reviews of decks from two test lectures it scored 24 out of 30 where 3.8 Flash scored 19: Flash kept adding details the lecture does not state, five to eight cards per deck, and Hydrogen at most two. It was no slower. If you ran on either Gemini model, your setting moves to Hydrogen on its own. Hydrogen costs $1.50 in and $7.50 out per million tokens: less than 3.1 Pro did, and twice what 3.8 Flash costs until the end of the year, when Flash's introductory price ends and the two cost the same. The cost calibration is per model, so the first three runs on Hydrogen fall back to the correction learned across all your runs.
  • One fact, one slot in the concept map. Right after the lecture is mapped, a fact the map lists twice, within one concept or under two, is merged, and a map split finer than the lecture supports is sent back once to be tightened. The deck size and the repeat check follow the cleaned map, so a fact no longer earns two cards by sitting in two places, and an over-split map no longer pads the deck. The activity log says when the map was tidied.
  • Answers that say more than the lecture get rewritten. A card whose answer is not on its cited page goes back to the model once, to be rewritten against the page or pointed at the page that holds it. The quality pass must then rewrite or remove every card still flagged, unless the answer really is on the slide, inside a figure for example. The check now also reads the pages just before and after the cited one, so a point that runs over onto the next slide is no longer flagged.

Fixed

  • An OpenAI request that gets no answer now gives up after five minutes and is tried once more, instead of waiting ten minutes and being tried five more times. A run could sit for most of an hour on one stuck request. The countdown says "No answer in time" rather than "Connection lost", and the error names the hang instead of your internet connection.

2.17.0

Added

  • Decks sized by the lecture, not by its page count. While mapping the lecture, the model now lists the distinct testable facts of every concept, one card each, and the deck is their sum, held within sane bounds of what the document's length suggests. The ledger names the facts no card tests yet, so a run that stops early sees what it would leave out. Budgets are a ceiling, not a quota: the run covers every concept with a first card before any gets a second, and may stop early when the material runs out. A short, dense script now gets the twenty-odd cards it carries instead of five.
  • Overview, Standard, Thorough. The deck-size slider is replaced by three depths. Standard gives every facet its card, an overview halves that and drops minor concepts, and Thorough adds why/how/compare/apply cards once every facet has one, never a second card on the same fact. The choice is remembered, and the start screen shows the size to expect as a range that learns from past fresh runs.
  • Every card names the fact it tests. Cards carry the ids of the concept-map facets they test, and a new card that only re-tests facts the deck already has is turned away, so the same fact no longer arrives twice, once as a cloze and once as a question. The ledger and the stop check name the facts no card tests yet.
  • A check on answers that say more than the lecture. A card whose answer is mostly words its cited pages never use is flagged "check the source", and the quality pass is told to bring it back to the lecture. Extend runs fill exactly what the deck lacks, concept by concept.
  • Write cards by hand, next to the slides. "+ New card" or n opens a composer above the deck: question and answer, or fill in the blank with a live preview. A hand-made card carries a "manual card" badge, takes its place after the last card from the same slide, and counts toward coverage for the concepts it links. "View slides" on the start screen opens a lecture without a generation run, so cards can be written before a key is saved or after a limit is hit. Contributed by @leonhardmuehlmeyer (#82).
  • OpenAI and Claude, next to Gemini. Pick a GPT or Claude model in Settings and add a key for its provider; each provider's key has its own keychain entry, and the Gemini key you already saved stays where it is. Errors name the provider they came from and link to its console, rate limits, billing and status pages. A request a model declines on safety grounds now says so, instead of reading as a failed run. A Claude workspace that hit its spend limit is reported as a billing problem.
  • Uploads don't linger. OpenAI and Anthropic keep an uploaded PDF until someone deletes it, so Lectern now removes the lecture from the provider when the session ends (a new run, back to the start screen, or a cancel), and on the next launch removes anything a crash or a quit left behind.

Changed

  • Two downloads: Mac and Windows. One Mac build now runs on Apple Silicon and Intel alike, Windows ships as a single installer, and both keep the same file name from release to release, so the website links straight to them. Lectern no longer publishes Linux packages or the Windows .msi. An installed Linux copy stays on its current version; to go further on Linux, build from source.
  • One engine, three providers. The pipeline talks to a provider-neutral client; Gemini keeps its server-side conversation, OpenAI chains responses the same way, and Claude carries an append-only transcript whose system prompt and tool set never change mid-run, so its prompt cache holds and the document is billed at the cache-read rate after the first turn. Reported costs count cached input at its discounted price.
  • Costs priced turn by turn. A long prompt can move a request into a provider's higher rate (Claude Haiku above 100K tokens, GPT-6 Luna above 272K), cache writes carry Claude's premium, and the estimate before a run uses the same rates.
  • Concept maps at the lecture's own grain. The concept map now aims for a size that follows the amount of material (about one concept per slide that earns a card, or per 300 characters of a script), with short labels instead of sentences. Models that split finely and models that group broadly now describe the same lecture alike, so coverage means the same thing whichever model ran, and a short dense script no longer collapses into one concept per section heading.
  • Honest quality-pass notes. The model's closing note on the deck now states coverage as the ledger measures it instead of claiming everything is covered.
  • Strict schemas where the provider can hold them. On OpenAI, card submissions and the concept map are checked against their schema by the provider itself; on Claude, the concept map is. (Claude's strict mode cannot compile all eight card tools of a session at once, and the gate still catches a malformed card there.)

2.16.0

Added

  • Errors name the fix. Every failure is now described in one place and says what happened and what to do about it. The banner leads with the fix ("Open Settings", "Check Anki again"), offers "Try again" only when trying again can work (a spent daily quota gets no retry button), and links to where the fix lives: your key, your rate limits, Gemini's status page, the AnkiConnect add-on. An error Lectern does not recognise comes with a bug report already filled in with the version and what it showed.
  • Links out of the app. Get a key, get AnkiConnect, what's new and report a problem are one click away where they are needed, and Settings shows the version at its foot. After a send, "Open in Anki" opens Anki's card browser on the deck.
  • A setup checklist on the empty home screen. The Gemini key and Anki each get a row that says what they are needed for (generating needs only the key, sending needs Anki), with a link and a button to fix each. It disappears once both are in place.
  • Waits are visible. When Gemini rate-limits a run, a countdown sits under the current step ("Rate limit · retry in 0:47") instead of a pulsing dot with the reason buried in the log.

Changed

  • A calmer review screen. Once a run is done its steps fold into one line ("Finished in 3:10") and the activity log gets the room. The sidebar no longer repeats the page coverage the filmstrip shows or the card count the send bar shows, and the concept map card carries the gaps in one line. The card count above the list appears only while a filter hides cards, the shortcut hints retire once you have used a shortcut (? brings them back), and the send bar's second line keeps to the numbers that change what a send does. A card's source quote now appears next to its slide, opened from the page number, instead of behind a toggle on every card.
  • A shorter activity log. Rejected cards, cards Anki already had and cards that failed to send each fold into one line that opens to show every card and why. Routine progress lines, retry waits and the cost-versus-estimate line from 2.14.0 are gone; the estimate still learns from every run. Gemini's review notes are quoted under the quality-pass line.
  • Plain language throughout. Quality flags are written out ("the quote is not on the cited page"), the log talks about cards and lectures rather than tools and rounds, counts have real plurals, and the title bar shows Anki or Gemini only when something is wrong. The optional focus field waits behind a link, and the one-time "Apply design to earlier synced cards" moved under Advanced.
  • Updates are noticed while the app stays open. The update notice checks again every six hours and when you return to the window, and links to what's new.
  • A spent daily quota or spending cap fails straight away. Lectern used to retry it five times first, which only made you wait for the same answer.
  • Exports read a little differently. Concept lines in the copied outline and the study guide read "Gradient Descent: foundational", and a saved study guide is named "ML Lecture 2 - Study guide.md".

Fixed

  • "Try again" after a failed run asks before discarding cards that were never sent to Anki. It used to start over silently, right under a banner promising those cards were kept.
  • The error banner no longer says twice that your cards are kept.
  • "Sent 1 cards" and the other plural slips.
  • Error messages stay until you dismiss them instead of vanishing after five seconds.
  • A malformed API key, which Gemini reports as a bad request rather than a rejected one, is now recognised as a key problem and sends you to Settings.

2.15.0

Changed

  • Lectern runs on Gemini 3.8 Flash. Google's newest Flash, released on 2 September, is built on 3.7 and tuned for long-running agentic work, which is exactly what the generation and review loops are. It costs the same as 3.7 at the introductory rate ($0.75 in / $3.75 out per million tokens until the end of 2026), so a typical run costs what it did before. A saved 3.7 setting moves forward automatically, exactly as 3.6 did before it; Gemini 3.1 Pro remains your choice to make and is left alone. The cost calibration is per model, so the first three runs on 3.8 fall back to the correction learned across all your runs.

2.14.0

Added

  • The cost estimate learns from your runs. Every completed run now writes down what was estimated and what Gemini actually billed, in both tokens and dollars, and the activity log states the two side by side. Future estimates fold in the median correction from that history, per model once a model has three runs of its own, so the number on the home screen drifts toward what your lectures really cost instead of staying a fixed guess. Follow-up requests and aborted runs stay out of the ledger: they were never estimated, so they would only distort it.

Changed

  • Lectern runs on Gemini 3.7 Flash. At its introductory rate the new Flash is half of 3.6's price per token ($0.75 in / $3.75 out per million, against $1.50 / $7.50), so a typical run costs about half until the rate doubles back at the end of 2026. A saved 3.6 setting moves forward automatically, exactly as 3.5 did before it; Gemini 3.1 Pro remains your choice to make and is left alone.

2.13.0

Added

  • A session can leave as a study guide. The concept sheet's Copy menu becomes an Export menu: alongside the outline and Mermaid exports, you can now take the whole session with you as Markdown, with objectives, concepts with per-concept card counts, and a gap section naming the high-importance concepts and pages no card covers. Copy it, or save it as a file.

Fixed

  • PDFs open again on Intel Macs. pdf.js 6 calls two JavaScript builtins newer than the WebKit those machines can run (Intel Macs top out at macOS Sequoia, whose Safari 18 lacks Map.getOrInsertComputed), so every PDF failed with "getOrInsertComputed is not a function". Lectern now installs the missing methods itself before pdf.js loads. Anything with Safari 16.4 or newer works again.

Changed

  • Lectern runs on Gemini 3.6 Flash. The new Flash is cheaper per output token ($7.50 per million against 3.5's $9.00) and writes fewer of them — Google measures about 17% fewer — so a typical run costs roughly 5–7% less end to end. Most of a run's bill is the lecture PDF being re-read on each round, which is why the headline saving lands softer than the price drop. It also plans better: it reaches the same deck in fewer tool calls and fewer rounds, and edits during review with more precision, so the loop spends less time going in circles.
  • A deck you already had keeps the model you already chose — unless that model is gone. A saved setting wins over the built-in default, so bumping the default alone would have left every existing install on 3.5 Flash, quietly paying the older rate forever. Settings now carry a retired model forward to the one that replaced it, and a model id Lectern no longer offers falls back to the default rather than being sent to the API and rejected. Choosing Gemini 3.1 Pro is still your choice to make, and it is left alone.
  • Gemini 3.6 retires the temperature, top_p and top_k sampling knobs. Lectern never used them — card tone and length come from the prompts and the quality gate — so nothing about the cards changes here.

2.11.0

Fixed

  • Tags keep the letters of every language. Tag parts were filtered to ASCII, so a German lecture filed itself under K-nstliche-Intelligenz, Übungsblatt lost its first letter entirely, and a CJK topic cleaned to nothing at all — which silently collapsed a level of the hierarchy for every card in the run. Anki tags are Unicode; only whitespace and quotes ever needed handling. A template with a literal space in it no longer turns one tag into two, and Title Casing leaves ReLU and kNN alone.
  • Cloze deletions that Anki would truncate are rejected. Anki closes a deletion at the first }}, so {{c1::\(e^{-x^{2}}\)}} — math inside a deletion, which the prompt itself asks for — reached the student cut in half. The gate now catches it, and the formatting rules say how to avoid it.
  • Re-sending a card updates its tags, not only its fields. A renamed deck, an edited topic or a changed tag template never reached a note that was already in Anki. Clearing a cloze card's "Back Extra" now clears it in Anki too, instead of leaving the old hint on the card forever.
  • Editing a card that came from Anki keeps it a card that lives in Anki. The edit used to strip the flag that marks it, which unlocked a Remove button that removed nothing from Anki and dropped the edit it was meant to carry. Its provenance also stops being rewritten with the current lecture's name and no pages.
  • Duplicates are recognized before the send, not during it. Cards Anki already holds are left alone and reported as such, rather than attempted, refused, and counted as failures — and every per-card outcome now appears in the activity log the send bar points at.
  • A hand edit passes the same gate as a model edit. The quality badge used to freeze at generation time, so a fixed card stayed flagged and a card broken by an edit went out looking clean.

Changed

  • Grounding is checked, not taken on trust. Lectern already read the PDF's text; it now keeps it, and flags a card whose source excerpt is absent from the page it cites. Pages the document does not have are rejected outright — cards citing page 900 of a 10-page lecture used to pass and push page coverage above 100%.
  • The gate checks what the renderer will show. Markdown, $…$ math, more than two cloze deletions, and an answer that only repeats its question are rejected; yes/no fronts and cards that point at the slide ("as shown above") are flagged for a second look.
  • The coverage ledger stopped believing the model about the document. It counts against the real page count, a high-importance concept needs a card that claims it rather than one that merely cites its page, rephrased duplicates are caught before they land, and the question mix is named back to the model so a deck of forty definitions is visible while it is being written. An extend run can now say it has nothing worth adding, which the brief always invited and the gate always refused.
  • The review shows what the student will see. Cloze cards can be shown as asked instead of only as answered, "Back Extra" is rendered, and tables, code and ordered lists preview the way Anki renders them. Search reads the card rather than its HTML.
  • The deck field says what the name means in Anki — an existing deck, an empty one, a new one it will create, or that Anki cannot be reached to answer. The tag template names its placeholders, flags unknown ones, and shows the tags a card would carry.
  • Note types survive their own upgrades. A theme switch no longer rewrites card templates, so a {{Tags}} line or type-in box added in Anki stays; "Apply design to earlier synced cards" keeps fields it has no home for instead of dropping them, refuses to make a cloze note out of a note with no deletion, and leaves notes whose model makes more cards than the target. Card size follows Anki's own styling knob again, and missing fonts are re-uploaded rather than assumed.

Accessibility

  • The focus ring is visible on paper (it was 2.05:1), dimmed text on the desk meets 4.5:1, error messages and the activity log can be selected and copied, the card grid is a listbox that moves focus with the selection, the concept sheet behaves like the modal it declares itself to be, the filmstrip is one tab stop instead of seventy, and the update notice no longer covers the slides it was sitting on.

2.10.0

Added

  • Extend a deck instead of replacing it: re-run a lecture into a deck that already holds cards and Lectern reads them back out of Anki first, then generates only what is missing. The deck field offers "Don't repeat what this deck already covers", on by default, and the size slider becomes "Cards to add" — 40 on top of the 87 you already have, not 40 in total.
  • The cards already in the deck appear in the session, dimmed and labelled, so a short run explains itself. They are never rewritten or deleted by the quality pass — the model is not shown them at all — and they are not re-sent to Anki. Editing one by hand opts it back into the next send.
  • Depth instead of a shrug: extending a deck that already covers the whole document used to be able to finish with nothing added, which is technically true and useless. Once there is no breadth left, the ledger switches to depth — the relations between concepts, pages carrying a single card, concepts no card names outright — and the run keeps going until it has added what you asked for or genuinely has nothing worth adding, which it will say.

Fixed

  • A deck holding several lectures no longer confuses whose pages are whose. Page numbers only mean something next to their own document, so cards from another lecture keep their place in the duplicate check but do not mark this lecture's pages as covered. Matching survives the model rephrasing or abbreviating a title between runs, while treating the lecture number as decisive — titles within a course are identical apart from it.

2.9.0

Added

  • The home view shows the run's estimated token count next to the price. The ceiling most people meet first is a quota, not a bill.

Changed

  • Rate limits are visible instead of silent: a throttled run used to look like a hung one. Every wait now appears in the activity log — "Gemini rate limit reached — waiting 30s (retry 1 of 5)" — and the server's own retry-after is honoured over Lectern's backoff.

Fixed

  • When the retries run out, the error no longer promises a retry that is not coming. It tells apart a spent per-minute limit from an exhausted daily quota — waiting only helps for one of them — and says plainly that the cards generated so far are kept.

2.8.0

Added

  • Tells you when the deck is ready: a run that finishes raises a desktop notification and bounces the dock, so you can start it and go do something else. Only when Lectern is in the background — if you are watching the cards land, you already know. Failures notify too, since that is exactly what you walked away expecting not to happen. There is an off switch in Settings.

2.7.0

Changed

  • Room to write a real brief: the focus field holds 600 characters instead of 180, and the follow-up composer 1000 instead of 500. A counter appears once either is more than half full.
  • The follow-up composer is now a textarea that grows to fit what you typed — a one-line input was hiding requests that ran to a paragraph. Enter still sends; Shift+Enter breaks the line.
  • Line breaks in a focus note survive as separators instead of being flattened to spaces, so a pasted list keeps its item boundaries. They are still never sent as newlines, which is what stops a pasted note from impersonating an instruction.

2.6.0

Added

  • Copy the concept map: the map sheet gains a Copy button with two formats. Outline produces Markdown with each concept's relations nested beneath it, so RemNote, Notion, and Obsidian turn them into child items rather than a flat wall of text. Diagram produces a Mermaid graph that renders in the same apps without a plugin, with importance carried in the node shape as well as the colour so the ranking survives renderers that ignore styling.

Changed

  • The concept list reads like the outline it exports: section headings stay put while their group scrolls and carry a count, each concept's relations sit beneath it in the same wording the export uses, and difficulty is a three-rung meter instead of the word "foundational" repeated down every row.
  • Page references in the list no longer wrap mid-row: they read "p. 12, 13, 14" with the overflow collapsed into a "+2" and the full list in the tooltip.

2.5.0

Added

  • Ask for more cards: once generation finishes, the activity log grows a small composer. Type a request in plain language — "add cards on the trolley problem", "emphasize the Rawls slides" — and Lectern adds matching cards to the deck. Requests are additions only: cards you already reviewed are never edited or removed, new cards pass the same quality gate, and duplicates of existing cards are dropped. Your request and the model's reply become part of the session minutes.
  • Outside-source cards, honestly labeled: if a request asks for material the lecture doesn't contain, the card is still written but carries an "outside source" label and stays out of the Anki send until you include it with one click. Page citations are never invented.

Changed

  • After the deck is complete, the sidebar counts the live deck size instead of the original generation budget, so follow-up additions show up immediately.
  • Batch feedback to the model now names duplicate submissions instead of only counting them, and announces truncated lists, so the agent loop stops resubmitting the same cards.

Fixed

  • A network blip mid-generation no longer kills the run: dropped connections retry like server errors, while unrecoverable client errors (a rejected API key, a malformed request) stop immediately instead of retrying for minutes.
  • Tighter desktop shell: a strict content-security policy, and file read access scoped to PDF files.

2.4.0

Changed

  • Activity log redesigned as session minutes: every event is stamped with the elapsed session time, and the model's own words (the quality review summary, the front of a rejected card) appear as quoted excerpts you can expand instead of walls of text. Rejection reasons read as plain language.
  • The quality review summary can now use simple formatting (bold, italic, code, bullet lists) and the log renders it.

2.3.0

Added

  • Concept map graph: the extracted concepts are now drawn as an interactive map. Concepts are sized by importance, connected by the relations Gemini found in the lecture, and lit amber as cards cover them. Click a concept to see its relations, difficulty, and slides; scroll to zoom, drag to pan. The grouped list is still there as a toggle.
  • Concept map card in the sidebar: a live miniature of the map replaces the bare coverage percentage and lights up while cards are generated. Click it to open the full map.

2.2.0

Added

  • Lectern card design in Anki: cards now sync to bundled "Lectern Basic" and "Lectern Cloze" note types that Lectern installs into your collection. Every card shows its topic, where it came from ("ML Foundations · pp. 23-24"), and the exact source excerpt it was graded against, one tap away. Two themes: Evening lecture hall (default) and Nord. Switching themes restyles every synced card at once.
  • Restyle earlier decks: a one-click action in Settings moves cards from previous syncs onto the new note types without losing review progress.
  • Your edits win: if you change the note type styling inside Anki, Lectern detects it and never overwrites your version.
  • Procedure cards: ordered lists where each step is its own cloze card.

Changed

  • Card tiles in the review list match the synced card anatomy (topic line, amber answer rule, source excerpt fold).

Prefer the plain Basic/Cloze note types? Turn the design off under Settings → Card design.

2.1.0

Added

  • Automatic updates: Lectern now checks for new versions on launch and offers to install them in place. Update packages are cryptographically signed and verified before anything is replaced. On Linux this applies to the AppImage only.

Installs of 2.0.0 predate the updater, so this last hop is a manual download.

2.0.0

Complete from-scratch rebuild as a Tauri 2 desktop app.

Added

  • Agentic generation: Gemini plans its own batches through a tool loop (submit_cards / finish_generation) and receives an updated coverage ledger after every batch: which pages, concepts, and relations still lack cards.
  • Grounding gate: every card must carry provenance (source pages, concepts, source excerpt) and pass a quality checklist before it enters the deck.
  • Illuminated filmstrip: real page thumbnails light up as coverage arrives.
  • Agentic quality pass: a whole-deck review loop (update_card / add_cards / remove_cards) with every edit re-gated.
  • Slide peek: click a card's page reference to see the exact slide it came from.
  • Card review with inline editing, search, page filter, undoable delete.
  • Anki sync via AnkiConnect with dry-run preview (create/update/duplicate counts).
  • Cost estimation up front and live token/cost usage during generation.
  • Gemini API key stored in the OS keychain, never on disk.

Changed

  • No backend: the entire pipeline is TypeScript running in-process. The Python/ FastAPI/PyWebView stack of v1 (~40k LOC) is replaced by ~6k LOC including tests.
  • Distribution is a ~10 MB native bundle instead of a PyInstaller archive.

The v1 app lives on the v1 branch.