Sequence Gate
An Anki add-on for learning ordered sequences (digits of π, a list of kings or prime ministers, a poem line by line) where each new item builds on the previous ones.
Anki's slowest built-in pace is 1 new card per day. For a sequence that's often too fast: if you're still shaky on items 3 and 4, adding item 5 just piles on errors. Sequence Gate releases the next card only when every card you've already started in the deck is solid.
How it works
For each deck you configure:
- A card counts as solid when it's in the review state (not learning or relearning) and its FSRS stability is at least
minStability days (default 7). Without FSRS, the card's interval is used instead.
- When every started card is solid, the gate is open, and exactly one new note (the next in the deck's new-card order) is available.
- Otherwise the gate is closed, and no new cards are available.
- Locked cards are suspended and tagged
seqgate::locked. Only cards carrying that tag are ever unsuspended, so cards you suspended yourself are left alone.
- All cards of a note are released together, so forward/reverse siblings arrive as a pair.
Because locking uses suspension, it syncs: AnkiMobile and AnkiDroid respect it without the add-on. The gate itself is evaluated on desktop, so a card you make solid on your phone gets its successor released the next time desktop Anki opens or syncs.
The check runs when your profile opens, after every sync and when you leave the review screen. It changes nothing unless a release or a lock is needed, and every change is a single undoable step.
Install
From AnkiWeb: Tools → Add-ons → Get Add-ons, and paste the code 154068025 (AnkiWeb page).
From source: copy __init__.py, manifest.json, config.json and config.md into a folder named sequence_gate inside your add-ons folder (Tools → Add-ons → View Files), then restart Anki. Or run ./build.sh and double-click the resulting sequence_gate.ankiaddon.
Requires Anki 23.10 or newer (FSRS memory states).
Setup
-
Tools → Add-ons → Sequence Gate → Config, and list your decks:
"decks": [
{"deck": "Sequences::Pi", "minStability": 7}
]
-
Make sure the deck's preset allows at least 1 new card/day. The gate does the pacing.
-
Make sure the deck's new-card order matches the sequence (for example, by order added).
-
Tools → Sequence Gate → Check now. The first run locks every card after the next one.
Tools → Sequence Gate → Status shows each deck's gate, the next card, and which cards are holding it back (with their stability).
Choosing a threshold
With desired retention around 0.9, a new card usually needs a few successful reviews over 1–2 weeks to reach 7 days of stability, so 7 gives roughly one new item every week or two. It slows down automatically when earlier items lapse. Use a higher value for a stricter gate, or a lower one to go faster.
Turning it off
Set "enabled": false on a deck (or remove it), then search tag:seqgate::locked in the browser, unsuspend those cards and remove the tag.
License
MIT