Automatically rebuild filtered deck - Enhanced Edition

AnkiWeb addon 1879833347

Fork of Automatically rebuild filtered deck (AI-detected; may be wrong)

3 other versions of this addon exist. Compare versions ↓

Automatically and safely rebuilds all filtered decks on startup, shutdown, or after adding notes, adds Rebuild All and Empty All buttons, and offers configurable rebuild timing.
AI-generated summary; may contain mistakes.

filtered-decksfork-or-reupload

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
3 (👍 2 · 👎 1)
Updated
2026-07-15
Anki versions
25.09.5~
License
AGPL-3.0 (from the GitHub repository)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, JSON
Description language
en

Maintenance

active

  • Last update or commit: 2026-07-15 (109 days before the snapshot).
  • Commits in the last year: 3.
  • Issues: 1 open, 0 closed.
  • Pull requests: 0 open, 0 merged.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.4525.09.5+2026-07-15
History across monthly snapshots

Loading…

Compare versions

The original addon and its forks. The best value in each column is in bold.

VersionWorks on Anki 26.09.3MaintenanceLast activity VotesApprovalGitHub starsNotes
Rebuild All & Empty All for Anki 2.1 original unknown abandoned 16 Mar 2021 👍 14 · 👎 0 78% 5
↳ Automatically rebuild filtered deck supported abandoned 18 Jul 2021 👍 6 · 👎 1 49% 1
↳ rebuild/empty some or all filtered decks (AI-detected; may be wrong) likely abandoned 16 May 2023 👍 24 · 👎 0 86% –
↳ Automatically rebuild filtered deck - Enhanced Edition this addon (AI-detected; may be wrong) likely active 15 Jul 2026 👍 2 · 👎 1 21% 0

Forks can add features or work in a different way. Read the description before you change to another version. Fork detection is incomplete, so other versions can exist.

Similar addons

batch create filtered decks

Creates a filtered deck for every real deck, each with a custom search term, enabling per-deck study of due cards in creation order and syncing to mobile.

filtered-decks

4 votes 51% approval 👍 4 · 👎 0 Anki 2.1.20~ Updated 2020-03-03

Description

This add-on is an enhanced fork of the original “Automatically rebuild filtered decks” add-on. Original: https://ankiweb.net/shared/info/1997713323

It adds Rebuild All and Empty All buttons to the main deck screen and can safely refresh filtered decks automatically.

Fixed: cross-device review progress being overwritten

Previous versions rebuilt filtered decks immediately when the desktop profile opened or closed, before Anki's automatic synchronization. Rebuilding moves cards and marks their records as modified. If AnkiDroid or AnkiMobile had already uploaded a newer review, the stale desktop card could therefore be marked as modified later and overwrite the mobile scheduling state during sync.

This issue is fixed in this release:

  • Startup: sync successfully → verify no changes remain pending → rebuild → sync the rebuilt state.
  • Shutdown: sync successfully → verify → rebuild → sync again → close.
  • If AnkiWeb login, automatic sync, or the pre-rebuild sync is unavailable or unsuccessful, the automatic rebuild is skipped instead of modifying potentially stale cards.
  • Guards prevent recursive sync/rebuild loops.
  • The manual Rebuild All and Empty All buttons remain available.

Issue: https://github.com/Nightwindx/Automatically-rebuild-filtered-deck---Enhanced-Edition/issues/1

Configuration

  • rebuild_after_startup_sync: safely rebuild after a successful startup sync. Default: true.
  • safe_rebuild_on_shutdown: safely rebuild while closing. Default: true.
  • sync_after_rebuild: upload automatic rebuild changes immediately. Default: true.
  • time: optional rebuild timing after adding a note. Default: null.

Keep time set to null when another device may be reviewing concurrently, because add-after-note rebuilding does not perform the same pre-sync cycle.

Important multi-device requirement

The other device must upload its changes before the desktop can receive them. No add-on can protect reviews that still exist only on an offline or unsynchronized device.

README

This add-on is an enhanced fork of the original “Automatically rebuild filtered decks” add-on. Original: https://ankiweb.net/shared/info/1997713323

Adds “Rebuild All” and “Empty All” buttons to the main deck screen to rebuild or empty all filtered decks at once.

New Features

Automatically rebuilds all filtered decks on Anki startup and shutdown. Filtered decks are refreshed when you open or close your profile.

Automatic rebuild when adding new cards Optionally rebuild filtered decks after adding notes.

Configurable rebuild timing Set a timer (in seconds) to limit how often auto-rebuild happens:

null → off (except for Anki startup/shutdown)

0 → rebuild every time you add a card

N → rebuild at most once every N seconds after you add a card

Examples:

  • { "time": null }
  • { "time": 0 }
  • { "time": 30 }

These improvements make filtered decks update themselves reliably whether you add cards, start Anki, or close Anki — while still allowing manual “Rebuild All” and “Empty All” actions.