Brian Hung
git-zero
Browse and chat with a GitHub repo cloned into your browser.
Cloning into the browser
Browser tabthrough a CORS proxyz.query.fsNodegithub.comowner/repo from the URLgit.cloneisomorphic-git, depth 1createFS(zero, dir)a Node fs over Zero rowsZerofsNode rows, in IndexedDBFile treerows to nested foldersCodeMirroropens a file in a tabA repo cloned once is read back from the browser, never cloned again.
Asking about the code
messagestool schemastool callresult, next requestuseChat@ai-sdk/reactPOST /chatstreamText on a WorkerGemini 2.0 Flash@ai-sdk/googleonToolCallglob, grep, list, readcreateFSthe repo, as Zero rowsThe server declares the tools; the browser runs them against the repo it holds.