frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Mycelium is a Clojure framework designed to facilitate LLM coding

https://github.com/yogthos/mycelium
3•yogthos•1h ago

Comments

yogthos•1h ago
My general thesis here is that context rot and other problems agents often end up exhibiting largely stems from the way we structure code, which is not conducive towards LLMs. Even small models that you can run locally are quite competent writing small chunks of code, say 50~100 lines or so. And any large application can be broken up into smaller isolated components.

In particular, we can break applications up by treating them as state machines. For any workflow, you can draw out a state chart where you have nodes that do some computation, and then the state transitions to another node in the graph. The problem with traditional coding style is that we implicitly bake this graph into function calls. You have a piece of code that does some logic, like authenticating a user, and then it decides what code should run after that. And that creates coupling, cause now you have to trace through code to figure out what the data flow actually is. This is difficult for agents to do because it causes context to quickly grow in unbounded way, leading to context rot. When an LLM has too much data in its context, it doesn’t really know what’s important and what to focus on, so it ends up going off the rails.

But now, let’s imagine that we do inversion of control here. Instead of having each node in the state graph call each other, why not pull that logic out. We could pass a data structure around that each node gets as its input, it does some work, and then returns a new state. A separate conductor component manages the workflow and inspects the state and decides which edge of the graph to take.

The graph can be visually inspected, and it becomes easy for the human to tell what the business logic is doing. The graphs don’t really have a lot of data in them either because they’re declarative. They’re decoupled from the actual implementation details that live in the logic of each node abstracted over by its API.

Going back to the user authentication example. The handler could get a parsed HTTP request, try to look up the user in the db, check if the session token is present, etc. Then update the state to add a user or set a flag stating that user wasn’t found, or wasn’t authenticated. Then the conductor can look at the result, and decide to either move on to the next step, or call the error handler.

Now we basically have a bunch of tiny programs that know nothing about one another, and the agent working on each one has a fixed context that doesn’t grow in unbounded fashion. On top of that, we can have validation boundaries between each node, so the LLM can check that the component produces correct output, handles whatever side effects it needs to do correctly, and so on. Testing becomes much simpler too, cause now you don’t need to load the whole app, you can just test each component to make sure it fills its contract correctly.

What’s more is that each workflow can be treated as a node in a bigger workflow, so the whole thing becomes composable. And the nodes themselves are like reusable Lego blocks, since the context is passed in to them.

This whole idea isn’t new, workflow engines have been around for a long time. The reason they don’t really catch on for general purpose programming is because it doesn’t feel natural to code in that way. There’s a lot of ceremony involved in creating these workflow definitions, writing contracts for them, and jumping between that and the implementation for the nodes. But the equation changes when we’re dealing with LLMs, they have no problem doing tedious tasks like that, and all the ceremony helps keep them on track.

Exostosis

https://en.wikipedia.org/wiki/Exostosis
1•treetalker•41s ago•0 comments

Flip Distance of Convex Triangulations and Tree Rotation Is NP-Complete

https://arxiv.org/abs/2602.22874
1•nill0•2m ago•0 comments

Show HN: GitShow Repo Showroom – a landing page for any GitHub repo

1•ofershap•3m ago•0 comments

Rare Roman lead ingots found by metal detectorists in Ceredigion

https://www.bbc.com/news/articles/c8xy52wndx1o
1•speckx•3m ago•0 comments

Premier League to launch direct streaming in Singapore

https://www.espn.com/soccer/story/_/id/48044798/premier-league-launch-direct-streaming-premier-le...
1•woldemariam•4m ago•0 comments

Dave's Book Review for the Art of Doing Science and Engineering

https://ratfactor.com/b/the-art-of-doing-science-and-engineering
1•zdw•4m ago•0 comments

Show HN: Lightweight, S3-compatible object storage server with built-in web dash

https://github.com/eniz1806/VaultS3
1•open_source_new•5m ago•0 comments

CSP for Pentesters: Understanding the Fundamentals

https://www.kayssel.com/newsletter/issue-20/
1•zdw•7m ago•0 comments

