Part 3: A Paper in 50 Minutes
Friendly Introduction to Agentic AI for Social Scientists
Part 3 of 6 · live demo, then homework
A Paper in 50 Minutes
One prompt, a short empirical paper and a slide deck. Then your part: study what the agent left behind, as a referee would
⌂ Overview 1 Setup 2 First steps 3 A paper in 50 minutes 4 After the course 5 Go further 6 AI in science
What happens in this part?
In Part 2 we went step by step: one task, one check, then the next task. Here we do the opposite. We give the agent a single prompt, and it runs a whole project, from the question and the data to a short paper and a slide deck.
The question is close to the one in Part 2: does the World Cup change the number of births? In Part 2 you read what researchers found about big events and births. The agent was told to ignore that literature and build its own design. So you come to its paper as a referee who has done the reading.
This part has two halves. First we start the agent and, while it works, we look at the ingredients: the prompt, the rules, the folder, the skills. Then you take the project folder home and study what it produced.
The complete project folder, as the agent left it, will be at github.com/gabors-data-analysis/world-cup-births-demo after the session. You can read every file there in the browser: the paper, the slides, the decision memo, the code and the data. To work with it, download it with the green Code button, then Download ZIP.
What is in the prompt?
Here is the prompt, exactly as we gave it, typos included.
Does the World Cup affect fertility? Let us write an economics paper that investigates the causal effect of football world cups on birth rates. The paper should be interesting for behavioural and labor economists. This could be mean thinking about how world cups are an allegory for something more general. Make sure we think about key mechanism(s).
1. Setup: Use /newproject to set up the folder.
2. Data: Find fertility data around the globe. Collect multiple sources from many many countries. Find football world cup data.
3: Methods: Use well designed econometrics and credible identification strategies.
4. Review: Use \blindspot to check what you have done, make a review if necessary. Use \referee2 to check.
5. Exhibits: Make beatiful graphs and tables as exhbits -- you'll use them in a presentation and in a paper.
6. Output1: Write an academic paper I can submit to a journal like JEBO. It should be 10-15 pages + references. It should have 8-15 references. \bibcheck
7. Output2: Use \beautiful_deck to turn paper into slides.
8. Decisions_md: create an internal memo that is a list with all key decisions you made, could be about story, mechanisms, identification strategy, model specification, data use and so on. When (if) relevant the file should include debates among your agents, disagreements, and how a decision was reached .
There may be papers, dissertations, blogposts on this. Disregard them, don't read them, don't cite them at this initial stage.Note what it specifies: a question, an audience, eight steps in order, the outputs, and a log of decisions. Note also what it leaves open: which data, which countries, which years, which method. Each of those is a choice the agent has to make on its own.
What are the ingredients?
The prompt is short because most of the work is set up elsewhere. Four ingredients do the rest.
The rules file. The project has a CLAUDE.md: Claude Code’s own name for the same kind of file as your AGENTS.md. It holds the research rules: identification first, raw data is never changed, every dataset gets a source and a date, every number in the paper comes from a script, report null results plainly, and never invent data or references.
The folder structure. Separate folders for raw and clean data, code, outputs, the paper, the slides, notes and progress logs. It is the structure of your first-project, a bit larger. A clear structure helps the agent as much as it helps you.
The skills. The prompt calls five skills that we wrote for our own research. You don’t have them, and you don’t need them to follow the demo. Each is a recipe, like read-pdf in Step 2.1, only longer.
/newprojectsets up the folder, the rules file and a README./blindspotlooks at the results with fresh eyes, for problems hiding in plain sight and for things that were missed./referee2audits the work as a second referee would: it replicates the analysis in another language and checks the econometrics./bibcheckchecks every reference: that the DOI opens and that author, title, journal and year belong to the same paper./beautiful_deckturns the paper into a slide deck.
The logs. A decision memo with every key choice, and progress logs that let a new session continue where the last one stopped. These are the DECISIONS.md and status.md of Part 2, at a larger scale.
What is a 50-minute paper worth?
What you will see looks like a paper: a question, data, tables, charts, a conclusion. But it is a first draft, made in under an hour, and nobody has checked it yet. Don’t judge it as a finished paper, and don’t take its results at face value.
The point of the demo is the process: how far the agent gets on its own, and how much work is left for you before your name could go on the result.
Note what the agent doesn’t bring, too. The question comes from us. So does the judgment on whether the answer is interesting, and whether it is right.
What should you watch during the demo?
Four things are worth following as the agent works.
The plan. Before it touches anything, the agent proposes a plan. Is it the plan you would have made?
The choices. Each time the agent picks a sample, a definition or a method, ask yourself whether you would have picked the same.
The checks. Does it test its own work, as in Step 2.3? What does it do when a check fails?
The files. Follow what gets written where: data, code, outputs, the decision memo, the paper.
Your homework: read the project as a referee would
Download the project folder and open it in the Code tab, in Manual mode. Then go through what the agent left behind. We advise this order. Your own agent can help along the way: ask it to explain any file in plain language.
- The prompt. Read it again, slowly. What did it specify, and what did it leave open? Everything left open is a choice the agent had to make.
- The paper. Read it as a referee. Mark three claims you would question.
- The literature. Compare the paper’s main finding with your extracts from Step 2.3. Does it agree with the papers you read? Where it differs, can you see why: other countries, other years, another kind of event, another method?
- The decision memo. Which choices were the agent’s own? Which would you have made differently, and could any of them change the main result?
- The code and the checks. You don’t need to read the code line by line. Read the comment at the top of each script, look at which checks were run, and ask your agent to explain one script.
- The slide deck. Compare it with the paper. Does it make the same claims, with the same numbers?
- The rules and the skills. Look at
CLAUDE.mdand the reviews that/blindspotand/referee2wrote. Which rules shaped the work? Which would you copy into your ownAGENTS.md? - One number, traced back. Pick one number from the abstract. Find it in a table, then in the script that made the table, then in the raw data.
You are done when you can write half a page, as a referee would: what the paper claims, how it squares with the literature, what you checked, and what would have to change before you put your name on it.
And then?
Try it on your own question. Take the prompt, replace the topic with one from your field, drop the skills you don’t have, and run it in a new project folder. Use the routines of Part 2: Manual mode, read-only originals, checks agreed in advance, and a review in a fresh session.
The first attempt won’t be a paper you can submit. But you will see, on a question you know well, what the agent does well and where it needs you.