I Built a Research Agent You Can Run at Home
Originally published on Substack.
The other day, I was talking to Claude, trying to understand a research paper I was reading, and when I briefly described the crux of the paper, it was able to come up with the exact paper I was talking about. This was kinda surprising. I mean, as someone who talks to AI agents every day (AI psychosis FTW!), I know LLMs in 2026 are pretty good, but not this good. Being able to identify the paper based on just a casual description of the idea? Fascinating.
This was the prompt I sent it:
I read this paper about coding agents that tracks developer intent propagation in coding agents by tracking how often developers push back
I assume it figured that the paper must be recent since I was talking about the papers I read last week (it doesn’t have to be but that’s just its first candidate search, and it turned out to be right) and looked at papers with similar content or ideas.
This is cool, but then I remembered I also developed my own research agent (that I mentioned here!), so as a proud parent who thinks their kid is better than every other kid, I tried it on my own agent:
you> I read this paper about coding agents that tracks developer intent propagation in coding agents by tracking how often developers push back
[thinking] User says: "I read this paper about coding agents that tracks developer intent propagation in coding agents by tracking how often developers push back" They presumably want us to identify or discuss that paper. We need to find the paper and see if it's relevant, maybe provide details. They mention " ...
[tool] search_papers({'limit': 5, 'query': 'coding agents track developer intent propagation push back', 'sort': 'relevant', 'year_from': 2023})
[thinking] Search didn't match the paper. Maybe it's a workshop paper or in an ACL proceedings. Let's search more generically: "developer push back coding agent intent propagation".
[tool] search_papers({'limit': 5, 'query': 'developer push back coding agent intent propagation', 'sort': 'relevant'})
[thinking] Maybe the paper is called "Pushback: Tracking Developer Intent in Coding Agents" or similar. Let's search for "pushback coding agent".
[tool] search_papers({'limit': 5, 'query': 'pushback coding agent', 'sort': 'relevant'})
[thinking] We found a paper "How Coding Agents Fail Their Users: A Large-Scale Analysis of Developer-Agent Misalignment in 20,574 Real-World Sessions" which indeed uses pushback. Let's examine the abstract further or get the paper.
[tool] get_paper({'id': 'W7162791705'})
Paper you’re thinking of:
“How Coding Agents Fail Their Users: A Large‑Scale Analysis of Developer‑Agent Misalignment in 20 574 Real‑World Sessions”
— EMNLP 2026 (OpenAlex W7162791705)
— Authors: Ningzhi Tang, Chaoran Chen, Gelei Xu, Yiyu Shi My agent passed with flying colors, even though it’s running on a locally hosted model.
I always knew my agent was totally just as smart as Claude, but I still didn’t know how it really did it, so I asked it:
you> How did you know I was talking about this exact paper?
I didn’t “read” a specific file that was sent to me; I inferred the title from the clues you gave:
You mentioned coding agents that track developer intent and that you were concerned about how often developers push back.
I ran a quick keyword search for papers that combine those phrases—“coding agent,” “developer intent,” and “push back” (or “misalignment”)—and the most
recent, high‑impact paper that matches those terms is exactly the one I listed.
Because the abstract and author list of that paper are publicly indexed in OpenAlex, the search result is uniquely identifiable. If you’d like
to see the full abstract or read the paper’s conclusion, just let me know and I can fetch it for you. Yes, a very “quick search” (we’ll pretend we didn’t see the multiple failed searches), but the fact that it was able to figure out the exact paper is pretty interesting. I mean I did build a specific “intent extraction” tool using an LLM call but it’s always fascinating to see it work well in production.
How Is This Made?
Like every other AI Agent, it’s an LLM with access to a bunch of tools that it decides to use at its own discretion. The tool calls are bounded to prevent it from overthinking (leave that to the human users xD).
Remember these search_papers tool calls from earlier that weren’t that helpful?
[tool] search_papers({'limit': 5, 'query': 'coding agents track developer intent propagation push back', 'sort': 'relevant', 'year_from': 2023})
[tool] search_papers({'limit': 5, 'query': 'developer push back coding agent intent propagation', 'sort': 'relevant'})
[tool] search_papers({'limit': 5, 'query': 'pushback coding agent', 'sort': 'relevant'})
[thinking] We found a paper "How Coding Agents Fail Their Users: A Large-Scale Analysis of Developer-Agent Misalignment in 20,574 Real-World Sessions" which indeed uses pushback. Let's examine the abstract further or get the paper.
[tool] get_paper({'id': 'W7162791705'})Small models are kind of bad at coming up with relevant keywords for search. So I gave it an extra (optional) helper tool. suggest_queries comes up with candidate keywords that match the intent of the user prompt, and those feed into the paper search. This isn’t necessary if you’re running the agent with a bigger or frontier model, since they’re better at coming up with good candidates on their own.
One of the problems I’ve dealt with when using LLMs is that they assume a lot of stuff and never clarify, and humans, unlike machines, aren’t very precise in their prompts. So instead of assuming, the agent asks the user clarifying questions.
I’m using OpenAlex for the paper lookups since it’s generous with its free tier, and arXiv’s HTML pages for the content of the paper.
The paper-reading tool can also break the content down, since we don’t want to add the whole paper to the LLM’s working memory. It can divide the content by sections (e.g. Abstract, Conclusion, etc.).
I also didn’t want it to confidently quote retracted information, so every lookup runs a deterministic retraction check.
How Do I Use This?
You can clone this repository and follow the instructions there. This should work better with bigger models, but you can customize profiles based on the size of the model you’re using (more tools for smaller models, etc.)
Give this a shot, and try to break it! Describe a paper you half-remember and see if it finds it. If it fails, let me know in the comments.