langs
langs on Hacker News
I don't get it. Why benchmark the latency instead of recall/precision? Optimizing for millisecond-level latency is meaningless in the context of LLM calls. Accuracy is the tool's greatest value, yet there is no testing for it?
Posted by
langs on Wednesday September 02, 2026 @03:15AM
from the show-hn dept.
https://github.com/AttemorySystem/spire-agent
While coding agents have reached a relatively mature stage, domain-specific agents are lagging far behind; for instance, using Codex to play games yields poor results.The Spire agent addresses the challenge of maintaining consistency across long-horizon tasks by delegating deterministic actions to domain-specific tools, while the LLM handles logical tasks requiring reasoning and acts as the...
Simply feeding the Slay the Spire game state directly to an LLM is currently insufficient to achieve stable deck-building or consistent combat performance.
I categorize the game's actions into three types: combat, deck-building, and other interactions.
For combat, MCTS is used. Yes, it's similar to the approach used in Go AI.
For deck-building, a sparse graph search is used: the goal is to rapidly identify winning deck templates within the graph structure.
Only the remaining aspects are delegated to the LLM to make reasoned decisions.
I'm building an AI agent that plays Slay the Spire. It currently reaches A20 Act 3 consistently and occasionally defeats the A20 Heart. It use two search: spare graph search for deck building, and MCTS for combat.
Parallelly, I'm working on an attention-based memory retrieval system that achieved SOTA on LongMemEval, LoCoMo, and code retrieval benchmarks. https://github.com/AttemorySystem/attemory/
Maybe later I'll build a live-streaming AI agent that plays Slay the Spire while conversing with viewers and remembering everything in chat!
Yes, it uses modern technology to tackle an old problem: retrieval.
https://github.com/AttemorySystem/attemory/ stars and issues are welcome :)
Using attention for retrieval was inspired by a comment I saw in here long time ago: Prediction and retrieval are two sides of the same coin; to predict better, you must retrieve more accurately.
I'm still working on the improvement of algorithms, my tests shows the performance and accuracy will be improved a lot in the next release.
I am working on the same thing right now. However, unlike storing conversations in an external retrieval system, I use a local LLM to store the conversation's KV cache and perform retrieval directly on that cache. The method involves running a prefill pass and, after obtaining the attention scores, filtering for the corpus segments that received attention.
This aligns with the "zero tokens" approach described in this paper. :)
I tested it on the LoCoMo used in this paper, and also LongMemEval, both achieved SOTA results.
Pi’s minimalism reveals a simple truth: the LLM is the core of any agent harness. Consequently, much of current harness tuning will become redundant(or even a hindrance) with next-gen models.
> Myth 2: Writing Code Is the Bottleneck
Writing code is indeed the bottleneck for same resource constrained companies.
Rapid code development creates more opportunities for trial and error, providing companies with more information for decision making, that previously might have been addressed by meetings.
Of course, this might bring other problems, but it might not right to generally speaking that writing code is not a bottleneck.
You need to optimize the KVCache part(save to disk to save compute) to achieve this goal.
So, is this a competition? To see whose model can be jailbroken the most times and incite the highest level of public alarm?
"mandatory safety testing" is an impractical ideal, it's not workable in real world.
Like any technology, LLMs are dual-use tools capable of both beneficial and malicious applications—a fundamental reality that human intent cannot change.
the current bottlenecks for agents are actually bottlenecks of the LLMs, rather than the agents themselves.
That’s a good analogy, but I think the reason we currently need the "nurse" role is the need to interact with the physical world. Most software products don't require this step, so the demand for “nurses” or "doctors" will likely decrease.
If robotics technology continues to advance, the number of nurses in real world will also decrease in the foreseeable future.
How does your solution differ from other KV Cache approaches, such as LMCache?
nope. any rewrite will be an AI rewrite soon.
I vide-coded some, but the core is hand-craft arch/algorithm, that's the most valuable part I want to protect.
Posted by
langs on Thursday April 23, 2026 @09:33PM
from the ask-hn dept.
I am working on a new open-source project. (My project is in AI infrastructure. It already gets SOTA results on several well-known benchmarks.) The core value is not just the code, but a fairly specific algorithmic approach that came out of many failed attempts, experiments, and design iterations.The dilemma I am facing is this:If I open-source early, I get feedback, trust, users, and maybe...