Agentic AI for Social Scientists

Overview, setup and first steps

Friendly Introduction to Agentic AI · class slides

This course is for social scientists who have used a chatbot, not code

“This is for coders.”

It isn’t. You give instructions in plain language, as to a research assistant. Even the setup is done by the agent.

“I don’t need this.”

Maybe. Find out on your own material. You stay in charge, and you decide how much to delegate.

One tool: Claude Code, in the Claude desktop app. What you learn carries over to Codex and the others.

An agent is the same model, with folders, actions, a loop and tools

A chatbot

You paste a text in and copy the answer out. It can’t read your files, run a program, or save results. It answers from what it “remembers”.

An agent

It works in a folder you choose. It opens files, writes and runs code, saves results. It takes a step, looks at the result, and decides on the next one.

Think of it as a very fast research assistant at your computer: well read, new to your project, and sometimes wrong with confidence.

It fits work with many files and many steps, and a result you can check

Good tasks

  • Hundreds of scanned PDFs, turned into text and a data table
  • A Word draft, commented or edited as tracked changes
  • A review of a paper: numbers, references, argument
  • Data: download, clean, model, chart, describe
  • A prototype of an idea, to see if it is worth your time

Its limits

  • It makes mistakes in fluent, confident prose.
  • It doesn’t know the judgment calls of your field.
  • What it reads goes to the company’s servers.

Each has a routine that handles it. Part 2 builds them in.

Nothing happens without your click

Deny When in doubt, deny. Nothing bad follows.

One folder Your other files are outside it. Work on copies.

Stop The stop button interrupts it mid-step.

No surprise bill A fixed monthly price. At the limit it pauses.

You need a paid plan, a computer, and permission to install

Claude Pro About $20 a month, cancel any time. A university Team or Enterprise plan also works.

A computer Windows 10 or 11, macOS, or Linux (Ubuntu or Debian).

Installing A university laptop may need IT approval. Try first.

Everything is on one site, in seven parts

The course

  1. Setup
  2. First steps
  3. A paper in 50 minutes
  4. Assignments
  5. After the course
  6. Go further
  7. AI in science

Where things are

gabors-data-analysis.com/ai-course/friendly-agentic-ai-intro/

Prompts to copy: on each part’s page.

Starter files and skills: the starter folder on GitHub, linked from Part 2.

The six papers: the reading list, in Part 2.

Ten words to start with

Word Meaning
Agent An AI model that reads files, runs code and saves results, in a loop
Prompt The instruction you type for the agent
Session One conversation with the agent. Each starts fresh
Permission mode How much the agent may do without asking you
Markdown (.md) Plain text with a few formatting symbols
Path The address of a file or folder on your computer
Script A text file of instructions the computer carries out
AGENTS.md Standing instructions the agent reads in every session
Skill A recipe file for one type of task
Environment In the app, where the agent works: this computer

More in the glossary of the overview.

Setup: one app, one folder, Python, and a reader

The app The Claude desktop app. The Code tab is the agent.

A folder ai-projects/first-project, best in Dropbox or OneDrive.

Python Set up by the agent. It uses Python as its tool.

Typora To read the Markdown files the agent writes.

Before class: five things should work

  • The Code tab opens, and the environment says This computer.
  • first-project is open in it, in Manual mode.
  • output/test_chart.png exists: Python works.
  • Typora opens .md files.
  • Task 1 of Part 2 is done: AGENTS.md and two skills are in the folder.

Part 2 · First steps

Every project: a folder, a structure, a prompt, and work you check

1 A folder per project. The agent’s desk.

2 A structure inside it, the same every time.

3 A prompt: what you want, from what, how to check.

4 Let it work, then check. It works from the folder, not from memory.

The same folders in every project

Folder What goes in it
data/raw/ Data as it arrived. Never changed
data/clean/ Data that the code prepared
docs/readings/ The papers, as PDFs
docs/extracts/ One short summary per paper
code/ The scripts, numbered in the order they run
output/ Charts and tables
docs/ Notes, memos and drafts
paper/, slides/ The paper and the deck, when a project ends in one

The agent creates them from AGENTS.md, in Task 1.

Write the prompt down, then let it run

In small steps

One task, a check, the next task. This is what we do today.

All at once

One prompt in a file, initial_prompt.md, and the agent runs the whole project. That is Part 3.

A good prompt says what you want, what to use, what to deliver, and how to check.

