Better HN
topnewbestaskshowjobs
Log inSign up

langs

36 karma · joined Jan 18, 2012 (14y ago) · 25 submissions

Submissions

comment 2mo ago · link · parent

A game agent to play Slay the Spire, achieved several A20H wins:

https://github.com/AttemorySystem/spire-agent

A retrieval engine that using attention to retrieval, achieved several SOTA results on multiple benchmarks(LongMemEval, LoCoMo, code search, etc)

https://github.com/AttemorySystem/attemory

comment 2mo ago · link · parent

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?

3.

Show HN: An Autonomous Agent for Slay the Spire(github.com ↗)

1 points · by langs · 2mo ago · discuss

comment 3mo ago · link · parent

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.

comment 3mo ago · link · parent

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!

comment 3mo ago · link · parent

Yes, it uses modern technology to tackle an old problem: retrieval.

comment 3mo ago · link · parent

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.

comment 3mo ago · link · parent

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.

comment 3mo ago · link · parent

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.

comment 3mo ago · link · parent

> 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.

comment 3mo ago · link · parent

You need to optimize the KVCache part(save to disk to save compute) to achieve this goal.

comment 3mo ago · link · parent

So, is this a competition? To see whose model can be jailbroken the most times and incite the highest level of public alarm?

comment 3mo ago · link · parent

"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.

comment 4mo ago · link · parent

the current bottlenecks for agents are actually bottlenecks of the LLMs, rather than the agents themselves.

comment 4mo ago · link · parent

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.

comment 4mo ago · link · parent

How does your solution differ from other KV Cache approaches, such as LMCache?

comment 4mo ago · link · parent

nope. any rewrite will be an AI rewrite soon.

comment 7mo ago · link · parent

I vide-coded some, but the core is hand-craft arch/algorithm, that's the most valuable part I want to protect.

19.

Ask HN: How do solo devs protect their work in the age of vibe coding?

56 points · by langs · 7mo ago · 17 comments