Getting Started with Code Agents for Economists

Getting Started with Code Agents for Junior Economists

This page is a personal guide to using AI code agents as a junior economist — not from the perspective of a seasoned researcher with deep domain expertise, but from someone learning both economics and AI tooling at the same time. My goal is to share what actually works (and what doesn’t) when integrating code agents into an economics research workflow, based on my own hands-on experience. If you’re early in your PhD and want to use AI to get more done without yet having a strong command of the literature or a highly specialized skill set, this is for you. A note upfront: all of the content here is produced from my own input with the help of code agents.

Two resources that have helped me a great deal are Claude Blattman and the claude-howto guide on GitHub. Both are written primarily with Claude in mind, but in practice I have found they translate very naturally to Copilot, Cursor, and Codex as well — the underlying ideas carry across tools. That said, my personal experience has been that working with Claude Code (Claude’s terminal-based agent) and GPT via Codex is noticeably better than using Copilot. Copilot is genuinely useful, especially because the student plan is free, and that access was invaluable when I hit my usage limits on Claude and GPT — so I do not want to dismiss it. But as a day-to-day research companion, the former two have worked much better for me.

On this page:

  1. Setting up the environment
  2. Understanding the basics in under three minutes
  3. What works
  4. What doesn’t work
  5. Useful tools and additions that complement code agents
  6. A typical example of my research flow

Setting up the environment

The best starting point is a chat-based AI interface: ChatGPT, Claude, or Gemini. I list these three because they are the ones I have used extensively — but I imagine any comparable tool would work just as well. You do not need a code agent right away; getting comfortable with conversational AI first goes a long way.

That said, there are three things I would not use AI without:

  1. VS Code or Cursor — a proper code editor makes it much easier to review what the agent is actually doing to your files.
  2. Basic familiarity with GitHub — version control is not optional; learn the basics here. It is your safety net.
  3. A local folder that is fully Git-backed — only ever point the agent at a folder that is tracked by a repository. Never give it access to anything you have not committed.

Setting up Claude Code on Mac (terminal)

Prerequisites: Homebrew and Node.js. If you do not have Node.js yet:

brew install node

Step 1 — Install Claude Code:

npm install -g @anthropic-ai/claude-code

Step 2 — Navigate to your project folder:

cd /path/to/your/project

Step 3 — Start the agent:

claude

On first run it will open a browser window to authenticate with your Anthropic account. Once done, you are in an interactive session inside your project folder. Type your instruction in plain English and press Enter.

Understanding the basics in under three minutes

Coming soon.

What works

Coming soon.

What doesn’t work

Coming soon.

Useful tools and additions that complement code agents

Coming soon.

A typical example of my research flow

Coming soon.