You stay in charge with four controls

Limits One folder, permission before it acts, your originals never changed.

Visibility Every changed file and every step can be seen.

Checks Agreed before the work, and a few done by hand.

The final say The agent does the mechanical part. You decide the content.

The settings you control: folder, permissions, model, cost

Folder

It asks before touching anything outside. Read the path before you allow.

Permissions

Deny Always allow Allow once Manual now; many move to Auto later.

Model

The default is fine for today. Stronger models are slower.

Cost

You pay with your usage limit, not per task. The small ring shows it.

AGENTS.md: standing instructions, read at the start of every session

Each session starts from zero. AGENTS.md carries what the agent should always know: who you are, how you work, what it must never do.

Ours says: plan first, never delete or change your originals, work from the files, quote word for word with the page, keep a note in status.md. All of it.

When the agent makes the same mistake twice, add one line.

A skill is a recipe; take one, write one, or let the agent draft one

What it is

A short file, SKILL.md: a name, when to use it, the steps. The agent uses it when a task matches, or when you type / and its name.

We start with read-pdf and decision-log.

Where they come from

  1. Take someone else’s, and read it first.
  2. Write your own: a page of plain steps.
  3. Let the agent draft one after a routine worked. You finalize it.

Five tasks, in one session

From a pile of papers to a one-page memo, in five tasks

  • Set up the project folder. AGENTS.md, two skills, the folders. (done at home)
  • Download the papers, and check that each one is a paper.
  • Make an extract of each, with quotes and pages. Check two yourself.
  • Ask the papers questions, then read the README it writes.
  • Write a one-page memo, from the papers only.

Prompts to copy: Part 2 on the course page.

Task 2: check that each PDF is really a paper

The agent downloads the six papers and writes SOURCES.md: where each came from, when, under which licence.

When we built this pack, two “PDFs” were web pages. One asked to enable JavaScript, the other said Oh no!

Task 3: agree the checks before the work

Switch to Plan mode first: the agent says how it will check its own extracts.

Then check two yourself: open the PDF at the page given, and search for the quote. Is it there, word for word?

Task 4: ask the papers, and once ask what they cannot answer

What do these papers say about births in Argentina after the 2022 World Cup?

The right answer is “not in the files”. Then let it write docs/readings/README.md, and read it.

Task 5: a one-page memo, from the papers only

The agent writes the memo for a colleague in another field, cites as (Author year, p. X), and converts it to Word.

Read it in Typora. Does every claim carry a page?

You review it properly, on paper, in Assignment 1.

Five tasks, at your own pace

Tasks 2 to 5

  1. Download, and check they are papers.
  2. Extracts. Check two quotes.
  3. Ask. Argentina. Read the README.
  4. A one-page memo.

Prompts to copy

gabors-data-analysis.com/ai-course/friendly-agentic-ai-intro/first-steps.html

Stuck? Paste the page’s address into your agent, and ask. Then ask us.

If something goes wrong

Debrief: what did your agent do?

  • Did all six downloads work? Did anyone get a web page saved as a PDF?
  • Did your two quotes check out? Was any “quote” a paraphrase?
  • What did it say about Argentina? “Not in the files”, or an answer from memory?
  • How does your memo read? Is there a claim without a page?

After class: four assignments

1 Review the memo on paper. The agent sorts your comments and revises.

2 A first task with data. For those who work with data.

3 Referee the World Cup paper of Part 3.

4 Improve its prompt with skills.

Part 4 on the course page.

It is your name on the work, not the agent’s

Which task in your own work would you hand over first, and how would you check it?

Appendix

What the starter AGENTS.md asks

  • Plan before longer tasks. Do the smallest thing that answers the request.
  • Work only inside this folder. Never delete: move files to _old/.
  • Never change raw data, or a file I gave you.
  • Work from the files, not from memory. Quote word for word, with the page.
  • Keep a short progress note in status.md.

The full file: Part 2, section 3. Back

When something goes wrong

Problem What to do
The skills don’t show up when I type / Start a new session. Skills load when a session starts
A “PDF” won’t open, or shows a web page Use the backup copy, or download that paper in the browser
A PDF comes out as nonsense It is probably a scan. Tell the agent, and check it with extra care
The agent keeps doing the wrong thing Click stop, and say plainly what you want
An error I don’t understand “Explain this error simply, then fix it.”

More at the end of Part 2. Back