Uday (@udayj) header
Uday (@udayj) profile picture

I build AI systems that run in the real world - inbox agents, ERP retrofits, quote engines. Rust mostly. Ex-Microsoft/Amazon. https://nitter.cf/t.co/2jqiewfAA2

Joined January 2009
Photo by Uday (@udayj)Photo by Uday (@udayj)Photo by Uday (@udayj)Photo by Uday (@udayj)Photo by Uday (@udayj)Photo by Uday (@udayj)Photo by Uday (@udayj)Photo by Uday (@udayj)Photo by Uday (@udayj)Photo by Uday (@udayj)
Compute isn't the real bottleneck - shortage of talent at the intersection of domain expertise, knowing what can be built and knowing how to build it is - this is where magical experiences get created
1
197
Next step: streaming The loop barely changed. But streaming splits the conversation in two: on screen v/s agent history When a response breaks halfway, hermes-kernel-lab drops it. The text stays on the screen, but nothing goes into history and no tool runs. Hermes does it differently. With the right abstractions in place, deciding whether partial responses make it to history is a clean change.
Next step: context compaction It still added just one line to the agent loop. But compaction is a Pandora’s box. How you compact decides what the agent can ever get back. A simple edit (what hermes-kernel-lab does) rewrites history: old turns are replaced by a summary, and the originals are gone. @VictorTaelin’s excellent OptMem never changes history. The full log stays, and the agent reads a compact summarized view of it, zooming back to the original entries when it needs detail.
23
Many tools are trying to create and re-create UI in real time but for the vast majority of software, I think it's the wrong approach - users dont like their UI changing constantly - what might be better is showing contextually richer UI - its been way nicer in my experience
10
visiongrep: Fast Local Semantic Image Search in Rust visiongrep “dog with a frisbee” ~/Pictures Runs locally, single binary. Agents treated as first class users. Watch Claude Code use it below Open Source - github.com/udayj/visiongrep
2
1
223
Install (macOS Apple Silicon, Linux): curl -LsSf github.com/udayj/visiongrep/… | sh
11
Ran into this while building a document pipeline: a contract says the rate is $22k/day. A separate amendment later says “Clause 14 is replaced by Rider Clause 4”, which sets it to $25k. Ask a RAG system for the rate and it can happily retrieve the $22k line, quoted perfectly, and still be wrong. Of course YMMV, but for documents that amend each other, RAG alone hasn’t been enough for me.
1
1
59
A citation from an LLM is also LLM output. It can be made up just as easily as the fact it’s supporting. So I try to check every quote actually exists in the source. But there's a catch - exact matching rejects a lot of true quotes, because models tidy up formatting when they quote. Normalising both sides first has made this a cheap, deterministic hallucination filter. This still doesn't catch a real quote attached to the wrong claim, but imo it’s a step in the right direction.
26
LLM output should be the part of the answer that never goes stale. So have it extract the facts from a document once, and do everything that depends on those facts in code, which you can rerun whenever things change. I’ve found this works quite well in practice if you don’t intend to splurge tokens re-evaluating stuff in a document processing pipeline.
20
Next step: context compaction It still added just one line to the agent loop. But compaction is a Pandora’s box. How you compact decides what the agent can ever get back. A simple edit (what hermes-kernel-lab does) rewrites history: old turns are replaced by a summary, and the originals are gone. @VictorTaelin’s excellent OptMem never changes history. The full log stays, and the agent reads a compact summarized view of it, zooming back to the original entries when it needs detail.
Reading a large (and excellent) agent harness like Hermes by @NousResearch shows you what it does, but rarely why it's built that way. So I'm rebuilding the ideas one small step at a time, in Rust (why not). 12 major steps in, and this is still the whole agent loop. I did try top-down first, with all sorts of AI generated visualizations and explanations of the codebase. None of it gave me an intuitive sense of why things are structured the way they are. Perhaps the incremental increase in complexity makes it easier to understand.
1
1
2
135
imo this is directionally right but I've found there is still merit in having a well designed ergonomic codebase, simply because it makes verification easier and agents have a sense of the right way to do something in such codebases - newer models might behave differently though
it's very interesting how many replies i've gotten about maintainability and clean code being still important. i would argue that that is no longer true and we all need to update our priors on what Good Code really means in 2026. clean code has always come at a cost - performance. indirection and making code readable/understandable for a human is not free, it often comes at the cost of worse performance. we have historically been okay with this because of Moore's Law and the fact that most code is not on the hot path. these principles also came from a time where humans maintained code. it made sense to optimize for humans then, but it makes less sense now when agents are already writing all the code. we will in fact probably discover and come up with new principles: principles of agent friendly architecture (i plan to write more thoughts about this soon)
27
Reading a large (and excellent) agent harness like Hermes by @NousResearch shows you what it does, but rarely why it's built that way. So I'm rebuilding the ideas one small step at a time, in Rust (why not). 12 major steps in, and this is still the whole agent loop. I did try top-down first, with all sorts of AI generated visualizations and explanations of the codebase. None of it gave me an intuitive sense of why things are structured the way they are. Perhaps the incremental increase in complexity makes it easier to understand.
3
1
1
176
Intelligence in a loop is the primitive. Harnesses and agents are just larger structures built from that primitive. Easy to forget in the current pace of development - but worth remembering when designing great UX.
27
I've always felt it tedious to find my way around AWS and GCP - however, agents like Codex and Caude Code seem to be a blessing around the sea of buttons
33
There’s a lot of chatter around Amazon blocking @muse, but I think there’s a much more interesting question here - is chat even the right form factor for agentic shopping ? I havent used @muse yet (so no judgement on the product), but having used other agents extensively, I think a chat based agent is not the best form factor for agentic shopping on e-commerce. This is an opinion, of course, but I think looking at all available options, discovering more options you hadn't considered and deciding what suits you best is part of the shopping experience - agents can be very useful in this process (without turning the chat into a full fledged e-commerce portal) - agents can fully shop for certain stuff, like compute on aws for instance, and even help with comparing options on various dimensions - but just not fit for a turn-key autonomous shopping experience yet. I have some wild ideas on how agents could compliment the shopping experience but they have not yet been proven in practice.
1
81
TIL - a Codex sidechat can summarise the discussion and message it back to the main thread - and all this while I was copying stuff between different chats 😅 - inter chat/thread messaging is such a major ergonomic improvement when it works frictionlessly
29
I found it difficult to use the full surface area of cli tools like cargo or git, but agents are a different beast - they are really good at finding uses for the most arcane command line options - if you're building agentic cli apps, err on the side of more features
24
For VisionGrep (github.com/udayj/visiongrep), the assumption that matching the same CLIP weights would be enough to match the reference implementation turned out to be wrong. The image resizer mattered too. Even bicubic interpolation details and rounding changed embeddings enough to change result ordering. Same model weights != same model behavior.
26
While always true in some sense, AI generated code and artifact reuse feels so much like energy recycling - and open source code feels like energy in a perpetual battery - energy to token to perpetually reusable code
24
LinkedIn is getting funnier. Their AI writes the cold DM. My AI writes the reply - and now even sends it. Robots networking with robots....at scale
27