This repository contains the materials for D-Lab's Claude Code AI Pulse workshop.
No prior experience with CLI tools required!
Check out D-Lab's Workshop Catalog to browse all workshops.
This hands-on workshop introduces Claude Code, Anthropic's command-line interface for AI-assisted coding. You will learn how CLI-based AI tools differ from browser chat interfaces, how to configure Claude Code for your projects, and see practical demonstrations of code generation, documentation, and refactoring. Participants will leave with practical skills for integrating AI coding assistants into their research workflows.
After completing this workshop, you will be able to:
-
Understand CLI vs Browser AI tools - Recognize when to use command-line tools (multi-file projects, direct file manipulation) versus web interfaces (quick questions, conceptual explanations).
-
Install and configure Claude Code - Set up the CLI tool and customize it for your projects using CLAUDE.md files and configuration options.
-
Navigate models and context - Understand different model options (Opus, Sonnet, Haiku) and manage conversation context effectively.
-
Generate code from specifications - Use Claude Code to create new code modules with proper structure and documentation.
-
Document existing codebases - Leverage Claude Code to read and understand unfamiliar code, generating documentation and explanations.
-
Refactor and improve code - Use AI assistance to clean up messy code, improve structure, and add error handling.
-
Use subagents for verification - Spawn subagents to independently verify results and catch errors through parallel review.
- Introduction to CLI (5 min) - What is a CLI, browser vs CLI differences
- Installation & Setup (2 min) - Quick installation, first run
- Customization (5 min) - CLAUDE.md, models, context, subagents
- Demo 1: Linear Regression (5 min) - Building code from scratch
- Demo 2: Julia Documentation (5 min) - Reading and documenting existing code
- Demo 3: Refactoring (5 min) - Cleaning up a messy PhD codebase
- Demo 4: Data Consolidation (bonus) - Merging economic data with subagent verification
- Q&A (remaining time)
Prerequisites:
- Node.js (download from nodejs.org)
- Windows users: WSL (run
wsl --installin PowerShell)
Install Claude Code:
npm install -g @anthropic-ai/claude-code
claude- Claude Code Documentation
- Claude.ai (Pro/Team subscription includes Claude Code)
- Gemini (Free for Berkeley accounts!)
- D-Lab
D-Lab works with Berkeley faculty, research staff, and students to advance data-intensive social science and humanities research. Our goal at D-Lab is to provide practical training, staff support, resources, and space to enable you to use AI tools for your own research applications.
Visit the D-Lab homepage to learn more about us.
- Bruno Cittolin Smaniotto
- Tom van Nuenen
- Claude (Anthropic)