r/research • u/NeatFox5866 • Aug 30 '26
Claude Code for Research
Third-year PhD student, NLP / interpretability. I want a reality check from people doing similar work.
I started using Claude Code for the boring parts: argparse boilerplate, plotting, config wrangling. Over the last few months the scope has crept. It now writes most of my experiment scaffolding, refactors my dataloaders, does first-pass debugging on training runs, and drafts the analysis scripts. I mostly read diffs and say yes.
The output is fine. My throughput is up. The thing bothering me is that I no longer hold my own codebase in my head. When a result looks off, I used to have an instinct about which line was lying to me. Now I go hunting like it’s someone else’s repo. I catch bugs later than I used to, and I catch them by reasoning about the numbers rather than by knowing the code.
I don’t think the tool is the problem. I think I delegated a layer that was doing more for my understanding than I gave it credit for.
Questions for people further along or in the same spot:
Roughly what fraction of your research code do you write yourself now?
Is there anything you deliberately refuse to hand off? (For me I think the eval harness and anything defining a metric should stay mine, but I keep breaking my own rule.)
Does anyone have a workflow that keeps the speedup without the detachment? Reading the diff line by line is not cutting it.
Advisors / postdocs: are you seeing this in students, and does it show up in the work?
Not looking for a “tools are just tools” answer. I’m asking about the specific feeling of not owning your own experiments anymore.
5
u/PadisarahTerminal Aug 31 '26
So actually I resonate with this post.
The problem is indeed using llm at a level where you lose control over it. If it starts doing things for you instead of doing things that helps you speed up the process, then it's effectively replacing a part of your skills. I'm struggling with the same thing and it has now been way to easy to prompt Claude to plot instead of doing it manually.
Eventually I envision that expert researcher don't need to prove themselves or "hone" their skills, so they can actually go full agentic within reason, but PhD students need to build the expertise..
I think it's still manual with ai assisted motion instead of agentic stuff.
I'm still figuring this out, and I'm scared for myself and the future.
How much to use between critical thinking, plotting, drafting, reading, reviewing etc.
It's definitely not at the level of Anthropic's vibe physic article where a scientist reported pointing Claude at a problem and it doing the grunt work.
1
u/Clorica Sep 01 '26
I would recommend having 1-2 days a week where you do everything manually without the AI. Yes, it will be slower, but it’s a worthy trade off. People in the past have been completing PhDs for ages without AI assistance and like other commenters have said, PhDs aren’t about research output, but about training you to be able to research independently. By relying so much on AI when it’s the training/apprenticeship part of your research career, where youre allowed to make mistakes and learn from them in your efforts to become an independent researcher, you’re the only one losing out.
1
1
u/PadisarahTerminal Aug 31 '26
Good post but it looks like a bot post. Just tired of this.
3
u/NeatFox5866 Aug 31 '26
I literally spent 30 minutes on this….
2
u/blipblapbloopblip Aug 31 '26
It may be you had a style already close to how LLMs later came to write, or that you spent so much time reading their output it got burned in your brain.
2
u/PadisarahTerminal Aug 31 '26
Have you used any llms to assist you in writing this? If not I apologize. I just don't want to engage with bot posts and 95% it's obvious from the prose
2
u/haydenaaaa Aug 31 '26
This post is 100% LLM written. Just acknowledge that you used it.
First sentence is a half-sentence that is very common with LLMs
“Reality check” — every LLM written question post on Reddit
“The scope has crept”
“I mostly read diffs and say yes”
“The output is fine. My throughput is up.”
“Reasoning about the numbers rather than by knowing the code”
“I don’t think.. I think” — not A, but B
List of bullet points
“Not looking for A, looking for B”Obviously not everything here might be LLM writing but the bulk of it clearly is.
2
u/Willing-Layer-3523 Aug 31 '26
I think the concern you’re describing is less about Claude Code itself and more about maintaining ownership of the reasoning behind your research. Using AI for boilerplate, plotting, configuration, or repetitive debugging can be a huge time saver, but it’s worth keeping the parts that define the experiment firmly in your hands.
One practical approach is to write the hypothesis, evaluation logic, key metrics, and core experimental code yourself, then use AI for the surrounding implementation. I’d also make a habit of reviewing every generated diff and occasionally rebuilding an important component without AI. That keeps the speed advantage while making sure you still understand why the experiment behaves the way it does.
2
u/Historical_Sorbet962 Aug 31 '26
This is why I actually refuse to start using AI for my research (or anything at all in life). I'm in grad school to learn and make mistakes and struggle through things, so why shortcut that learning by outsourcing it? Faculty don't expect my work to be perfect right now as long as I'm working in good faith and asking for help when I need it. That being said, I'm in a way less technically demanding field and the code I'm writing for my research is much simpler.
2
u/Deep_Ad1959 Aug 31 '26 edited Sep 01 '26
I don't buy the eval-harness rule, you already said you keep breaking it. What brought my instinct back was writing down the number I expected before any code runs. If I can't state that up front, owning the harness changes nothing.
fwiw that state-the-number-before-the-code instinct is why Sundial makes every Claude Code edit a signed suggestion you review at edit granularity and flags when a claim drifts past its source, https://s4l.ai/r/zixsvm8x
2
u/throwingstones123456 Sep 01 '26
Everyone in my group uses AI for like 99% of their code. Unless your research entails the design of some novel algorithm I don’t see the purpose in spending 5x longer to write (usually) worse code than a llm
1
u/excel1001 Aug 31 '26
I still write a large portion of my code and projects by myself. Most if it is because I don't have access to SOTA models. I refuse to pay for it out of pocket. If my advisor wants me to use these tools, which they do, they need to pay and get me access, which they don't. Otherwise, I stick to my current set up, which is running local LLMs on a Mac Mini.
Yes, these models may be "dumber" because my Mac mini isn't the best model (M4 Pro, 32GB of RAM) but boilerplate code and troubleshooting errors I are quite helpful. But rarely do I just let them write my whole project because... well it ends up writing code that, while it may look correct, is really hard for me to troubleshoot and check. I'll use agents to work on something overnight, but then I"ll spend time cleaning it up the next day.
So right now, these tools are great for me to get a project or idea up and running. but after writing the "skeleton" of the project/code, I end up doing a lot to dress it up, if that makes sense.
I feel that I'm still more productive than I was previously. Just not supercharged since I don't use the SOTA models.
1
u/FancyMouse123 Aug 31 '26 edited Aug 31 '26
I write most of it, if not all of it. I "delegate" feedback and small changes (like minor steps obtained after a feedback).
Not sure
Getting feedback before running long experiments. Many minor errors that would require to run everything again are avoided.
This is becoming an issue. Students are missing skills that they should have and get completely stuck when AI fails them.
1
u/jracheff Aug 31 '26
IDK - the reality is that we always used external thinking to inform our research. It’s not like every peer reviewed paper or book chapter is 100% accurate either, let alone what one might pull back from SCOPUS or WoS or download from the R repository or GitHub.
The questions IMO are: are your tools and sources disclosed, are your methods reliably repeatable, and do you understand and can explain what was informed by your sources.
1
u/Lazy_Comparison3114 Aug 31 '26
The friction of writing your own code is a useful constraint, and can be used to sharpen which research paths to take. There's an old myth that the Soviets got great at mathematics and physics because they lacked the computing power for numerical simulations, hence the mounds of formulas and analysis in their text books.
Regarding your questions. I'd try to write as much of the code myself as a proof of your own thinking. Much of PhD is training todo research, and by that I mean the honing of an instinct to know which paths are fruitful, which are dead-ends, as well as the mental tenacity to grind through the process, and to stomach both success and failures in equal measures along the frontier. Speed isn't the issue just the point of marathon isn't to cheat it by driving the distance, but by building the capacity to run and finish. In practical terms, I'd recommend reclaiming ownership by re-writing as much of the code that wasn't yours.
1
u/LiaUmbrel Aug 31 '26
On this same subject, did any of you make a context/agents file to prompt the agent to explain in depth their approach? Did you find that helpful? While I do recognize it is not the same as having firsthand knowledge of the codebase, I feel I retained some control over the direction/design.
1
u/killer2themx Sep 01 '26
You're not alone! Something which has helped me as ridiculous as it might sound is I have a quiz setup for myself at the end of each day which covers what I've implemented or what decisions I've made. I also write a lot to myself throughout the day so I generally have some sort of a log. But holding myself accountable to small details while expanding my throughput has been quite nice.
1
u/StraightUpSeven Postdoc Sep 01 '26
At least 80% of my code is written by me.
I refuse to hand off full pipeline implementation. Any refactor is usually done to speed up the code. If I don't understand it, I don't use it. I also refuse direct changes to my repo. Too many of my coworkers have reported that Claude Code/Codex will arbitrarily delete whole files from the repo. This is all especially critical since I work with medical data, I cannot and will not let any model directly read or manipulate the data, even if they are de-identified.
I like to delegate code at the function level, and I will write in the addition to the repo myself, refactoring to fit my needs as I see fit. It saves me a ton of time while letting me understand my codebase.
1
1
0
u/Interesting-Baker473 Aug 31 '26
Google anti gravity for plan and layout then handover for Claude to check. If I am using R code I do that strictly with Claude
-1
u/hypnokev Aug 31 '26
I like accuracy, so I don’t use AI for research. It would be like reading tabloid newspapers to try to learn the day’s news, or watching Fox to learn about politics. I use AI to make pictures and sometimes as a wikipedia search engine. Otherwise, lovely toy but a bit pricey for what it can do.
1
u/hypnokev Aug 31 '26
Oh, I’m also a software engineering leader at a big tech company. The results of vibe coding are going to employ me until I retire, just fixing stuff and making things work.
1
u/Shibarastaigan Aug 31 '26
I only use ai for research by specific method wich is: the equation/algorithm that i need exist? If yes i dowload from github etc then i read the specific thing that i need, put in my code and cite it to know where the fuck i took it if fails xd but yeah vibe coding sucks
1
u/countnfight Aug 31 '26
I'd watch out with that. One of the few times I tried debugging with Copilot, it suggested I install an R package. It pointed me to the wrong repo, and I know that because I'm the sole package dev.
24
Aug 30 '26
[removed] — view removed comment
11
u/Designer_Charge_556 Aug 31 '26
your advisor's observation about the questions changing is kind of terrifying tbh
2
u/ActuallyBiscotti Sep 03 '26
Is it? The professor is recognizing that the people having AI write the code can’t understand what the code is doing because they aren’t writing it themselves. That’s pretty straightforward to me.
12
u/mrbiguri Aug 31 '26
As a prof, I think the problem with these AI tools is they they are useful, but we seem to have wrongly aligned our objectives.
Imagine using AI to make paintings in art school, or music school. Absurd no? Sure, you need to produce paintings and music in there, but the point is to learn how to do art, not produce more art. You'll do that later.
I see a PhD the same. We ask for publications and research output, but only because before AI, this was a good measure of having learnt how to do research. It's not anymore, but please let's remember that the goal of being a PhD student is not to produce research, but to learn how to do it yourself.