Chat With Your Cards

AnkiWeb addon 1873801775

Adds a review-aware AI chat dock inside Anki that explains current cards, searches collections, inspects study history, and applies only user-approved card edits and practice decks.
AI-generated summary; may contain mistakes.

card-creationainote-managementsearchfiltered-decksbeta

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
0 (👍 0 · 👎 0)
Updated
2026-10-08
Anki versions
25.09~
License
MIT (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
JavaScript, Python, CSS, JSON, HTML
Description language
en

Maintenance

active

  • Last update or commit: 2026-10-15 (17 days before the snapshot).
  • Test files: 38.
  • GitHub Actions workflows: 2.
  • Commits in the last year: 205.
  • Issues: 0 open, 0 closed.
  • Pull requests: 0 open, 3 merged.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
25.09+2026-10-08
History across monthly snapshots

Loading…

Similar addons

Anki Semantic Search

Enables semantic and keyword search across selected Anki notes, generating cited AI answers through local or cloud providers.

aisearch

3 votes 44% approval 👍 3 · 👎 0 ⭐ 3 Anki 25.09.2~ Updated 2026-06-15
Gemini Chat for Anki

Adds an embedded Gemini-powered chat window to the Anki reviewer, offering context-aware grammar explanations, translations, examples, and custom per-deck prompt responses about cards.

aiservice-client

3 votes 21% approval 👍 2 · 👎 1 ⭐ 0 Anki 25.09.2~ Updated 2025-11-20

Description

Ritornello

Explore all Ritornello decks and add-ons.

Chat With Your Cards adds a review-aware AI assistant beside Anki. Ask about the current card, find prerequisites in your collection, inspect study history, and review proposed changes before applying them.

See it in Anki

Understand a card, then improve its question

Type a question, watch the explanation stream, and accept an edit that updates the card front

Ask for context on a simple photosynthesis card, then review a more specific question. Accepting the edit immediately updates the card front. The existing note and card are retained.

Build a focused practice deck

Type a filtered-deck request, review the streamed reply and proposal, then accept to gather five cards

Ask for five photosynthesis cards in a filtered deck. Review the search, card limit, and scheduling behaviour before accepting; the new practice deck appears with all five cards gathered and normal rescheduling disabled.

Recorded in real Anki using the built-in demo backend and a disposable collection. Replies stream through the actual chat UI; accepting each proposal applies the real edit or deck action. Typing is sped up and excess still time is trimmed for readability.

New in 0.1.1

  • Ask chat to change common CWYC settings; each settings change waits for your review, even when collection writes are allowed.
  • Slash commands and skill invocations reach Claude Code correctly; /compact reports completion.
  • Your accepted, rejected, and partial proposal decisions reach the assistant on your next message.
  • Starting a new chat clears the previous chat's review state.
  • The context meter reports current session occupancy correctly.

Requirements

  • Anki 25.09 or newer.
  • The official Claude Code CLI, version 2.1.220 or newer, installed and signed in. Claude Code is the supported AI backend in 0.1.1.
  • macOS or Linux. Windows support is experimental.

If Claude Code is missing, the add-on offers a built-in demonstration mode, setup instructions, and a Re-check action. CWYC does not accept or store API keys.

Safety and privacy

Collection changes use reviewable proposals by default. Destructive operations have confirmation and backup safeguards. Shell and file-writing tools are disabled by default.

Messages and collection context needed for a request are processed through your installed Claude Code CLI. CWYC itself collects no telemetry. See the privacy statement and security model.

GitHub: https://github.com/ritornello-labs/chat-with-your-cards

Support continued development: ritornello.dev/support.

README

Chat With Your Cards

Explore all Ritornello decks and add-ons.

An AI chat dock inside Anki, with the card you are reviewing and the structure of your collection available as context.

Ask for context, watch the reply stream, then approve an edit to the card front

Create a filtered deck through a reviewed proposal

Browse the full gallery.

Chat With Your Cards is built for questions that arise while studying: explain this card, find related material, inspect the surrounding topic, or propose a better note without leaving the reviewer. The agent can search the collection, read notes and cards, summarize deck/tag structure, and prepare changes through a reviewable proposal flow. It can also record native Anki Again reviews on exact cards the learner or an AI grader identifies as wrong, even when those cards are not scheduled today.

Three study moments

Understand the card in front of you. The current reviewer card is supplied as context, so the learner can ask the natural follow-up instead of copying the prompt into a separate chat.

Explaining the current reviewer card

Find the missing prerequisite. The assistant can search the learner’s own collection, explain the conceptual bridge, and suggest a short review path.

Finding prerequisite cards in the collection

Turn a confusion into a proposal. New notes and edits remain pending until the learner reviews the fields, deck, tags, and rationale.

Reviewing a proposed companion card

The captures use a synthetic collection created inside a disposable Anki profile. See the user stories for the scenarios and their product intent.

Status

Public preview, v0.1.1. The core chat, collection tools, note proposals, safe application/revert path, and real-Anki GUI tests are working. This first release is intentionally for technically comfortable users while the supported backend set and installation experience broaden.

Version 0.1.1 adds reviewable chat settings, command dispatch and proposal-feedback fixes, clean new-chat state, and a corrected context meter. See the release preparation.

The supported backend is a locally installed, officially authenticated Claude Code CLI, connected to the add-on through a loopback MCP server. Codex and Pi adapters are planned. CWYC does not accept or store API keys.

Requirements and installation

  • Anki 25.09 on macOS or Linux. Windows is experimental in v0.1.0.
  • Claude Code 2.1.220 or newer, installed and signed in through its official CLI.

Install Chat With Your Cards from AnkiWeb for automatic updates, or download the exact v0.1.1 .ankiaddon from GitHub. File installs do not receive AnkiWeb automatic updates. Restart Anki when prompted, then open the dock with Ctrl+J (Cmd+J on macOS). If Claude Code is not available, CWYC opens in a built-in demonstration mode and shows setup instructions; Re-check switches to the real backend without restarting Anki.

Read PRIVACY.md before use. CWYC sends the prompts and collection context needed for a chat through your installed Claude Code CLI. CWYC itself does not collect telemetry.

What it can do

  • Keep the current reviewer card prominently in context.
  • Search with Anki syntax and inspect notes, cards, decks, tags, and study statistics.
  • Build a cached, annotated map of the collection without stuffing the entire collection into every prompt.
  • Fetch card images as actual visual inputs rather than passing filenames.
  • Propose new notes and edits with deck, tag, note-type, and field constraints.
  • Read and change this add-on's own common settings through chat; every change needs approval in the dock, including in trusted collection modes.
  • Render the note's real card templates before a proposed change is accepted.
  • Show per-field diffs, detect stale edits, and support per-change or whole-session rollback.
  • Fail exact future, suspended, buried, and filtered-deck cards through Anki's native scheduler, with a dedicated confirmation/audit chip.
  • Search with native Anki syntax at card level without collapsing a matching sibling to its note; results include template, deck, hidden, flag, and scheduling context for safe exact-ID selection.
  • Preserve existing hidden state, report it explicitly, and offer a separate “Make available” action that leaves the recorded failure intact.
  • Carry neutral Agent Skills for card authoring, curriculum design, safe delivery, and user-owned conventions learned from accepted edits.
  • Render Mermaid diagrams and opt-in interactive widgets in a restricted sandbox.

Safety model

Content and deck writes pass through the proposal manager, which validates the operation, displays the change, and applies only what the user accepts. Scheduler grading passes through a separate, narrow grading manager backed by a pinned vendored copy of Safe Collection Operations. It uses Anki's native Grade Now/scheduler operations, exact card IDs, stable note GUID preflight, transactions, postconditions, and idempotent event cursors—never direct scheduling-row writes.

In Propose and Ask-each-read modes, grading waits on its dedicated confirmation chip. Auto-accept and Trusted writes may apply it immediately under their existing session caps; Read-only blocks it. Existing suspension and both forms of burial remain after the failure and are visibly offered for removal. Destructive content actions still create a backup checkpoint first.

Card content is treated as untrusted input. The local MCP server binds to a random loopback port and requires a per-session token; inheritance of unrelated user MCP servers is off by default. Sandboxed widgets have an opaque origin, a no-network content-security policy, and no access to the add-on or collection.

Read SAFETY.md for the threat model and COMPLIANCE.md for the distribution and provider-boundary review.

Development

The add-on itself is pure Python and ships without an npm build step. The React/assistant-ui source under ui/ is compiled into the checked-in web bundle used by Anki.

# Lint, type-check, and run unit tests without Anki
make check

# Run the real add-on in disposable Anki under Docker/Xvfb
make test-gui-smoke-docker

# Fast frontend iteration against the scripted replayer
cd ui && npm run dev

The GUI smoke test uses anki-addon-workbench to install the add-on into a disposable profile, drive the real send and proposal paths, manipulate real test notes, and capture light/dark screenshots. It never opens or changes the user's normal Anki profile.

To recreate all three public user-story captures after the complete smoke suite:

CWYC_PUBLIC_SCREENSHOT=1 uv run --group dev \
  anki-workbench smoke --timeout 120 \
  --screenshot docs/images/chat-with-your-cards.png

See tests/gui_smoke/README.md for platform details.

Repository map

Path Purpose
chat_with_your_cards/ Add-on, bridge, tools, proposals, and bundled UI
ui/ React/assistant-ui source and scripted development replayer
tests/ Unit, contract, and disposable-Anki GUI tests
DESIGN.md Architecture, decisions, milestones, and known issues
SAFETY.md Threat model and write-safety invariants
PRIVACY.md Data flow, local storage, and provider boundary
SECURITY.md Security posture and vulnerability reporting
COMPLIANCE.md Distribution and backend compliance review

The .ankiaddon artifact is built deterministically from the tracked release configuration in pyproject.toml.

License

MIT. See LICENSE.

Support continued development: ritornello.dev/support.