Rendered at 23:42:09 GMT+0000 (Coordinated Universal Time) with Cloudflare Workers.
losvedir 1 days ago [-]
Something about having a very fast, very small harness written in C only to drive LLMs amuses me. Like putting a big ass spoiler on a minivan or something.
tjoff 1 days ago [-]
Well, you'd think so but given how slow and resource hungry the ones written in javascript are it makes a lot of sense.
para_parolu 9 hours ago [-]
Are they? I use pi and it doesn’t drain more than other software.
13 hours ago [-]
abawany 1 days ago [-]
I just installed it via homebrew on macos and used the anthropic-compatible custom provider option to configure it to use with deepseek-flash and then used this setup to build a quick rust project that I had been deferring for months - total cost: 1 us cent and under 10 minutes total for setup and etc. Thank you for making such a lean and clean option.
Bleaphar 1 days ago [-]
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 1 days ago [-]
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.
0xc133 1 days ago [-]
asciinema is so good! Love seeing the player on the site.
I've been having a great time using haxe & reflaxe macros for code generation.
You can have some minimal haxe code and build tiny compilers that use it as a source of truth for generating a http client, http server stub, cli entrypoint, docs entry, integration test, openapi spec.... Agents are good at writing the macros for whatever language you want to compile to, and now you've enforced agreement between these things as part of a build, which makes for several fewer things that you ought to be diligent about.
Unlike using something like yaml as your source of truth, haxe has a type system. You can catch some problems upstream as build errors rather than waiting to catch them downstream in the generated code.
Highly recommended.
all2 1 days ago [-]
This sounds amazing. I might give this a go!
mring33621 1 days ago [-]
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!
myshapeprotocol 1 days ago [-]
A minimalist, terminal-native coding agent written in C is such a clean approach to lightweight local tooling. Love the tech stack choice.
jarjoura 1 days ago [-]
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 1 days ago [-]
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).
ChoosesBarbecue 1 days ago [-]
I know the Pi [0] folks had some trouble with newer models [1].
I didn't try Hax but I hope someone who has can answer a question: does it support suspending current operation if user hits ESC key?
EDIT: I just looked at interrupt.c in the github repo: handles user interrupts. I trashed my Common Lisp harness because I had problems handling interrupts in a portable way. I did better with Racket. I am traveling on vacation without a computer, will try Hax when I get home.
qrios 22 hours ago [-]
Works better than in Claude Code.
amoss 17 hours ago [-]
Tried it after seeing the comment about it yesterday and loving it so far. Very clean, easy and fast to build. Performance is great, and the minimal UI is a breath of fresh air.
hmokiguess 1 days ago [-]
Nice work! Thank you for sharing it.
torstenvl 1 days ago [-]
If it's minimalist and written in C why does it have such specific system requirements?
all2 1 days ago [-]
Probably because of the 'minimalist' qualifier.
torstenvl 11 hours ago [-]
No... that's not what minimalism means.
IamDaedalus 1 days ago [-]
oh cool! how do I contribute? :)
OleksandrC 1 days ago [-]
As usual, I suppose :) - by filing bug reports, and opening pull requests.
iJohnDoe 1 days ago [-]
This looks really interesting! Excited to give it a try.
androiddrew 1 days ago [-]
Omg C, so insecure! You should be ashamed of my insecurity!
bobleer 1 days ago [-]
[flagged]
owencmcgrath 1 days ago [-]
[flagged]
megamorf 1 days ago [-]
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.
lelanthran 1 days ago [-]
> 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.
If you think that unintended consequences can result from using C, boy do I have some news for you for "programmers" from 2026.
jesse__ 1 days ago [-]
I lol'd at this
masfoobar 11 hours ago [-]
Because despite all the fear, uncertainty and doubt thrown at the C language over the last 20 years, the truth is that its a relatively 'easy' language to use.
What do I mean by 'easy' ?
C books can typically be about 300-500 pages give or take. Compare that with modern languages especially a Java book in the 2000's, it would be closer to 600-1000 pages.
Why? Because half the book is talking about Object Oriented Programming.
C is simpler by comparison, once you get your head around it quirks and gotchas. Afterall, every language has their own gotchas!
To me, there is a difference between good C programmers and bad or non skilled ones. Those that understand C can write some good and efficient programs that care about performance and memory.
With all the above... the truth is that you could write this towards ANY language. They all have their pros and cons.
> I don't understand why anyone would still start a new software project in nodejs today, given the long track record of mistakes developers can make in it.
> I don't understand why anyone would still start a new software project in python today, given the long track record of mistakes developers can make in it.
> I don't understand why anyone would still start a new software project in java today, given the long track record of mistakes developers can make in it.
And dare I say this one...... ???
> I don't understand why anyone would still start a new software project in rust today, given the long track record of mistakes developers can make in it.
OK. You can argue that rust is not old enough to be labelled the "..given the long track record.." - but everything else stands.
qrios 24 hours ago [-]
From the README.md: If "fancy new AI tech in an old-school minimalist package" sounds like your vibe, you might like this.
What is the question about:
A: Why start a 'new' software project? (instead of old, none, multiple, ...)
B: Why in 'C'? (instead of Mojo, Java, D, ...)
C: Why 'today'? (instead of Yesterday, Tomorrow, never, ...)
For me the beauty of this project is:
Someone tried to figure out for themselves what an end-to-end process would look like for what they wanted to do. What happens to the input? How are files written? What is sent to the LLMs?
And they used the tool they know best. No `import openai`.
mfro 1 days ago [-]
Because C is the best.
andai 1 days ago [-]
What are your thoughts on JavaScript?
iberator 21 hours ago [-]
C is the most portable language on the planet.
Literally every single cpu/mcu architecture from the past 40 years supports it.
There are hundreds of such architectures and CPU/MCU types. (x86 is just SINGLE type from maaaaany).
The demo was recorded with asciinema.
You can have some minimal haxe code and build tiny compilers that use it as a source of truth for generating a http client, http server stub, cli entrypoint, docs entry, integration test, openapi spec.... Agents are good at writing the macros for whatever language you want to compile to, and now you've enforced agreement between these things as part of a build, which makes for several fewer things that you ought to be diligent about.
Unlike using something like yaml as your source of truth, haxe has a type system. You can catch some problems upstream as build errors rather than waiting to catch them downstream in the generated code.
Highly recommended.
Well done, Oleksandr!
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.
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).
[0]: https://pi.dev/
[1]: https://lucumr.pocoo.org/2026/7/4/better-models-worse-tools/
EDIT: I just looked at interrupt.c in the github repo: handles user interrupts. I trashed my Common Lisp harness because I had problems handling interrupts in a portable way. I did better with Racket. I am traveling on vacation without a computer, will try Hax when I get home.
If you think that unintended consequences can result from using C, boy do I have some news for you for "programmers" from 2026.
What do I mean by 'easy' ?
C books can typically be about 300-500 pages give or take. Compare that with modern languages especially a Java book in the 2000's, it would be closer to 600-1000 pages.
Why? Because half the book is talking about Object Oriented Programming.
C is simpler by comparison, once you get your head around it quirks and gotchas. Afterall, every language has their own gotchas!
To me, there is a difference between good C programmers and bad or non skilled ones. Those that understand C can write some good and efficient programs that care about performance and memory.
With all the above... the truth is that you could write this towards ANY language. They all have their pros and cons.
> I don't understand why anyone would still start a new software project in nodejs today, given the long track record of mistakes developers can make in it.
> I don't understand why anyone would still start a new software project in python today, given the long track record of mistakes developers can make in it.
> I don't understand why anyone would still start a new software project in java today, given the long track record of mistakes developers can make in it.
And dare I say this one...... ???
> I don't understand why anyone would still start a new software project in rust today, given the long track record of mistakes developers can make in it.
OK. You can argue that rust is not old enough to be labelled the "..given the long track record.." - but everything else stands.
What is the question about:
A: Why start a 'new' software project? (instead of old, none, multiple, ...) B: Why in 'C'? (instead of Mojo, Java, D, ...) C: Why 'today'? (instead of Yesterday, Tomorrow, never, ...)
For me the beauty of this project is:
Someone tried to figure out for themselves what an end-to-end process would look like for what they wanted to do. What happens to the input? How are files written? What is sent to the LLMs?
And they used the tool they know best. No `import openai`.
Literally every single cpu/mcu architecture from the past 40 years supports it.
There are hundreds of such architectures and CPU/MCU types. (x86 is just SINGLE type from maaaaany).