| name | managing-parsers |
| description | Use when the user needs to manage the tree-sitter parser cache — prefetch parsers for offline or CI runs, list what is downloaded, inspect a language, find the cache directory, or clean it. Covers `ts-pack download`, `list`, `info`, `cache-dir`, `clean`, and `init`. |
Managing parsers
Parser libraries download on demand the first time a language is used and
are cached on disk. Manage that cache explicitly for offline work, CI
prefetch, reproducible builds, or to reclaim space.
Note: parser cache management (download, clean, init) is done via the
ts-pack CLI directly. The OpenCode tools expose only parse/process/info.
Prefetch (offline / CI)
ts-pack download python rust typescript
ts-pack download --all
ts-pack download --groups web,systems
ts-pack download python --fresh
Available groups: web, systems, scripting, data, jvm,
functional (comma-separated for --groups). Run download in your CI
setup step so later parse/process calls hit the cache instead of the
network.
Inspect
ts-pack list
ts-pack list --downloaded
ts-pack list --manifest
ts-pack list --filter script
ts-pack info python
ts-pack cache-dir