Anki Enforcer is designed for people who tend to leave Anki before finishing their reviews. You choose the decks that matter, and while they’re still incomplete for the day, the add-on keeps you on track.
It works by checking whether your selected decks still have cards due. If they do, it can block closing and minimizing Anki, keep the main window at full size, and attempt to bring it back into focus if you switch away. Once those decks are complete, all restrictions are lifted and Anki behaves normally again.
What it does:
blocks closing while required decks are incomplete
blocks minimizing
forces the main window back to full size if you try to shrink it
shows warning popups and attempts to reclaim focus if you switch away
supports a fallback password bypass, for those emergency cases
protects settings once enforcement is active
supports optional Windows auto-start
Link to Github repo: https://github.com/laurenshout/Anki_Enforcer