codigest 0.5.0__tar.gz → 0.7.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. {codigest-0.5.0 → codigest-0.7.0}/CITATION.cff +2 -2
  2. codigest-0.7.0/PKG-INFO +391 -0
  3. codigest-0.7.0/README.ko.md +357 -0
  4. codigest-0.7.0/README.md +365 -0
  5. codigest-0.7.0/docs/demo/demo.gif +0 -0
  6. codigest-0.7.0/docs/demo/make_gif.py +134 -0
  7. codigest-0.7.0/docs/dogfood.md +64 -0
  8. {codigest-0.5.0 → codigest-0.7.0}/pyproject.toml +1 -1
  9. {codigest-0.5.0 → codigest-0.7.0}/server.json +2 -2
  10. {codigest-0.5.0 → codigest-0.7.0}/src/codigest/commands/diff.py +6 -6
  11. codigest-0.7.0/src/codigest/commands/mark.py +22 -0
  12. {codigest-0.5.0 → codigest-0.7.0}/src/codigest/commands/mcp.py +33 -6
  13. codigest-0.7.0/src/codigest/commands/pack.py +267 -0
  14. {codigest-0.5.0 → codigest-0.7.0}/src/codigest/commands/scan.py +1 -21
  15. {codigest-0.5.0 → codigest-0.7.0}/src/codigest/commands/semdiff.py +1 -1
  16. {codigest-0.5.0 → codigest-0.7.0}/src/codigest/commands/status.py +2 -2
  17. {codigest-0.5.0 → codigest-0.7.0}/src/codigest/commands/term.py +2 -1
  18. codigest-0.7.0/src/codigest/core/git_ops.py +28 -0
  19. {codigest-0.5.0 → codigest-0.7.0}/src/codigest/core/resolver.py +2 -2
  20. {codigest-0.5.0 → codigest-0.7.0}/src/codigest/core/runner.py +7 -0
  21. {codigest-0.5.0 → codigest-0.7.0}/src/codigest/core/shadow.py +10 -3
  22. {codigest-0.5.0 → codigest-0.7.0}/src/codigest/core/structure.py +3 -7
  23. {codigest-0.5.0 → codigest-0.7.0}/src/codigest/main.py +19 -12
  24. {codigest-0.5.0 → codigest-0.7.0}/src/codigest/shell/hook.ps1 +27 -34
  25. codigest-0.7.0/src/codigest/shell/hook.sh +181 -0
  26. codigest-0.7.0/tests/test_pack.py +87 -0
  27. codigest-0.7.0/tests/test_shadow.py +14 -0
  28. codigest-0.7.0/tests/test_structure.py +11 -0
  29. {codigest-0.5.0 → codigest-0.7.0}/tests/test_termstore.py +24 -0
  30. {codigest-0.5.0 → codigest-0.7.0}/uv.lock +1 -1
  31. codigest-0.5.0/PKG-INFO +0 -308
  32. codigest-0.5.0/README.md +0 -282
  33. codigest-0.5.0/src/codigest/core/git_ops.py +0 -73
  34. codigest-0.5.0/src/codigest/shell/hook.sh +0 -135
  35. {codigest-0.5.0 → codigest-0.7.0}/.gitattributes +0 -0
  36. {codigest-0.5.0 → codigest-0.7.0}/.github/workflows/publish.yml +0 -0
  37. {codigest-0.5.0 → codigest-0.7.0}/.github/workflows/tests.yml +0 -0
  38. {codigest-0.5.0 → codigest-0.7.0}/.gitignore +0 -0
  39. {codigest-0.5.0 → codigest-0.7.0}/.python-version +0 -0
  40. {codigest-0.5.0 → codigest-0.7.0}/LICENSE +0 -0
  41. {codigest-0.5.0 → codigest-0.7.0}/src/codigest/__init__.py +0 -0
  42. {codigest-0.5.0 → codigest-0.7.0}/src/codigest/__main__.py +0 -0
  43. {codigest-0.5.0 → codigest-0.7.0}/src/codigest/commands/cap.py +0 -0
  44. {codigest-0.5.0 → codigest-0.7.0}/src/codigest/commands/clean.py +0 -0
  45. {codigest-0.5.0 → codigest-0.7.0}/src/codigest/commands/digest.py +0 -0
  46. {codigest-0.5.0 → codigest-0.7.0}/src/codigest/commands/init.py +0 -0
  47. {codigest-0.5.0 → codigest-0.7.0}/src/codigest/commands/tree.py +0 -0
  48. {codigest-0.5.0 → codigest-0.7.0}/src/codigest/config.py +0 -0
  49. {codigest-0.5.0 → codigest-0.7.0}/src/codigest/core/cache.py +0 -0
  50. {codigest-0.5.0 → codigest-0.7.0}/src/codigest/core/common.py +0 -0
  51. {codigest-0.5.0 → codigest-0.7.0}/src/codigest/core/output.py +0 -0
  52. {codigest-0.5.0 → codigest-0.7.0}/src/codigest/core/processor.py +0 -0
  53. {codigest-0.5.0 → codigest-0.7.0}/src/codigest/core/prompts.py +0 -0
  54. {codigest-0.5.0 → codigest-0.7.0}/src/codigest/core/redact.py +0 -0
  55. {codigest-0.5.0 → codigest-0.7.0}/src/codigest/core/scanner.py +0 -0
  56. {codigest-0.5.0 → codigest-0.7.0}/src/codigest/core/semdiff.py +0 -0
  57. {codigest-0.5.0 → codigest-0.7.0}/src/codigest/core/shellhist.py +0 -0
  58. {codigest-0.5.0 → codigest-0.7.0}/src/codigest/core/tags.py +0 -0
  59. {codigest-0.5.0 → codigest-0.7.0}/src/codigest/core/termstore.py +0 -0
  60. {codigest-0.5.0 → codigest-0.7.0}/src/codigest/core/tokenizer.py +0 -0
  61. {codigest-0.5.0 → codigest-0.7.0}/src/codigest/options.py +0 -0
  62. {codigest-0.5.0 → codigest-0.7.0}/tests/test_term_install.py +0 -0