Project Silica's advances in glass storage technology

https://www.microsoft.com/en-us/research/blog/project-silicas-advances-in-glass-storage-technology/
1•rmast•10m ago•0 comments

LLMs killed the privacy star, we can't rewind, we've gone too far

https://www.theregister.com/2026/02/26/llms_killed_privacy_star/
1•speckx•10m ago•0 comments

Video Conferencing with Postgres

https://planetscale.com/blog/video-conferencing-with-postgres
2•thunderbong•11m ago•0 comments

Small Press Tycoon: Independent publishing simulator

https://www.mymik.net/spt.html
1•idempotent_•12m ago•0 comments

Show HN: High-Fidelity Matching via Automated Cognitive Pattern Coding (v138)

https://match-1067501793122.us-central1.run.app/
1•elite-club•12m ago•0 comments

We measured 62% token reduction

https://github.com/base76-research-lab/cognos-proof-engine
1•base76•12m ago•1 comments

On How Mailchimp Suspended Our Account

https://radekmie.dev/blog/on-how-mailchimp-suspended-our-account/
3•radekmie•17m ago•0 comments

From Wi‑Fi Access to Root: Reverse Engineering a $50 CarPlay Dongle

https://medium.com/@louis-e/from-wi-fi-access-to-root-reverse-engineering-a-50-carplay-dongle-a3f...
1•rmast•17m ago•0 comments

S2S – Physics-certified motion data for Physical AI (7 biomechanical laws)

https://github.com/timbo4u1/S2S
1•s2sphysical•20m ago•0 comments

AI is rewiring how the best Go players think

https://www.technologyreview.com/2026/02/27/1133624/ai-is-rewiring-how-the-worlds-best-go-players...
2•Brajeshwar•22m ago•0 comments

Organism-wide cellular dynamics and epigenomic remodeling in mammalian aging

https://www.science.org/doi/10.1126/science.adw6273
3•Brajeshwar•22m ago•0 comments

Suspected insiders make over $1.2M by betting on U.S.'s Iran strike

https://www.coindesk.com/markets/2026/02/28/suspected-insiders-make-over-usd1-2-million-on-polyma...
5•cdrnsf•23m ago•0 comments

Simplifying OpenClaw: I built a library for community workflows

https://workflaw.ai
2•l-fy•23m ago•1 comments

RGGrid – A Workflow-Ready React Data Grid

https://www.npmjs.com/package/@rg-grid/rg-grid
1•rajugundu25•24m ago•0 comments

Show HN: XFolder – A powerful multi-pane file manager for Mac

https://github.com/zebrapixel/XFolder
1•dreampixel•24m ago•0 comments

Neanderthal males and human females had babies together, ancient DNA reveals

https://www.washingtonpost.com/science/2026/02/26/neanderthal-mating-humans/
3•bookofjoe•25m ago•1 comments

Show HN: Nugx.org – A Fresh Nuget Experience

https://nugx.org
3•plsft•27m ago•1 comments

The Pentagon Wanted a Master Key. Anthropic Said No. That Is Not the Story

https://github.com/AionSystem/AION-BRAIN/blob/main/articles%2FMEDIUM%2FSALMON%27S-FRIDAY-REPORTS%...
1•sheldonksalmon•27m ago•0 comments

Moldova broke our data pipeline

https://www.avraam.dev/blog/moldova-broke-our-pipeline
3•almonerthis•27m ago•1 comments

Paramount Beat Out Netflix, Won Warner Bros. and Will Change Hollywood Forever

https://variety.com/2026/film/news/paramount-warner-bros-deal-explained-netflix-ellison-1236674841/
1•verganileonardo•27m ago•0 comments

Show HN: Using a mobile LLM app to safely operate a desktop computer

https://github.com/ruikhu007/action-printer
1•Ruikhu•28m ago•2 comments

Show HN: Volresample – 3D volume resampling up to 13× faster than PyTorch on CPU

https://github.com/JoHof/volresample
1•hojijoji•30m ago•0 comments