frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Git-lazy-mount mount a repo without cloning it. Works with ordinary Git

https://github.com/mohsen1/git-lazy-mount
7•mohsen1•2h ago
Hello!

This 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.

It 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.

Similar to google3, files appear to be there and can be read and edited but they are only fetched when they are needed.

It works with normal Git commands so there is no need for a new CLI.

On 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.

With this, microVMs that run AI sessions can stay lean and start up much faster.

I 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).

Curious to hear your thoughts and criticism

Thanks!

Comments

mohsen1•2h ago
Link to the discussion that gave me the idea: https://news.ycombinator.com/item?id=48631726#48634278
Imustaskforhelp•2h ago
This is interesting and I always like how there are some of us who actually get some ideas from the HN thread and end up building it. Kudos.

A problem that I am interested in is porting large pieces of software from one language to another perhaps with the heavy weight lifting done by LLMs. Do you feel like it can be of use within it and how could I use it within solving this problem, I'd be curious to know.

mohsen1•2h ago
Thanks! Two thoughts:

- if this port is happening on a single machine, you are better off with work trees. You can reuse worktrees if creating a new one is expensive. https://github.com/satococoa/git-worktreeinclude can help you initing work trees smooth

- If you want the system scale on the cloud with many many VMs doing work on the repo and repo is large enough that lazy-mount gives you meaningful perf benefits, yes definitely. It can be useful. Note that if the repo is private, you will need to configure sgrep's code search backend to be reachable from the microVMs

Show HN: WebBase-III – dBASE III rebuilt in the browser with its own interpreter

https://github.com/DDecoene/WebBaseIII
23•ddecoene•2d ago•6 comments

Show HN: Ponder – the best articles and essays on the internet

https://www.readponder.com/
2•wingdiction•1h ago•2 comments

Show HN: OpenKnowledge – open source AI-first alternative to Obsidian/Notion

https://github.com/inkeep/open-knowledge
309•engomez•21h ago•152 comments

Show HN: Chess-Inspired Roguelike

https://princechazz.com
355•cowboy_henk•5d ago•118 comments

Show HN: Jargo – a Golang port of Pipecat for conversational-AI apps

https://github.com/gojargo/jargo
2•fallais•1h ago•0 comments

Show HN: Git-lazy-mount mount a repo without cloning it. Works with ordinary Git

https://github.com/mohsen1/git-lazy-mount
7•mohsen1•2h ago•3 comments

Show HN: LWDT – A Zephyr-inspired device-tree framework for ESP-IDF

https://github.com/oldrev/lwdt
3•oldrev•2h ago•0 comments

Show HN: I made Google Trends for Hacker News by indexing 18 years of comments

https://hackernewstrends.com
739•ytkimirti•23h ago•149 comments

Show HN: Turn native language audio into flashcards and shadowing practice

https://lingochunk.com/try
84•alder•1d ago•34 comments

Show HN: MiniPCs.zip – Charting the Pareto frontier of Mini PCs

https://minipcs.zip
109•yathern•5d ago•45 comments

Show HN: Bible as RAG Database

https://www.crosscanon.com/
146•jacksonastone•1d ago•89 comments

Show HN: A Transformer Is All You Need

https://zenodo.org/records/20906443
2•KnoxProtocol•6h ago•0 comments

Show HN: Motif Atlas – recurring patterns behind complex systems

https://nikitph.github.io/motifs/
5•loaderchips•6h ago•2 comments

Show HN: StartupsBR – A map of Brazilian startups

https://www.startupsbr.com/sao-paulo
53•leonagano•6d ago•26 comments

Show HN: Monolisa v3 – a typeface for developers and creatives

https://www.monolisa.dev/
187•bebraw•3d ago•91 comments

Show HN: Persona.js – a vanilla-JS agent UI library with native WebMCP (MIT)

https://github.com/runtypelabs/persona
26•becomevocal•5d ago•17 comments

Show HN: I replaced my X analytics dashboard for a daily "what to do next" brief

https://trumpet.house
6•chrislxy•8h ago•2 comments

Show HN: Turn any X account into an RSS feed

https://rss.gurify.com/
8•slavba•8h ago•2 comments

Show HN: Secs-man, a secrets manager you can (not) rely on

https://github.com/Fran314/secrets-manager-rs
30•Fran314•1d ago•19 comments

Show HN: Nimic – Pure Python as a systems language with AOT compilation

https://github.com/dima-quant/nimic
41•dima-quant•2d ago•27 comments

Show HN: Wordit – Change One Letter, Keep the Chain Going

https://victorribeiro.com/wordit/
42•atum47•2d ago•27 comments

Show HN: Write SaaS apps where users control where their data is stored

https://github.com/wolfoo2931/linkedrecords/
69•WolfOliver•1w ago•31 comments

Show HN: Appaca – AI Workspace for Operators

https://www.appaca.ai/
4•susros•9h ago•1 comments

Show HN: Trophikos – a calm, ad-free recipe and cocktail library for iOS

https://apps.apple.com/us/app/trophikos/id6773508921
3•fetus8•9h ago•0 comments

Show HN: Nub – A Bun-like all-in-one toolkit for Node.js

https://github.com/nubjs/nub
270•colinmcd•1d ago•76 comments

Show HN: LookAway, a Mac break reminder that knows when not to interrupt

https://lookaway.com
71•_kush•2d ago•25 comments

Show HN: peerd – AI agent harness that runs entirely in your browser

https://github.com/NotASithLord/peerd
71•NotASithLord•2d ago•22 comments

Show HN: Got sick of ads, so I made my own logic puzzle site

https://puzzlelair.com/
249•HaxleRose•4d ago•166 comments

Show HN: Bikepacking Planner

https://www.theinstant.cc/pack
6•Gshaheen•12h ago•1 comments

Show HN: TikZ Editor – WYSIWYG editor for figures in LaTeX

https://tikz.dev/editor/
446•DominikPeters•2d ago•74 comments