A broad code quality pattern for the agent is that...
# proj-agent
w
A broad code quality pattern for the agent is that it tries to push new logic into the part of the codebase it's already editing, rather than keeping logic neatly separated, and potentially doing minor refactors to preserve separation of concerns. (Human engineers do this quite a bit too, but usually get better about it as they get more senior) As a quick example, I wanted to add the user's email to `git commit`s made by the agent. It's obvious to me that the user's email should be retrieved in the server via our existing GitHub client, and passed into the runtime; but the agent tried to add a
_get_user_email
method directly to the runtime instead. I don't know how to fix this (or even how to measure the problem) but it seems like some combination of prompt changes and microagents (e.g. describing the desired separation of concerns) would help
l
Probably having something like proactive RAG/embedding based search that looked up potentially relevant parts of the code base could help as well. That would enforce the agent seeing relevant code instead of encouraging it to do so
nod 1
p
funny, you read my mind, that's my toy project here: https://gitlab.com/deposition.cloud/apps/relay/atlas/-/blob/main/ROADMAP.md?ref_type=heads I'll release under an ethical permissive license once working idea is to tack on MCP on top of this qdrant/pgvector vector database setup, so OpenHands can smartly query my extended codebase, to bias itself towards my style of coding ETA end October (when I'll be back from vacation) the hard UX problem seems to be embedding this semantic search workflow into one's own current DX... my attempt here: https://gitlab.com/deposition.cloud/apps/relay/cli/-/blob/main/ROADMAP.md?ref_type=heads any/all feedback appreciated 🙂
🔥 3
n
we should chat about this ( I'm being an ass. lemme rephrase ) 0 o 🐺 I haz opinionz! 🙂 (not that I'm right or anything) Would love to chat around ideas here if yer keen ( that's better. ) 0 o 🐺 🤡 . o 0 ( I thought the first version was fine. You're overthinking things. ) ( You remember the LAST time you said that ) 0 o 🐺 🤡 . o 0 ( Would anything REALLY be any different had I not advised you to chill. ) ( correct. you're ineffectual. Go away. ) 0 o 🐺 🤡 . o 0 ( NEXT TIME, Furball! I'll get you next time... ) ... ahem... sorry... uh ... yeah.... so about opinions ;)
an I R also running gitlab here
p
WCA was primarily used to support code understanding, either via explanations of existing code or through answers to general questions https://arxiv.org/html/2412.06603v2 (emphasis mine) this paper references an earlier RAG for semantic code search paper Experimental results on the CodeSearchNet dataset demonstrate that RepoRift significantly outperforms existing methods, achieving an 78.2% success rate https://arxiv.org/abs/2408.11058 anecdotally, it appears the DeepWiki creators stumbled on a similar insight (code understanding for humans could be lower friction), but come at it by first attempting to solve swe-agent's understanding of large corporate codebases I wonder what the overlap between a human drafting a semantic code search query and understanding it vs. a SWE-agent doing it wrt. to the same task might be or perhaps, different RAG-infused system prompts could perform better for humans vs. swe-agents? any ideas how I might test this, or other papers we could look at?