{"slug": "show-hn-git-lazy-mount-mount-a-repo-without-cloning-it-works-with-ordinary-git", "title": "Show HN: Git-lazy-mount mount a repo without cloning it. Works with ordinary Git", "summary": "A developer released git-lazy-mount, a tool that mounts a Git repository without cloning it, fetching files on demand. It aims to reduce startup time for AI coding sessions in microVMs by avoiding full clones of large repos. The tool includes sgrep to offload grepping to remote code search engines like SourceGraph.", "body_md": "Hello!\n\nThis is an attempt to make google3 style repo clones work with Git. In a HN thread a few days ago the idea sparked for me.\n\nIt can be super useful for very large repos that need to be cloned for AI coding sessions that might only need a subset of files to accomplish something.\n\nSimilar to google3, files appear to be there and can be read and edited but they are only fetched when they are needed.\n\nIt works with normal Git commands so there is no need for a new CLI.\n\nOn huge catch is, running grep will force fetch all files that grep glob matches. AI coding sessions run the Grep tool quite often. To mitigate this, git-lazy-mount comes with sgrep that offloads grepping to a remote code search engine like SourceGraph.\n\nWith this, microVMs that run AI sessions can stay lean and start up much faster.\n\nI am guessing this is probably faster than baking in the git repo in the image but I have not measured performance of it yet. It is definitely useful if the microVM is spun up with unknown repositories (something like Claude on web).\n\nCurious to hear your thoughts and criticism\n\nThanks!\n\nComments URL: [https://news.ycombinator.com/item?id=48685386](https://news.ycombinator.com/item?id=48685386)\n\nPoints: 2\n\n# Comments: 0", "url": "https://wpnews.pro/news/show-hn-git-lazy-mount-mount-a-repo-without-cloning-it-works-with-ordinary-git", "canonical_source": "https://github.com/mohsen1/git-lazy-mount", "published_at": "2026-06-26 11:30:14+00:00", "updated_at": "2026-06-26 11:34:37.597946+00:00", "lang": "en", "topics": ["developer-tools", "ai-tools"], "entities": ["git-lazy-mount", "SourceGraph", "Google3", "Claude"], "alternates": {"html": "https://wpnews.pro/news/show-hn-git-lazy-mount-mount-a-repo-without-cloning-it-works-with-ordinary-git", "markdown": "https://wpnews.pro/news/show-hn-git-lazy-mount-mount-a-repo-without-cloning-it-works-with-ordinary-git.md", "text": "https://wpnews.pro/news/show-hn-git-lazy-mount-mount-a-repo-without-cloning-it-works-with-ordinary-git.txt", "jsonld": "https://wpnews.pro/news/show-hn-git-lazy-mount-mount-a-repo-without-cloning-it-works-with-ordinary-git.jsonld"}}