Flash
# flash
**Turn any YouTube talk into flashcards you'll actually remember.**
Paste a link into your AI agent. flash turns the podcast or lecture into a short deck of its best ideas, each backed by the speaker's own words. Then it brings every card back right before you'd forget it.

- **No API key.** Your own agent writes the cards. flash never calls an AI model itself.
- **Works where you already are:** Claude Code, Codex, Cursor, or any agent that can run commands.
- **Your decks stay on your computer.** Nothing is uploaded.
---
## How it works
1. **You say:** `make flashcards from https://youtu.be/...`
2. **flash fetches the transcript** and gives your agent clear rules for writing good cards.
3. **Your agent picks the ideas** worth keeping and skips the small talk.
4. **flash checks every quote** against the video, then opens the deck in your browser.
You get three kinds of cards:
| Card | What it's for |
|---|---|
| **Question** | Makes you think about how or why something works |
| **Did you know?** | A surprising fact worth repeating |
| **Lesson** | The big takeaway the talk was building to |
---
## Install
First, install [uv](https://docs.astral.sh/uv/getting-started/installation/). It runs flash for you, and it downloads Python if you don't have it.
Then pick your agent:
### Claude Code
```bash
claude plugin marketplace add Shanmuud/Flash
claude plugin install flash@flash
```
### Codex
```bash
codex plugin marketplace add Shanmuud/Flash
codex plugin add flash@flash
```
### Cursor
Add this to `~/.cursor/mcp.json`. The first time, Cursor asks you to approve the server: choose **Approve**.
```json
{
"mcpServers": {
"flash": {
"command": "uvx",
"args": ["--from", "git+https://github.com/Shanmuud/Flash.git@main", "podcast-flashcards"]
}
}
}
```
### Any other agent
```bash
npx skills add Shanmuud/Flash
```
> flash is an open-source plugin. It is not made by or affiliated with Anthropic, OpenAI or Cursor.
---
## Use it
Tell your agent:
```
make flashcards from https://www.youtube.com/watch?v=VIDEO_ID
```
A few minutes later your deck opens in the browser. On the deck page:
| Key | What it does |
|---|---|
| `R` | Review today's cards |
| `Space` | Show the answer |
| `1` / `2` | Remind me again / Got it |
| `U` | Undo |
| `N` | Switch between cards and notes |
| `/` | Search |
| `?` | All shortcuts |
Come back later and flash offers to **continue where you left off**, both on the deck and in your library. On a phone, Review and Notes stay in reach at the bottom of the screen.
**Other things you can say:**
- `quiz me on my flashcards` to review in the chat
- `set up my flashcard profile` to set your level, interests and language
**Where things live:**
- Decks are in `~/.podcast-flashcards/decks/`.
- Each deck comes with an **Anki** file (`flashcards.apkg`) and a **Markdown** file.
- Stars, notes and review progress are saved in your browser.
---
## FAQ
**Which videos work best?**
Podcasts, lectures, interviews and explainers with captions. Gaming, music videos and vlogs get a polite "this isn't worth a deck".
**What if YouTube blocks the download?**
flash waits and retries. If it still fails, paste the transcript into the chat, or give flash a cookies file:
```bash
export PODCAST_FLASHCARDS_COOKIES_FILE=~/cookies.txt # a Netscape-format cookies.txt
# or, on Windows, Firefox cookies usually work best:
export PODCAST_FLASHCARDS_COOKIES_BROWSER=firefox
```
**Can I keep my decks somewhere else?**
Yes: `export PODCAST_FLASHCARDS_HOME=~/my-flashcards`
**Can I use it without an agent?**
Yes, with the command line:
```bash
alias flash='uvx --from git+https://github.com/Shanmuud/Flash.git podcast-flashcards'
flash fetch "https://www.youtube.com/watch?v=VIDEO_ID" # get the transcript
flash guidelines # the card-writing rules
flash save deck.json # check and build your deck
flash open # open your library
```
Write `deck.json` yourself (the format is in [CONTRACT.md](CONTRACT.md)), or paste the transcript and guidelines into any chat model.
---
<details>
<summary><b>For developers</b></summary>
### Run from source
```bash
git clone https://github.com/Shanmuud/Flash.git && cd Flash
uv run --extra dev pytest
```
To try the plugin from your checkout: `claude plugin marketplace add /path/to/Flash` (or the same with `codex`).
### The MCP tools
| Tool | What it does |
|---|---|
| `fetch_video(url)` | Gets the title, chapters and captions, split into sections |
| `get_card_guidelines()` | The card-writing rules plus your profile |
| `save_deck(deck)` | Checks the deck, then writes `deck.json`, the web page, Anki and Markdown |
| `list_decks()` | Lists your decks |
| `refresh(slug)` | Rebuilds deck pages after an update |
| `get_profile()` / `update_profile(patch)` | Your preferences |
The data format is in [CONTRACT.md](CONTRACT.md). The research behind the card rules is in [research/](research/).
After updating flash, run `podcast-flashcards refresh` once so older decks get the new pages.
</details>
---
## Credits
The reading format is inspired by [Dwarkesh Patel's flashcards](https://flashcards.dwarkesh.com/) (not affiliated). The card rules build on Andy Matuschak's writing about spaced repetition.
MIT licensed.
TDQS
Scored across 7 tools
Each tool maps to a distinct step or resource: fetch_video (ingest), get_card_guidelines (rules), save_deck (write), list_decks (read index), refresh (re-render static output), and get/update_profile. The only mild overlap is save_deck vs refresh, since both affect deck output, but the descriptions clarify that refresh regenerates HTML without touching JSON.
Names follow a verb_noun convention throughout (get_card_guidelines, save_deck, list_decks, fetch_video, get_profile, update_profile). The lone outlier is the bare verb 'refresh', a minor deviation but still clear in context.
Seven tools is well-scoped for a video-to-flashcard pipeline, with each tool earning its place across the ingest, authoring, save, and personalization stages. Nothing feels padded or redundant.
The core workflow (fetch video → guidelines → save deck → list) is covered, including profile get/update. However, the deck lifecycle has gaps: there is no way to read a single deck's contents for editing, delete a deck, or rename one, so agents can hit dead ends after save_deck.