3 comments

  • Chu4eeno4 hours ago
    You really should either just write it manually, or at least clean it up, 5kLOC of bash for POSTing and reading/writing files is a bit overkill (the code is extremely repetitive, verbose and just hard to follow).
    • kamaludu3 hours ago
      Yes, the code is big and bulky, i know. But i am a single person, not a team. I write simple and clear for me, because i need to mantain it. Only Bash, zero dependencies, i like this.<p>thank you for your comment!
      • Tiberium3 hours ago
        &gt; I write<p>You mean the LLM writes the code based on your instructions (that&#x27;s fine, I guess, but 5KLOC is huge for this kind of script).
        • kamaludu2 hours ago
          Architecture and structure are my decisions, LLM are instruments, simple executors, today i think are commonly used. Write code with LLM is not &quot;push a button&quot;, it&#x27;s a technical way of work, needs study and practice. 5k lines are months of work, debug, refactor, testing. 5k lines are the result of a long (and difficult) work, but LLM helps your productivity. The most important thing, for the humans, are the architectural decisions, and understanding how your current LLM reasoning and behavior. I decide architecture and structure; LLM only writes code (that need debug and testing), LLM are executors, not automatic. LLM are only software, and are new instruments to learn. Important thing: I use only free plan, of LLMs that have a real free plan.
          • Tiberium1 hour ago
            I think the fact that you only use the free plan might correlate with the code size and the need to debug&#x2F;test a lot.
            • kamaludu1 hour ago
              I don&#x27;t think , I can pay if it&#x27;s really good for this work, but I&#x27;ve seen the characteristics of pay plan and are not really better for my use case. The free plan is not the reason for the code size; the architecture is the reason. the best choice for me, for this work, is to have a real AI (not a toy installed on a laptop) without limitations and filters, but for this need many tens of thousands of €
      • SupLockDef3 hours ago
        Why are you posting this if you know it is of poor quality then?<p>It&#x27;s certainly not because you are proud of yourself, it has been generated.<p>So I genuinely wonder why?
        • kamaludu26 minutes ago
          I don&#x27;t think it is of poor quality. I post this because I wish it is good for others. It&#x27;s not auto generated, I made this.
      • eeertjoooo3 hours ago
        [flagged]
    • porridgeraisin2 hours ago
      I agree. What is with the random precore&#x2F;core stuff anyways. But on the flip side, this thing seems to be doing a lot. I chugged through a couple thousand lines and there seems to be some amount of context management, I saw mentions of a history file, attachments, etc.
      • kamaludu1 hour ago
        The macro sections&#x2F;sections&#x2F;sub-sections in the code are not random, I intentionally decide that. In brief: PRECORE_BOOT - for initialization PRECORE_RUN - persistency, history, cache PROVIDER - embedded provider (groq) CORE_SETUP - global runtime configuration, parsing parameters, LLM whitelist, user configuration CORE_PROVIDER - providers validation, prompt assembly, chat sessions, models tuning<p>The macro sections has two functions: 1, for me, to navigate the code 2, for LLMs, to understand my structure<p>The project does many things, so i need a clear sections structure to separate responsibilities.<p>You can see more information on the documentation, but the architectural spec is only in Italian.
  • kamaludu3 hours ago
    well, i write Bash4LLM to be:<p>. Portable - You need only: bash, coreutils, findutils, util-linux, gawk, curl, jq. No Python (slow), no Node (heavy), no Golang (need too many binaries, one for each OS, hard to maintain for one single person like me).<p>. Single file - only one. I write many extras, but all are optional.<p>. Idempotent - you copy it where you want and go!<p>. Transparent - open the file and read.<p>. Extras for all, and all optional: help file, extra providers, improved session engine, small GUI&#x2F;CGI, etc...<p>Default (embedded) provider is Groq, because when I start the project, was the best free API service for AI.<p>I&#x27;m ready to answer to your question... with my terrible english...<p>Cristian (kamaludu)
    • dezgeg3 hours ago
      Have you actually tested the portability? MacOS ships an ancient bash version and neither mac or BSDs use GNU version of coreutils.<p>I&#x27;m also very doubtful performance of this would be faster than python, bash is very slow.
      • kamaludu1 hour ago
        I work with termux on Android, and it works fine. For now, I&#x27;ve not tested bash4llm on other environments, but I think it does work because the required packages are the minimum common denominator for all environments, ad with this requirements installed it should work on bsd-like too. I tried python too, at the start, and it was too slow.
  • ifh-hn13 hours ago
    Why is this flagged?
    • dang4 hours ago
      The text got classified as genai, which is not allowed on HN itself - see <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;newsguidelines.html#generated">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;newsguidelines.html#generated</a> and <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47340079">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47340079</a>.<p>We invited the user to rewrite it and I&#x27;ve moved that text to the top now, and re-upped the post so it gets its full time on &#x2F;newest.