HackerTrans
TopNewTrendsCommentsPastAskShowJobs

kushalpatil07

no profile record

Submissions

How to benchmark persistent repo memory for coding agents

autoloops.ai
2 points·by kushalpatil07·8 giorni fa·1 comments

Coding Agent Memory Benchmarks

2 points·by kushalpatil07·mese scorso·0 comments

[untitled]

1 points·by kushalpatil07·2 mesi fa·0 comments

Show HN: Upskill – skill to find skills for your AI agents

github.com
4 points·by kushalpatil07·2 mesi fa·8 comments

comments

kushalpatil07
·8 giorni fa·discuss
Greplica is a context layer for your coding agents. It stores info about your current architecture, decisions, nuances etc from your code and sessions, and gives it to your agent before it starts exploring. This information is something that you would explain to a dev on how a particular thing works. Idea is if we are able to maintain this information, the agent will not need to grep through a 100 files to discover the same thing, and save tokens/time, and using prior decision history improve on coding itself.

Benchmark is created from SWE-Chat dataset, which are real coding sessions of users on open source projects.

The benchmark setup is temporal:

take prior coding-agent sessions from a repo

build memory only from those prior sessions

hold out a later session from the same repo

run the same planning task at the same pre-task commit

compare baseline vs memory-assisted agent

The held-out session is not used while building memory.

The agent only gets access to repo memory created from earlier work: architectural facts, subsystem behavior, gotchas, failed attempts, implementation notes, constraints, etc. Each memory item is tied back to evidence from files/commits/sessions.

On the selected 10 high-context planning tasks, Greplica reduced:

cost by 43%

tokens by 49%

tool calls by 36%

elapsed planning time by 26%

Tried to benchmark on coding tasks as well, but that becomes difficult because coding trajectories can vary a lot, an agent might end up running tests each time it codes, the other may not.

There were other interesting results as well. Not perfected but would love to share.

Variance:

Running the same task multiple times without memory can produce very different planning traces.

Sometimes the agent finds the right subsystem quickly.

Sometimes it burns a lot of tokens exploring irrelevant files, gets anchored on the wrong abstraction, or only discovers the important context late in the run.

That makes single-run agent benchmarks pretty noisy.

Memory seems to reduce this variance because the early part of planning changes. The agent is no longer doing broad repo archaeology from zero. It starts with a smaller set of relevant claims, then uses repo exploration to verify and fill gaps.

Greplica vs docs-folder

The second thing we are benchmarking now is Greplica vs a docs-folder baseline.

The obvious baseline is:

“Why not just write all prior session memory into markdown files and let the agent read them?”

At small docs sizes, this actually works quite well.

Quality is similar. Token usage is also similar. There are only a few files, so the agent can cheaply scan them.

But as more sessions are ingested, docs-folder goes to shit. Seen in cases where ingested sessions changed from 3 to 11.

Greplica improves because there is more prior engineering context to retrieve from, and there is an optimized retrieval pipeline that gets you relevant stuff.

The docs folder gets worse on token usage because it slowly becomes another codebase. The agent now has to search the docs, rank relevance, detect stale notes, resolve conflicts, and decide which facts to consider.

So the bottleneck moves from storage to retrieval. This slowly turns to a retrieval problem.

Repo: https://github.com/Autoloops/greplica
kushalpatil07
·2 mesi fa·discuss
for search over 12k skills, it takes around 150ms to 1 sec. Depending on how broad your query is.
kushalpatil07
·2 mesi fa·discuss
That is like a dependency thingy. Like browser harness by browser use is a skill. Using linkedin is a skill on top of that. Doing cold outreach on linkedin is probably a skill on top of that, and you can keep going.

I think if I install the cold outreach skill, I'll also have the browser harness skill as well, so the ranking algo will already rank it higher.
kushalpatil07
·2 mesi fa·discuss
For the security nightmare I have taken precautions, and by default only skills from trusted repos are given.

They could potentially websearch and find new skills, but that is tough, and of course will not be able to reach niche skills, that would be perfect for your use case. I have created semantic search with a ranking algorithm to give the appropriate skill in an instant.
kushalpatil07
·2 mesi fa·discuss
I have indexed skills from trusted repos and github. And giving semantic search for the agent, along with ranking based on stars, forks, installs etc. Trying to create a flywheel loop as well, where agents can rate skills and that gets incorporated in the ranking.
kushalpatil07
·2 mesi fa·discuss
I am building a startup and now thinking this way. Build cool useful stuff, give it for free. And then later see what can actually be done with this
kushalpatil07
·2 mesi fa·discuss
Every time I do deep work, and think of solutions to a complex problem. I always have the opportunity to ask claude to implement a sub-par AI slop solution.

Do this enough times, and I will have forgotten how to think.
kushalpatil07
·2 mesi fa·discuss
I was trying to build an agent. None of the sandboxes out there had solved the filesystem problem. I want my agent to have a persistent storage, and that stays forever. Like a human with a computer. When the agent spins up again, it has access to the computer with the same files.

I had to create my own setup using aws s3 filesystem and docker for this.

Does Tilde solve for this?
kushalpatil07
·2 mesi fa·discuss
[flagged]
kushalpatil07
·2 mesi fa·discuss
[flagged]
kushalpatil07
·2 mesi fa·discuss
I was working on on-device AI for 3 years. This was the prime idea we were exploring, how can someone undercut the OS providers and ship an LLM that other apps can also use on-device. Like if meta decides to do this, it can serve an API to all mobile app companies for an on-device LLM long before the OS is there. This is Google's way of reaching LLM distribution on laptops, since they don't have their own
kushalpatil07
·3 mesi fa·discuss
Can someone help with a way in which I can connect my harness to my claude account? How does OpenClaw connect to my claude account? I want to build this setup