flowchart LR A["Your request"] --> B["Decide:<br>next step"] B --> C["Act:<br>run a command,<br>edit a file"] C --> D["Observe:<br>output, errors,<br>file contents"] D --> B B --> E["Report back<br>when done"]
Language models that act on your computer
March 24, 2027
Draws on talks by Scott Cunningham and slides by Matthew DeHaven
Course Home Page
Today the same model gets a terminal.
Chatbot
ChatGPT, Claude.ai, Gemini
You ask, it answers.
You copy anything useful back into your work.
Co-pilot
GitHub Copilot suggestions, Cursor tab
You type, it suggests.
You accept or reject each suggestion.
Agent
Claude Code, Codex, Copilot agent mode
You delegate, it executes.
It reads, writes, runs, and decides what to do next.
Moving right, you hand over more of the work, and you see less of it happen.
Spectrum from Scott Cunningham’s Baylor talk (2026).
Copilot in VS Code shows a suggestion as gray “ghost text” as you type.
Tab accepts the whole suggestion; you review one line at a time.Screenshot from Matthew DeHaven’s GitHub Copilot slides.
Many people picture an agent as a program plugged into the computer.
It is not. It is the same language model as before, predicting the next token.
The difference: its tokens are commands, typed into a terminal, the way you would type them.
An agent works by talking, so it can only act where typing is accepted.
The agent you install is a small program, a harness, wrapped around a remote model.
Bash: Rscript code/02-clean.R.| Command | What it does |
|---|---|
ls data/ |
list files |
grep -r "treated" code/ |
search inside files |
curl -O https://site.gov/data.csv |
download from the web |
Rscript code/03-estimate.R |
run an R script |
python audit.py |
run a Python script |
quarto render paper.qmd |
build a document |
git diff |
inspect changes |
rm -rf data/ |
delete files, permanently |
git push --force |
overwrite history on GitHub |
These are the same commands you learned in the first half. The agent is just faster at typing them.
Adapted from Scott Cunningham’s Baylor talk (2026).
flowchart LR A["Your request"] --> B["Decide:<br>next step"] B --> C["Act:<br>run a command,<br>edit a file"] C --> D["Observe:<br>output, errors,<br>file contents"] D --> B B --> E["Report back<br>when done"]
“Make a figure of job openings by industry.”
ls data/raw/ finds jolts.csvcode/04-make-figures.RRscript code/04-make-figures.R returns Error: object ‘industry’ not foundoutput/figures/openings.png.”The report mentions step 6. Did you see step 5? It changed a column name, and you were not asked.
Reasoning models
Agents
Current systems do both: plan a task, carry out the steps, check the output, revise.
Every session leaves a transcript (Scott calls it a trace):
The output tells you what the agent concluded. The transcript tells you what it did to get there.
~/.claude/projects/; other tools keep similar logs. | Model | What you see of its reasoning |
|---|---|
| Claude, GPT (closed) | a summary of the thinking, not the raw text |
| Kimi, DeepSeek, Qwen (open-weight) | the full raw reasoning |
The commands and file edits are still all there. Read those.
Source: Scott Cunningham’s Baylor talk (2026), citing Anthropic and OpenAI developer documentation.
When you skim one, look for:
This is the “checking” leg from 3/17. The agent did the production; checking is still your job.
| Agent | Cost to you | |
|---|---|---|
| Claude Code (Anthropic) | terminal, desktop app, VS Code extension | needs a paid Claude plan; the free plan does not include it |
| Codex (OpenAI) | terminal, desktop app, VS Code extension | included with paid ChatGPT plans |
| GitHub Copilot agent mode | VS Code | free for students through GitHub Education |
Agent setup often asks you to paste a command into a terminal. That changes phishing:
claude.ai, GitHub, or package docs.A pasted install command runs with all of your permissions: your files, your SSH keys, your saved logins.
Adapted from Scott Cunningham’s Baylor talk (2026).
code.claude.com/docs developers.openai.com/codexdocs.github.com/copilot and code.visualstudio.comNever paste a terminal command from an ad, a video comment, or a stranger’s post.
The official Claude Code installer for Mac is one line:
curl ... https://claude.ai/install.sh downloads a script; | bash runs it immediately.If you are not sure, paste the command into a chatbot you already trust and ask: “What does this do, and is this the official domain?”
Use the tool defensively: have it check the source before you trust the setup.
brew install --cask claude-code; then claude --version should print a version number.The first time you run the agent, it opens a browser to sign in. Do this before class.1
| The desktop app | easiest start; keeps every session in a sidebar |
| The terminal | type claude (or codex) in a folder; closest to the machine |
| An IDE (VS Code) | the agent next to your files, your editor, and a terminal |
It is the same agent in all three. For this class: VS Code, the setup you have used since 2/01.
Adapted from Scott Cunningham’s Baylor talk (2026).
git diff is one click away.First steps:
claude.Every session starts in a folder. That folder sets what the agent can reach without asking.
Good
~/Projects/my-website/
The worst case is a broken website, and Git can bring it back.
Bad
~/ (your home folder)
Every project, your downloads, your .ssh keys, your .env files.
Start the agent in the smallest folder that holds the work.
Before you let an agent work:
git status is clean.git diff before you commit what it did.git restore . puts every tracked file back.1.env) has no undo. Keep a copy elsewhere.Everything in a session is tokens: your prompts, every file it read, every command’s output.
When the window is full, the tool compacts it: it replaces the history with a summary, and details are lost.
The conversation is temporary. The files on disk are the memory.
notes/progress.md) before you stop.AGENTS.md, on 4/5), not in chat.Adapted from Scott Cunningham’s Baylor talk (2026).
By default the harness stops and asks before most actions that change things:
Each prompt shows the exact file or command and offers choices like Yes, Yes, and don’t ask again for …, and No, and tell it what to do instead.
Every prompt is a checkpoint. It is only useful if you read it.
Ask yourself:
rm, mv, >, git reset, git push --force).env, ~/.ssh, API keys?If not, say No and ask it to explain. That costs ten seconds.
| Mode | Runs without asking | Use it for |
|---|---|---|
Manual (default) |
reading files | this class, unfamiliar work |
| Accept edits | reading, editing files, mkdir, mv, cp |
work you will review with git diff |
| Plan | reading; it proposes and does not edit | designing before building |
| Auto | almost everything; a second model screens each action | long tasks, once you have guardrails |
| Bypass permissions | everything | isolated containers only |
Shift+Tab in the terminal, or the mode menu under the prompt in VS Code and the desktop app./permissions switches between read-only, Auto, and full access. Copilot: the Chat panel’s agent picker (Ask, Plan, Agent) and its tool approvals. Recent versions of Claude Code start in Auto mode in the terminal and VS Code. For this class, change that.
Shift+Tab until the status line reads manual mode on.Auto mode is not careless: a second model reviews each action. But you are learning what agents do, and you should be the one reviewing for now.
In plan mode the agent reads and proposes, but does not edit your files until you approve.
Shift+Tab, by starting with claude --permission-mode plan, or by starting a prompt with /plan.Iterate on the design, which is cheap, before the code, which is not.
/plan. Copilot: choose Plan in the agent picker. Paul Goldsmith-Pinkham’s workflow, as Scott describes it:
When you approve, choose the option that still asks you about each edit, not the one that switches to auto.
Source: Scott Cunningham’s Texas A&M and Baylor talks (2026).
You will see people start agents like this:
Treat it as advanced. Do not use it on your laptop this semester.
Scott’s rule: delegate when all four hold.
The fourth is the one that matters most for research. If you cannot check it, you cannot use it.
Source: Scott Cunningham’s Baylor talk (2026).
Also low stakes: a mistake is visible, and fixing it is easy. A good first task.
A regression in your final project is different: the output looks the same whether it is right or wrong. That is 4/5 through 4/21.
Build a personal academic website with an agent and host it on GitHub Pages.
| Start from | What you edit | Good if |
|---|---|---|
| Bootstrap template | plain HTML and CSS | you want to read every line |
| Quarto template | Markdown; Quarto builds HTML | you have Quarto installed |
| An empty repository | whatever the agent writes | you want to design it yourself |
Ask for plain HTML and CSS (Bootstrap from a CDN is fine). Avoid build tools and frameworks you cannot read yet.
Templates by Matthew DeHaven.
<your-username>.github.io
git status is clean, and the folder holds nothing but the siteThat repository name gives you https://<your-username>.github.io (3/15).
claude in the VS Code terminal)On Copilot, choose Plan in the Chat panel’s agent picker. On Codex, use /plan.
I am a first-year economics PhD student. Plan a personal academic
website in this folder, to be hosted on GitHub Pages.
Pages: Home (name, email, GitHub link, short research interests),
About, and Research (my final project as work in progress).
Use plain HTML and CSS, with Bootstrap from a CDN if useful.
No build step and no JavaScript frameworks. It must look good on
a phone. Leave a clear placeholder for anything you do not know
about me; do not make anything up.Edit this. Add your field, colors you like, a site you want it to resemble.
Before approving, read the plan and check:
Ask for changes in plain English: “Use one shared styles.css for all pages.”
When it looks right, approve with the option that asks before each edit.
index.html in your browser to see the result.1Then iterate in normal language: “The header is too large on a phone.” “Make the Research page a list with a one-line summary for each project.”
From 3/15: right-click the page, then Inspect.
<head> and <body>. What is in the <head>?<link> to the stylesheet. Open styles.css and match one rule to an element.class?Anything you cannot explain, ask the agent: “Explain what this CSS rule does, line by line.” Then check the answer in the browser.
Agents fill gaps with plausible text. Read every word.
Lorem ipsum, Your Name) left in?Your name is on it. “The agent wrote that” is not a defense.
git diff), read what changedgit status: no stray files you do not recognizeDo the commit and push yourself. You are the one deciding this version is ready.
main, folder / (root)1https://<your-username>.github.ioCheck the live site, not just your local copy:
By Friday 3/26 [TBD: time], on Canvas:
Keep the agent’s transcript of your session. We will look at what agents did without being asked when we get to reviewing agent work (4/7).