@@ -14,8 +14,8 @@ authors:
14
14
  repository-code: "https://github.com/NaNIsaac/codigest"
15
15
  url: "https://pypi.org/project/codigest/"
16
16
  license: MIT
17
- version: 0.5.0
18
- date-released: "2026-10-15"
17
+ version: 0.7.0
18
+ date-released: "2026-10-17"
19
19
  keywords:
20
20
  - LLM
21
21
  - developer tools
@@ -0,0 +1,391 @@
1
+ Metadata-Version: 2.5
2
+ Name: codigest
3
+ Version: 0.7.0
4
+ Summary: Human-Centered Codebase Context Manager for LLMs
5
+ Project-URL: Homepage, https://github.com/NaNIsaac/codigest
6
+ Project-URL: Repository, https://github.com/NaNIsaac/codigest
7
+ Project-URL: Issues, https://github.com/NaNIsaac/codigest/issues
8
+ Author-email: Isaac Yong <isaacyong@naver.com>
9
+ License: MIT
10
+ License-File: LICENSE
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: MIT License
13
+ Classifier: Operating System :: OS Independent
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.15
16
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
17
+ Classifier: Topic :: Utilities
18
+ Requires-Python: >=3.15.0b1
19
+ Requires-Dist: loguru
20
+ Requires-Dist: pathspec
21
+ Requires-Dist: pyperclip
22
+ Requires-Dist: rich
23
+ Requires-Dist: tomli-w
24
+ Requires-Dist: typer
25
+ Description-Content-Type: text/markdown
26
+
27
+ # Codigest
28
+
29
+ [![PyPI](https://img.shields.io/pypi/v/codigest)](https://pypi.org/project/codigest/) [![Tests](https://github.com/NaNIsaac/codigest/actions/workflows/tests.yml/badge.svg)](https://github.com/NaNIsaac/codigest/actions/workflows/tests.yml) [![License: MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
30
+
31
+ <!-- mcp-name: io.github.NaNIsaac/codigest -->
32
+
33
+ **Hand an LLM your failing command, the code it points at and your changes, in one paste.**
34
+
35
+ [한국어](README.ko.md)
36
+
37
+ <p align="center">
38
+ <img src="docs/demo/demo.gif" alt="cdg cap runs a failing pytest, then cdg pack bundles the failure, the test file it names and the changed file" width="760">
39
+ </p>
40
+
41
+ ## The idea
42
+
43
+ A test fails and you ask an LLM for help. You copy the error, then the test, then the file you
44
+ changed, and the model still asks for one more file.
45
+
46
+ Codigest does the copying. You need two commands:
47
+
48
+ ```text
49
+ cdg cap -- pytest runs your command and remembers its output
50
+ cdg pack finds the files that output mentions, adds what you changed,
51
+ and copies all of it to your clipboard
52
+ ```
53
+
54
+ Then you paste. That is the whole tool for most days; everything below either sets it up,
55
+ explains it, or is optional.
56
+
57
+ ## Install
58
+
59
+ Codigest is a command-line tool. Install it with [uv](https://docs.astral.sh/uv/), which also
60
+ fetches the Python version it needs (3.15) without touching your projects:
61
+
62
+ ```bash
63
+ winget install --id astral-sh.uv # Windows (skip if you have uv)
64
+ curl -LsSf https://astral.sh/uv/install.sh | sh # macOS/Linux
65
+
66
+ uv tool install codigest
67
+ uv tool update-shell # then restart your terminal
68
+ ```
69
+
70
+ The command is `codigest`, or `cdg` for short.
71
+ If the install fails with a syntax error on `lazy import`, run `uv self update` and try again.
72
+
73
+ ## Your first pack
74
+
75
+ Go to a project with a failing test. No setup is needed.
76
+
77
+ **1. Run the test through `cdg cap`.** Put `--` before your command. The output looks exactly as
78
+ it would without `cdg cap`; Codigest just keeps a copy.
79
+
80
+ ```bash
81
+ cdg cap -- pytest -q # or npm test, cargo test, go test ./..., make
82
+ ```
83
+
84
+ **2. Run `cdg pack`.** It tells you what it picked and why:
85
+
86
+ ```console
87
+ $ cdg pack
88
+ Packed ~370 / 30,000 tokens
89
+ failed pytest -q (exit 1, just now)
90
+ changes uncommitted changes (git)
91
+ + test_prices.py line 5 in failing output
92
+ + prices.py changed
93
+ 📋 Copied pack to clipboard
94
+ ```
95
+
96
+ Read it as: the failing command, your uncommitted Git changes, `test_prices.py` because the error
97
+ points at its line 5, and `prices.py` because you edited it.
98
+
99
+ **3. Paste into the chat** and say what you want. You can also put the request in the pack:
100
+ `cdg pack -m "fix the discount calculation"`.
101
+
102
+ <details>
103
+ <summary>What exactly was copied</summary>
104
+
105
+ One XML block: the command with its output, the diff, and each file with line numbers and the
106
+ reason it was included. This is the pack above, unedited apart from the working directory:
107
+
108
+ ```xml
109
+ <context_pack project="project">
110
+ <terminal_history>
111
+ <command index="1" command="pytest -q" exit_code="1" cwd="~/project" duration="1.5s" at="2026-10-17T01:58:14+09:00">
112
+ <output>
113
+ F [100%]
114
+ ================================= FAILURES ==================================
115
+ _____________________________ test_ten_percent ______________________________
116
+
117
+ def test_ten_percent():
118
+ &gt; assert apply_discount(200, 10) == 180
119
+ E assert -1800 == 180
120
+ E + where -1800 = apply_discount(200, 10)
121
+
122
+ test_prices.py:5: AssertionError
123
+ ========================== short test summary info ==========================
124
+ FAILED test_prices.py::test_ten_percent - assert -1800 == 180
125
+ 1 failed in 0.11s
126
+ </output>
127
+ </command>
128
+ </terminal_history>
129
+ <changes source="uncommitted changes (git)">
130
+ diff --git a/prices.py b/prices.py
131
+ index 3d691df..428752a 100644
132
+ --- a/prices.py
133
+ +++ b/prices.py
134
+ @@ -1,2 +1,2 @@
135
+ def apply_discount(price, percent):
136
+ - return price * (1 - percent / 100)
137
+ + return price * (1 - percent)
138
+ </changes>
139
+ <file path="test_prices.py" reason="line 5 in failing output">
140
+ 1: from prices import apply_discount
141
+ 2:
142
+ 3:
143
+ 4: def test_ten_percent():
144
+ 5: assert apply_discount(200, 10) == 180
145
+ </file>
146
+ <file path="prices.py" reason="changed">
147
+ 1: def apply_discount(price, percent):
148
+ 2: return price * (1 - percent)
149
+ </file>
150
+ </context_pack>
151
+ ```
152
+
153
+ Files that did not fit the budget would be listed in an `<omitted>` block, so the model knows
154
+ what it is not seeing.
155
+
156
+ </details>
157
+
158
+ ## Two optional upgrades
159
+
160
+ Once the basic loop works, each of these removes one manual step.
161
+
162
+ **Stop typing `cdg cap`.** Hook your shell once and every command is captured automatically:
163
+
164
+ ```bash
165
+ cdg term install # cdg term uninstall to undo
166
+ ```
167
+
168
+ **Stop pasting.** Connect your coding agent over MCP and it fetches the pack itself:
169
+
170
+ ```bash
171
+ claude mcp add --scope user codigest -- cdg mcp # Claude Code
172
+ ```
173
+
174
+ Other clients (Cursor, VS Code, Claude Desktop): add a stdio server with command `cdg` and args
175
+ `["mcp"]`. Details for both are in the [reference](#automatic-capture).
176
+
177
+ ## How `pack` decides
178
+
179
+ When a file you expected is missing, or one you didn't expect is there, this is the order `pack`
180
+ fills its token budget (default 30,000):
181
+
182
+ 1. Files you name: `cdg pack src/prices.py`.
183
+ 2. Files named in the output of the last failed command run in this project in the past hour:
184
+ `File "x.py", line 7` (Python), `x.py:7` (pytest, ruff, gcc, rustc, eslint), `x.ts(7,3)` (tsc).
185
+ Once the same command passes again, that failure is no longer used. A file that is only named
186
+ in the output, not changed by you, comes as an excerpt: ten lines around each place the output
187
+ points at, marked with a `lines="40-60"` attribute. Short files come whole.
188
+ 3. Files you changed: uncommitted and untracked files in Git, or changes since `cdg mark` if you
189
+ set a baseline (see [below](#see-what-changed-since-a-point)).
190
+ 4. Tests that import a changed file (`test_*.py`, `*_test.py`, `*.test.ts`, `*.spec.js`, ...).
191
+ 5. Project files imported by the files from steps 1, 3 and 4: Python imports, and relative imports in
192
+ JS/TS (`./x`, `./x.js` for `x.ts`, `./dir` for `dir/index.ts`).
193
+
194
+ The failed command and the diff are always included. `.env`, `*.pem`, `*.key` and SSH keys never
195
+ are. Tokens are estimated at four characters each, so the budget is approximate.
196
+
197
+ ```bash
198
+ cdg pack -b 8000 # smaller budget
199
+ cdg pack -s > context.xml # print instead of copying
200
+ ```
201
+
202
+ ## Other things you can hand an LLM
203
+
204
+ `pack` covers the failing-test case. These cover the rest, grouped by what you want to do.
205
+
206
+ ### Recall an earlier command
207
+
208
+ Every captured command stays available, not only the last failure:
209
+
210
+ ```bash
211
+ cdg term # last command and its output
212
+ cdg term -n 3 # last 3
213
+ cdg term -f # last failed one
214
+ cdg term --here -n 3 # last 3 run in this project
215
+ ```
216
+
217
+ ### See what changed since a point
218
+
219
+ Set a baseline before you start, then ask for everything since:
220
+
221
+ ```bash
222
+ cdg mark # e.g. before a refactor
223
+ # ... work ...
224
+ cdg diff # text diff since the mark
225
+ cdg semdiff # Python only: which functions and classes changed
226
+ ```
227
+
228
+ A baseline is a private copy kept in `.codigest/`; your Git history is not touched. Once you set
229
+ one, `pack` also uses it instead of `git diff`.
230
+
231
+ ### Give the whole project, or its shape
232
+
233
+ ```bash
234
+ cdg scan # every file, as one block (asks first above 30k tokens)
235
+ cdg scan src/app.py -r # one file plus the local files it imports
236
+ cdg digest # Python signatures and docstrings only, much smaller
237
+ cdg tree # just the file tree
238
+ ```
239
+
240
+ ## Reference
241
+
242
+ - [All commands](#all-commands)
243
+ - [Terminal capture](#terminal-capture)
244
+ - [MCP tools](#mcp-tools)
245
+ - [Configuration](#configuration)
246
+ - [Privacy and safety](#privacy-and-safety)
247
+ - [How it works](#how-it-works)
248
+ - [Development](#development)
249
+
250
+ ### All commands
251
+
252
+ Every command that produces context copies it to the clipboard. `-s` / `--stdout` prints it
253
+ instead, `--no-copy` skips the clipboard, and `-m` / `--message` adds an instruction.
254
+
255
+ | Command | What it gives you | Writes to your project |
256
+ | --- | --- | --- |
257
+ | `pack` | Last failure, the files it names, your changes | nothing |
258
+ | `cap` | Runs a command and keeps its output | nothing |
259
+ | `term` | Recent captured commands with output | nothing |
260
+ | `mark` | Sets the baseline | `.codigest/` |
261
+ | `diff` | Text diff since the baseline | `.codigest/changes.diff` |
262
+ | `semdiff` | Function and class level changes since the baseline (Python) | `.codigest/semdiff.txt` |
263
+ | `scan` | The whole project, or chosen paths, as one block | `.codigest/snapshot.txt` |
264
+ | `digest` | Signatures and docstrings, no bodies (Python) | `.codigest/digest.txt` |
265
+ | `tree` | Project tree | nothing |
266
+ | `status` | Baseline age, pending changes, generated files | nothing |
267
+ | `init` | Config file and baseline; only needed to change [file filters](#configuration) | `.codigest/`, `.gitignore` |
268
+ | `clean` | Deletes `.codigest/` (asks first, `-y` to skip) | removes `.codigest/` |
269
+ | `mcp` | MCP server for agents | nothing |
270
+
271
+ More options: `scan -l` adds line numbers, `scan -a` ignores the config filters, `scan -y` skips
272
+ the confirmation (CI). `-r` / `--resolve` on `scan`, `diff`, `semdiff` and `digest` also pulls in
273
+ local files imported by the targets. `cdg <command> --help` lists everything.
274
+
275
+ ### Terminal capture
276
+
277
+ `cdg cap` streams the command's output live and records the command line, combined
278
+ stdout/stderr, exit code and working directory. Captures from all projects share one store on
279
+ your machine, so `cap` and `term` work in any directory.
280
+
281
+ ```bash
282
+ cdg cap "npm run build | tail -20" # quote pipelines
283
+ cdg term -i 2 # only the command from 2 runs ago
284
+ cdg term path # where captures are stored (override with CODIGEST_HOME)
285
+ cdg term clear # delete all captures
286
+ ```
287
+
288
+ Commands not run through `cap` are read from the native shell history (PowerShell, bash, zsh,
289
+ fish), without their output.
290
+
291
+ #### Automatic capture
292
+
293
+ `cdg term install` edits your PowerShell profile, `~/.bashrc` and `~/.zshrc` for whichever of
294
+ these shells is installed; choose with `--shell powershell|bash|zsh|all`. On Windows, Git Bash
295
+ counts as bash. Commands still run in your current session (`cd`, variables and functions work
296
+ normally) and appear in your history as typed. Editors, pagers, REPLs and `ssh` are skipped.
297
+
298
+ - Skip one command: start the line with a space.
299
+ - Skip more programs: `$env:CODIGEST_CAP_SKIP = '^\s*(myrepl|mytui)\b'` (bash/zsh:
300
+ `export CODIGEST_CAP_SKIP='^(myrepl|mytui)( |$)'`, an extended regex).
301
+ - Disable for a session: `$env:CODIGEST_NOCAP = 1` (bash/zsh: `export CODIGEST_NOCAP=1`).
302
+ - Remove the hooks: `cdg term uninstall`.
303
+
304
+ Limitations:
305
+
306
+ - Captured programs write to a pipe, not a TTY, so some lose colors or progress bars.
307
+ - In bash (4+) and zsh, multi-line commands (loops typed over several lines, heredocs),
308
+ background jobs (`cmd &`) and lines using `!` history expansion are not captured; they run
309
+ normally. In bash, neither are lines that start with a subshell `( ... )`.
310
+ - In bash the hook uses the DEBUG trap and keeps one set before the first prompt (starship,
311
+ bash-preexec); a DEBUG trap set later replaces it.
312
+
313
+ ### MCP tools
314
+
315
+ | Tool | Returns |
316
+ | --- | --- |
317
+ | `pack` | Last failure, the files it names, changes and their imports, cut to a budget (`targets`, `budget`, `message`) |
318
+ | `terminal_history` | Recent commands with output and exit code (`count`, `failed`, `here`: only this project, default on) |
319
+ | `scan` | Project snapshot (`targets`, `resolve`, `message`) |
320
+ | `diff` / `semdiff` | Text / structural changes since the baseline |
321
+ | `digest` | Signatures and docstrings only |
322
+ | `tree` | Directory tree |
323
+
324
+ The tools return the same text the CLI prints. None of them moves the baseline, and paths
325
+ outside the project the server was started in are refused.
326
+
327
+ ### Configuration
328
+
329
+ `cdg init` writes `.codigest/config.toml`. The `[filter]` section controls which files every
330
+ command considers:
331
+
332
+ ```toml
333
+ [filter]
334
+ # Only these extensions (omit to include every non-ignored file)
335
+ extensions = [".py", ".ts", ".rs", ".md", ".json"]
336
+
337
+ # Extra exclusions, in .gitignore syntax (.gitignore itself is always honored)
338
+ exclude_patterns = [
339
+ "*.lock",
340
+ "tests/data/",
341
+ "legacy_code/"
342
+ ]
343
+ ```
344
+
345
+ `.git/`, `.codigest/`, virtual environments, `node_modules/` and `__pycache__/` are always
346
+ skipped.
347
+
348
+ ### Privacy and safety
349
+
350
+ - **Secrets in captures.** Known secret shapes (API keys, tokens, `password=...`, private keys,
351
+ URL credentials) are masked before a capture is written to disk. Output of credential commands
352
+ (`env`, `printenv`, `gh auth token`, `aws configure`, ...) is never stored. This catches common
353
+ formats, not every possible secret.
354
+ - **Secret files.** `pack` never includes `.env*`, `*.pem`, `*.key`, `*.p12`, `*.pfx` or SSH
355
+ private keys, and lists them as omitted instead.
356
+ - **Your project.** No command changes your source files. Commands that save output, and the
357
+ baseline, live only inside `.codigest/`, which `init` adds to `.gitignore`. `pack` without a
358
+ baseline creates nothing at all.
359
+ - **Where captures live.** `cdg term path` shows the file. On macOS and Linux it is readable only
360
+ by you. `cdg term clear` deletes it.
361
+ - **Nothing leaves your machine.** Codigest makes no network requests. Context goes where you
362
+ paste it, or to the MCP client you connected.
363
+
364
+ ### How it works
365
+
366
+ - **Baseline.** A Git repository at `.codigest/anchor/.shadow_git`, separate from your project's
367
+ repository. The directory is not named `.git` so editors don't mistake it for yours. `mark` and
368
+ `init` commit the current state to it; `diff`, `semdiff`, `status` and `pack` compare the
369
+ working tree against it.
370
+ - **Captures.** One newline-delimited JSON file holds the last 200 commands; each output is capped
371
+ at 64 KB, keeping the head and tail.
372
+ - **Output.** File contents are XML-escaped inside `<file>` blocks, written flush-left so no stray
373
+ indentation reaches the prompt.
374
+ - **MCP.** The server is a small JSON-RPC loop over stdio. Each tool runs the regular CLI with
375
+ `-s --no-copy`, so an agent sees exactly what you would paste.
376
+
377
+ ### Development
378
+
379
+ ```bash
380
+ git clone https://github.com/NaNIsaac/codigest
381
+ cd codigest
382
+ uv run cdg --help # run from the checkout
383
+ uv run --with pytest pytest -q # tests
384
+ ```
385
+
386
+ The demo GIF is rendered from recorded output by
387
+ [`docs/demo/make_gif.py`](docs/demo/make_gif.py); its docstring explains how to record a new one.
388
+
389
+ ## License
390
+
391
+ MIT. See [LICENSE](LICENSE).