Week 1 Slides: What Is This World?¶
Title Slide¶
Week 1: What Is This World?¶
From Chat to Agent¶
An introduction to LLMs, agents, and the tools we'll use.
Agenda¶
- What is an LLM? (And what it is not)
- What does "agentic" mean?
- The agent loop
- Terminal + git essentials
- Lab overview
What Is an LLM?¶
Large Language Model¶
- A machine learning system trained on vast amounts of text
- Does one thing: predicts the next token (word/piece of text)
- Generates answers one token at a time
User: "What is an agent?"
β
LLM: token 1: "An"
LLM: token 2: "agent"
LLM: token 3: "is"
... (continues)
What an LLM Is NOT¶
π« Not a Search Engine¶
- Does not look things up on the internet
- Generates text from learned patterns
- Hallucination: sounds confident but is wrong
π« Not Always Right¶
- Makes mistakes (wrong APIs, outdated info, subtle bugs)
- Doesn't have real-time knowledge
- Statistical, not deterministic
π« Not Human Reasoning¶
- Predicts patterns, not step-by-step logic
- May struggle with things you find simple
- May excel at things you find hard
Why We Use LLMs Anyway¶
LLMs excel at:
β Explaining code β Generating boilerplate β Brainstorming solutions β Reviewing code for style/bugs β Writing documentation
Key: Use them wisely. Verify output. Don't trust hallucinations.
Chat vs. Agent¶
Chat Interface (e.g., ChatGPT)¶
You: "Write a reverse function"
β
ChatGPT: "Here's code..."
β
You: Copy β Paste β Run β Test manually
You do the work.
Chat vs. Agent (cont.)¶
Agentic System (e.g., OpenCode)¶
You: "Add a reverse function"
β
Agent: Reads your code & structure
β
Agent: Writes function in the right place
β
Agent: Runs tests automatically
β
Agent: Observes errors β Fixes them
β
You: See the result. It's done.
The agent does the work. You supervise.
The Agent Loop¶
Five Steps, Repeating¶
- Read β Inspect files, run commands
- Think β LLM decides what to do
- Act β Execute code, write files
- Observe β See the results
- Loop β Repeat until done
The Agent Loop (Visual)¶
ββββββββββββββββ
β User Requestβ
ββββββββ¬ββββββββ
β
βΌ
ββββββββββ
β READ β
βββββ¬βββββ
β
βΌ
ββββββββββ
β THINK β
βββββ¬βββββ
β
βΌ
ββββββββββ
β ACT β
βββββ¬βββββ
β
βΌ
ββββββββββ
βOBSERVE β
βββββ¬βββββ
β
ββββ Loop or Done?
Terminal Essentials¶
Five Commands¶
| Command | What It Does |
|---|---|
pwd |
Show current directory |
ls |
List files & folders |
cd |
Change directory |
cat |
Print file contents |
echo |
Print text |
Git Essentials¶
Three Operations¶
-
Clone β Copy a repo to your computer
git clone https://github.com/example/repo.git -
Status β See what you've changed
git status -
Commit β Save a snapshot
git add . git commit -m "Fixed bug X"
This Week's Labs¶
Lab 1.1: Terminal + Git¶
- Install Terminal (macOS) or WSL (Windows)
- Clone a starter repo
- Navigate with
cd,ls - Make your first commit
Lab 1.2: Prompting¶
- Write 5 prompts to a free chat LLM
- Rate them using a rubric
- Learn what makes a good prompt
Reflection Questions¶
By the end of today, you should be able to answer:
- What does an LLM actually do? (Token prediction, not reasoning.)
- Why might it give you wrong information confidently?
- What is the agent loop, in your own words?
- How is "agent" different from "chat"?
- When would you use the terminal instead of clicking?
What's Next¶
Week 2: Installing & First Run¶
- Install OpenCode
- Set up a model provider
- Run your first agentic task
- Learn plan mode vs. build mode
See you next week!