TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Flatty – Dead Simple Codebase-to-Text for LLMs

1 pointsby MediaSquirrel5 months ago
Transform any GitHub repo or folder on your Mac into a simple text file so that you can upload it to an LLM (Claude, ChatGPT, etc.) to reason over the whole thing in the context window.<p>LLMs like ChatGPT and Claude let you upload files, but they limit how many you can upload at once. When you&#x27;re dealing with large codebases that have tons of files, you can&#x27;t just upload them directly to an LLM. You end up having to use RAG (retrieval augmented generation) techniques, which in my experience aren&#x27;t as effective as uploading everything into the full context window - especially when you need to reason about architecture or understand the entire system.<p>Flatty is simple to use.<p>Navigate to your project directory in the Terminal and then type &quot;flatty&quot; - that&#x27;s it.<p>The script will output your GitHub repo as a text file (or series of text files in case of large repos) into a folder called &quot;flattened&quot; in your home directory.<p>I hope you find this tool useful in your own work!

1 comment

arnorhs5 months ago
I&#x27;m not an expert in this field, but won&#x27;t you quickly exhaust most context windows with any reasonably sized repo?