\

Hax – a minimalist, terminal-native coding agent written in C

39 points - today at 2:43 PM

Source
  • all2

    today at 5:58 PM

    Note to be confused with Haxe: https://haxe.org/

    • Bleaphar

      today at 5:26 PM

      Would love to hear more about the decision to create the terminal in C? Also what did you use to record your demo video? It looks awesome!

        • OleksandrC

          today at 5:51 PM

          The main reason to use C is that it's the easiest way to achieve minimal resource footprint. Also it's the language I know really well already.

          The demo was recorded with asciinema.

      • jarjoura

        today at 5:29 PM

        This is cool! There were a few rust attempts I played around with last year, but they all seemed to fizzle out in favor of everything running on top of js or python.

        I know that Google just launched a go version a couple months ago, but I haven't really spent any time with it, because well, gemini isn't really useful to me right now.

        The thing I constantly ran into with using non-platform (ie. claude code or codex) agents is that even though their tool call API seems flexible, they've finetuned these "agentic" models around their specific agents. Opus is the worst I've seen about this. It really wants to use specific bash tools and if you restrict or hide it, it'll start writing python code to call into bash to do it.

          • OleksandrC

            today at 5:56 PM

            Generally, the models seem to adapt really well. I am using GPT models in hax a lot, and they have no trouble whatsoever using hax tools instead of their "native" codex tools.

            Also since hax tools are just "read", "edit", "write", "bash" and "task_wait", it would be expected that the models would use one-off scripts to achieve their goals (either shell scripts, or python scripts, etc).

        • myshapeprotocol

          today at 4:22 PM

          A minimalist, terminal-native coding agent written in C is such a clean approach to lightweight local tooling. Love the tech stack choice.

          • torstenvl

            today at 4:31 PM

            If it's minimalist and written in C why does it have such specific system requirements?

              • all2

                today at 5:57 PM

                Probably because of the 'minimalist' qualifier.

            • megamorf

              today at 4:55 PM

              I don't understand why anyone would still start a new software project in C today, given the long track record of mistakes developers can make in it.

                • mfro

                  today at 5:34 PM

                  Because C is the best.

              • mring33621

                today at 3:18 PM

                I just built and installed this harness on my MacBook Pro and am very happy with its clean, fast performance with local models and llama.cpp.

                Well done, Oleksandr!

                • hmokiguess

                  today at 3:23 PM

                  Nice work! Thank you for sharing it.

                  • owencmcgrath

                    today at 3:48 PM

                    [flagged]