gitingest

Dev tools

code extraction for llms

SHOW HN2024

gitingest

Replace "hub" by "ingest" in GitHub URLs for a prompt-friendly extract

gitingest.com

#github repository#llm context#code extract#repo to text

185points
51comments
#433of 3,515 in 2024
Top 13%of 2024 by points

How HN took it

MixedNo clear lean

6 positive, 11 neutral or asking, 2 mixed, 11 critical, out of 30 comments about the project. Thread score -0.13.

Idea: 5 for, 2 againstExecution: 0 for, 5 againstDesign: 1 for, 2 againstPerformance: 0 for, 1 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Useful, simple URL trick

    From 3 comments
    • Instead of a copy icon, it would be better to just generate the entire content as plaintext in the result (not in an html div on a rich html page) so the entire url could be used…
      ComputerGuru on HN
    • The example buttons are a nice touch
      matt3210 on HN
    • Very clever!
      gardenhedge on HN

Objections

  • Code quality; looks AI-generated and fetches GitHub stars unnecessarily

    From 3 comments
    • ``` // Fetch stars when page loads fetchGitHubStars(); ``` I do not understand why in the world so much of the code is related to poking the GH api to fetch the star count
      mdaniel on HN
    • Probably generated by AI, prompted by no- or junior dev. This is my opinion, of course, but it looks like code generated by an LLM.
      johnisgood on HN
    • But why did you code it to fetch stars at all? You would have had to go out of your way to do that. If AI has written most of this I suspect people will be less inclined to…
      ugexe on HN
  • Breaks on some repos (path errors, linux kernel too large)

    From 2 comments
    • It seems to be broken, getting errors like "Error processing repository: Path ../tmp/pallets-flask does not exist"
      anamexis on HN
    • It did not digest https://github.com/torvalds/linux ¯\_(ツ)_/¯
      dim13 on HN
  • Output not plain text; tree layout uses unicode that is token-heavy

    From 2 comments
    • Instead of a copy icon, it would be better to just generate the entire content as plaintext in the result (not in an html div on a rich html page) so the entire url could be used…
      ComputerGuru on HN
    • Is the unicode really the best way to display the file structure? The special unicode characters are encoded into 2 tokens, so I doubt it would function better overall for larger…
      lukejagg on HN

Requests

  • Filtering and exclude patterns

    From 1 comment
    • Might be good to have some filtering as well. I added a repo that has a heap of localized docs that don't make much sense to ingest into an LLM but probably use up a majority of…
      fastball on HN
  • Plain text output via URL or API

    From 1 comment
    • Agreed, missing opportunity to be able to change a url from github.com/cyclotruc/gitingest to gitingest.com/cyclotruc/gitingest and simply recieve the result as plain text. A…
      vallode on HN
  • Token count targeting

    From 1 comment
    • Yes I want to add a way to target a token count to control your LLM costs
      cyclotruc on HN

Questions

  • How to use it given LLM context limits

    From 1 comment
    • isnt there a limit on prompt size? how would you actually use this? Im not very up to speed on this stuff
      Exuma on HN

Alternatives named

  • uithub.com

    From 2 comments
    • https://uithub.com is also a good one for this. They also have an API with more options.
      Mockapapella on HN
    • Hi, great tool! I've made https://uithub.com 2 months ago. Its speciality is the fact that seeing a repo's raw extract is a matter of changing 'g' to 'u'. It also works for…
      wwoessi on HN
  • files-to-prompt

    From 1 comment
    • If I understand correctly, this sounds like https://github.com/simonw/files-to-prompt/. It's quite useful, with some filtering options (hidden files, gitignore, extensions) and…
      maleldil on HN
  • repomix

    From 1 comment

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/42329071)