Config
Filesystem Layout
Tree Fetching
The full recursive tree is fetched on the first read, not at mount time, so constructing the resource never blocks on the network. For repos with100K entries, it falls back to per-directory fetching.
Cache
The GitHub resource usesIndexCacheStore with SHA-based fingerprinting. Content is content-addressed - if the SHA matches, the content is identical.
Example
examples/code/github.py for the full working example.
Finding SHAs
Git blob SHAs are available via thestat command:
Working with Large Repos
Tips for efficient access on large repositories:Shell Commands
Standard commands available on the mounted GitHub tree:Search Optimization
rg uses the GitHub code search API when the search scope exceeds
100 files and the mounted ref is the repository’s default branch.
This avoids downloading file contents and returns results significantly
faster for large repositories.