Investigating with AI Agents:
the Command Line for Journalists
What AI agents can do that chatbots can't
AI agents in the terminal can do things ChatGPT can't
What AI-powered investigation looks like in practice
The key instructions from our agent prompts — copy these into yours
Tools and terminal basics
Install these free tools before we start
Navigate your file system with these commands
| pwd | Print working directory — where am I? |
| ls | List files and folders in current directory |
| cd folder | Change directory — go into a folder |
| cd .. | Go up one level |
| mkdir name | Create a new folder |
Scan the QR code to get all setup commands
Three AI agents you can run from the terminal
Four hands-on exercises
Use your agent to search the web on any topic, save source files locally, and build a structured research database.
Extract structured data from real investigation files — a Swiss BFS dataset, an Indian court filing, or a scanned government contract.
Analyze and translate foreign-language government documents — real notices from an active investigation.
Pick any topic and build a visual scrollytelling page from scratch — the agent finds images, writes HTML, and adds animations.
Publish your work to the web
Where your code lives online — like Google Drive for code, with version history
Install the GitHub CLI and log in from your terminal
Configure your repository to deploy via GitHub Actions
pwd to check. Your agent will commit and push everything in this folder.One prompt to go from local files to a live website
Terminal, AI agents, GitHub — you've got the tools