https://github.com/aoughwl/nim-code
I have been running Claude Code against both mainline Nim and the new Nimony compiler, and the single biggest cost was not reasoning — it was tokens spent staring at bytes the model never needed. NIF artifacts are verbose S-expression token streams (I routinely hit .nif files of 160 KB–713 KB); nimony/hastur output is buried in nifmake: / FAILURE: / niflink noise; and nimony c cheerfully exits 0 even on failure. A vanilla agent reads the whole file, re-reads tags.md, and conflates Nim-2 semantics with Nimony's. Every one of those is pure token waste.
nim-code is a Claude Code plugin that fixes this at the tool-call layer. It works for both toolchains via auto-detection (walk up for nimony.paths / nimony.cfg / nim.cfg; env NIMLANG_TOOLCHAIN; explicit override), resolving binaries from PATH then ~/Nim/bin / ~/nimony/bin.
Four layers, each a distinct token lever:
Landing now: a terse flag on every tool (default from NIMLANG_AGGRESSIVE=1) that collapses output to compact shapes — ["file:line:col msg"], ["name:line"], {def:"file:line", uses:[...]} — dropping warnings/hints. Plus four recipe tools that fold a multi-call workflow into one server-side call (code-execution-over-MCP: orchestrate on the server, return only the answer):
The research consensus (and my own token accounting) is blunt: don't hand the model bytes to filter — filter first, then hand it the answer. Server-side aggregation, transform-not-block hooks, and cheap-model offload are 80–98% reductions on the NIF-heavy paths, and none of them require the model to be smarter. Nimony's NIF-centric pipeline is an ideal case because the IR is both huge and highly structured — exactly what a scanner can summarize losslessly.
It is MIT-spirited, install via /plugin or claude --plugin-dir. Issues, NIF-tag corrections, and Nimony-toolchain edge cases very welcome — the Nimony CLI surface is a moving target and I would rather track it in the open.
I wonder whether all these projects will prove their worth or if they are merely a waste of time (and LLM resources), offering no real added value.
In my view, far too many LLM projects are currently being churned out and then forgotten.
That is just my impression when a new project is announced every day.
I could be wrong, though.
I’m a bit confused, last I checked this was all novel…
You guys may not like the implementation… use your tokens to fix it ?
This community is downright hilarious.
This community is downright hilarious.
So, this will get closed-sourced too in a day or two?
This community is downright hilarious.
Sorry, I didn't mean to downplay your work; I was just wondering if it’s still manageable in a meaningful way. Starting a project is admittedly very easy (especially with an LLM in the background), but you also have to be able to continue and maintain them.
When one or two new projects are introduced every day, I wonder about their long-term viability. I wouldn't be able to handle that.