EXERCISE
PART 1 — CLI SETUP AND COMPARISON
GOAL: Run the same task in a browser interface and in Claude Code, then compare what each one required of you.
01
Install Node.js
Download and install Node.js from nodejs.org. Choose the LTS (Long Term Support) version. The installer will also install npm.
After installation, open your terminal and verify:
node --version
npm --version
You should see version numbers for both. If you get "command not found," restart your terminal or computer.
02
Install Claude Code
Claude Code is Anthropic's official CLI for Claude. Install it with:
curl -fsSL https://claude.ai/install.sh | sh
Then type claude to launch it. The first time, you'll go through a one-time setup — granting permissions and logging in with your Anthropic account. After that, typing claude opens a session immediately.
Follow the prompts to log in. You'll need an Anthropic account with API access.
03
Try the task in a browser
Go to claude.ai and paste this prompt:
Summarize this news brief in one sentence:
The city council voted 5-2 yesterday to approve a $2.3 million budget for road repairs. Council member Jane Smith opposed the measure, citing concerns about contractor selection. The repairs will begin in March and affect Main Street, Oak Avenue, and Park Road.
Note what it took: open a browser, navigate to the site, paste the text manually, read the response. That works fine for one article.
04
Do the same task in Claude Code
Open your terminal and type claude to start a session. Then paste this prompt:
Create a file called test-article.txt with this content: "The city council voted 5-2 yesterday to approve a $2.3 million budget for road repairs. Council member Jane Smith opposed the measure, citing concerns about contractor selection. The repairs will begin in March and affect Main Street, Oak Avenue, and Park Road."
Then read the file and summarize it in one sentence. Save the summary to summary.txt.
Claude creates the files, reads them, and saves the output — without you touching the clipboard. Try following up: "Now do the same for every .txt file in this folder."
05
Compare the experience
In the video, you saw this comparison in action — the same research task run in Claude on the web and Claude Code simultaneously. Claude on the web finished faster but hit its tool use limit. Claude Code saved files to the filesystem that persist after the session. Now try a simpler version yourself.
Consider these questions:
- > Which workflow required more steps from you?
- > Which would scale better if there were 50 articles in a folder?
- > What happened to the output in each case — where did it go?
PART 2 — PROJECT CONTEXT
GOAL: Set up a CLAUDE.md context file using /init, customize it for your beat, and verify it works across sessions.
06
Run /init to create your context file
Inside your Claude Code session, type the /init command. This walks you through creating a CLAUDE.md file with sensible defaults based on your project directory.
Claude will scan your project and generate a CLAUDE.md with sections for project overview, conventions, and key files. Review what it created before moving on.
07
Customize it for your beat
The /init output is a starting point. Now add the beat-specific context that makes it yours. Ask Claude to help:
Read my CLAUDE.md and add these sections: my beat covers city hall in Greenfield — add the key entities (mayor, city council, departments), my style rules (AP style, Oxford comma, "the city" on second reference), terminology that's specific to my beat (resolution vs. ordinance), and a "things to avoid" section with phrases I don't want in output.
Adapt the prompt above for your own beat. The goal is to add information that would change how Claude handles your documents — not generic journalism instructions it already follows.
08
Test it in a new session
Quit Claude Code with /q, then relaunch it from the same directory. This starts a fresh session that reads your updated CLAUDE.md on startup.
Now ask it something that tests whether the context loaded:
What do you know about my beat and my style preferences?
If Claude can describe your beat, your style rules, and your terminology, the context file is working. If it can't, check that CLAUDE.md is in the directory where you launched the session.
PART 3 — CONTEXT IN ACTION
GOAL: Process journalism documents with and without your context file, and compare the results.
Pick whichever scenario is closest to your work. The steps below use "city hall beat" as the example, but adapt the folder name, sample documents, and context file to match your choice:
- A. City hall / municipal beat — press releases, council minutes, interview notes, reader tips. Good if you cover local government.
- B. Data tracking project — public spending records, census tables, grant databases, FOIA responses. Good if you work with datasets or public records.
- C. Content processing workspace — story drafts, source transcripts, editorial calendars, style guides. Good if you're building newsroom tools or managing production workflows.
09
Fork and clone the starter kit
Go to the course starter repo and click Fork (top right). This creates your own copy on GitHub that you can push to freely.
Once you've forked it, you'll clone your fork down to your machine — but you don't type git clone yourself. You let Claude do it. Open your terminal, go to your home folder, and launch Claude Code:
You're now in an active Claude Code session running in your home folder. Paste the URL of your fork into the chat and ask Claude to clone it and stay in the new folder:
Clone my fork of the course starter kit from
https://github.com/YOUR-USERNAME/mooc-starter-kit and
then stay in the new folder so we can work on the
course exercises together. The repo has sample docs,
skill templates, and a CLAUDE.md file you should read
first.
Replace YOUR-USERNAME with your own GitHub username. Claude will run the clone, change into the new folder, and read the CLAUDE.md inside it. The repo already contains sample journalism documents in sample-docs/, skill templates, starter scripts, and a CLAUDE.md with placeholder sections you'll customize.
This is the course's default install pattern. You cd somewhere, you launch your agent, and from that point on everything happens inside the conversation. Anything that used to mean "type a command into your terminal" — cloning, creating folders, initializing git, installing tools — now means "ask your agent to do it." See the Mac follow-along FAQ for more on the two-commands-only rule.
10
Explore what's in the repo
You're inside a Claude session. Ask it to show you what you're working with:
List all the files in this project and give me a one-sentence description of what each one contains
The repo is already a Git repository (you cloned it from GitHub). Claude can read every file in it. Notice that it found the CLAUDE.md and the sample documents in sample-docs/ — those are the files you'll work with in the next steps.
11
Process documents without context
You're already inside a session from Step 9. The repo has a CLAUDE.md, but it's still the starter template with placeholders — Claude has no real knowledge of your beat yet. Paste these four prompts one at a time:
Read sample-docs/press-release-park-closure.md and write a 3-sentence summary suitable for a news brief
Read sample-docs/council-minutes-excerpt.md. List every factual claim made by a council member, and note which are attributed to a named source vs. unattributed
Read sample-docs/interview-notes-martinez.md. What follow-up questions should I ask? Flag any claims that need independent verification
Read sample-docs/tip-email.md. Is this tip actionable? What would you need to verify before pursuing it?
Note the responses — you'll compare them to the with-context versions in Step 13.
12
Write your CLAUDE.md
Your repo already has a CLAUDE.md with placeholder sections. Open it and replace the placeholders with your own beat information. You can do this by asking Claude:
Read my CLAUDE.md and show me the placeholder sections I need to fill in. Then help me customize it for a city hall beat covering Greenfield city government.
Required sections:
- — Beat description — what you cover, key entities (city name, current officials, agencies)
- — Style rules — AP style, Oxford comma, how to refer to the city on second reference
- — Source standards — how to handle attribution, what to flag as unverified
- — Terminology — beat-specific terms the AI might confuse
- — Things to avoid — phrases or patterns you don't want in the output
- — Hard-won lessons — leave this section empty for now. Add entries as you correct the AI over time.
Apply the deletion test before saving: read each line and ask whether it would change the AI's output for a knowledgeable reporter. If not, cut it.
Then commit it — your context file is infrastructure, not a draft:
Commit my updated CLAUDE.md with the message "Customize context file for city hall beat"
13
Process the same documents with context
Exit the current session (Ctrl+C twice) and relaunch from the same directory. This starts a fresh session that picks up your new CLAUDE.md:
Run the exact same four prompts from Step 11. Don't change anything — the only difference is that CLAUDE.md now exists and Claude read it before you typed a word.
Compare the responses side by side. Look for specific differences: terminology, attribution handling, style choices, what Claude flagged as needing verification.