from Hacker News

AI Code Fusion: Optimize exporting your code for LLM contexts – packs files

by mehdibl on 3/12/25, 4:58 PM with 1 comments

  • by mehdibl on 3/12/25, 4:58 PM

    I made this small tool that I use daily when I have to paste code into ChatGPT UI or Gemini sometimes for cross-checking. It mainly uses 2 steps to filter the files to send, excluding common noisy files. It provides an estimate of the token numbers (it may drift a bit due to end formatting).

    And it allows adding the project code tree if you need to give the model more structural context.

    It was orginally a CLI tool, but I found the UI is more intuitive and faster for exporting code.

    May add later some improvemens, like more export formats, multiple folder sources.

    I'm not an expert Electron/Read coder so feedback and code review are too welcome.

    Cheers and thanks for the feedback in advance.