Use Claude Code for the analysis in a research paper
The researcher Kevin Yang was looking for a data analysis agent and found that Claude Code was exactly what he needed. He used it for the analysis in a paper he is working on, and estimates that it wrote over 98 percent of the code. He uses Lazygit to keep track of changes, Cursor to read through the code and Jupyter for the analyses. He shows how he works, but not the paper itself or the results.
Done with Claude CodeModerate
What was done
The researcher Kevin Yang was looking for a data analysis agent and found that Claude Code was exactly what he needed. He used it for the analysis in a paper he is working on, and estimates that it wrote over 98 percent of the code. He uses Lazygit to keep track of changes, Cursor to read through the code and Jupyter for the analyses. He shows how he works, but not the paper itself or the results.
How to do it
- Paste the prompt into the tool, and replace the text in brackets with your own.
- Read the answer through. Do not send, delete or publish anything until you have seen it yourself.
- Check the original before you trust a figure, a name or a date.
Try it with Claude Code
The dataset is in [folder], and the question I want to answer is [research question]. Make a plan for the analysis before you write code. Then write one script per step, save them in [project] and commit after each step. Show me every figure and table before you move on. You are done when every step can be rerun from the raw data and gives the same result.
Replace text in brackets with your own.
Kevin Yang on Substack ·