CSC-105

LibraryFast and Slow

Fast and Slow

Thursday, October 29

📆 Today

  • This week in AI: System One models
  • Work time: First slice, due Tuesday at 2:30

Two ways of thinking

System 1System 2
Fast, automaticSlow, deliberate
2 + 2 = ?17 × 24 = ?
Reading anger in a faceFilling out a tax form

LLMs think out loud

  • An LLM writes one token at a time, and every token is a full pass through the model
  • Reasoning models write thousands of tokens before they answer: System 2, in text
  • The answer comes back as text, and software has to read it

Jev: a model that doesn't write

"Unstructured state in, typed probabilistic decisions out."

You ask questions; it picks answers

State: "Our API integration started returning 500 errors on every request about 20 minutes ago, and we can't process any customer orders until this is fixed."

QuestionKindAnswer
Which department? billing · technical · salesChoicetechnical
How frustrated do they sound?Score0.67
Is it urgent?Noul (true or false)0.99

How it's different

LLMJev
Gives backText to parseA value from your list
Works byOne token at a timeAll answers in one pass
Trained forAnswers people prefer (RLHF) or a program can check (RLVR)Honest confidence (RLCD)
Speed3 seconds to 5 minutes0.07 to 0.5 seconds
Price$0.20–$10 per million tokens in, more for output$0.042 per million in, output free

Honest about how sure

"If a model can do a task 95% of the time but doesn't say when it's in the 5%, it can't automate that task."

Fast and slow, together

YesNoA ticket comes inJev decidesSure?Act on itAn LLM or a person looks

Doom, ten times a second

  • Jev reads the game as text and picks the next move: 10 decisions a second, about $7 an hour
  • TypeSafe: "A non-AI doom bot could play better."

The fine print

On TypeSafe's own testsRightCost per caseSeconds
GPT-5.6 Sol74.1%$0.083623.3
Claude Opus 573.1%$0.176137.8
GPT-5.6 Terra67.9%$0.030410.1
Claude Sonnet 567.8%$0.117478.1
Jev67.8%$0.00040.4

Why "Jev"?

Jevons paradox: when something gets cheaper to use, we use far more of it.

In your app: write or decide?

  • Decide with rules when you can: sort, filter, match exact words. Instant and free.
  • Decide with a model when it takes judgment: Is this post offering a ride or asking for one?
  • Write with a model when it has to say something new: Suggest three recipes from this photo.

AI in your app

Work time

First slice, due Tuesday at 2:30

Leave with a link someone can use

Someone else, on their own phone, finishes your core task.

The next hour

TimeDo
2:45Write the one task you'll give testers, at the top of docs/tests.md
2:50Build until that task works on a phone, start to finish
3:25Put it online, swap phones with a neighbor, and watch
3:35Write what happened, and book your three real tests

Briefs that move it forward

VagueMoves it forward
"Build my app.""Build the first core feature in docs/project.md, with eight sample rides that sound like real students."
"Make it look better.""On a phone, I have to scroll to find Post. Put it at the top."
"It's broken.""I tapped Post with no time set and nothing happened. It should say a time is needed."

When you're stuck

  • Ten minutes on one thing? Undo, and ask for a smaller step.
  • The agent wants a server, accounts or a database? Use sample data for now.
  • Not sure what's next? Reread your core features and build the first one that doesn't work yet.
  • Still stuck? Raise your hand.

Pilot with a neighbor

  1. Put it online, and send the link or hand over your phone
  2. Give a task, not a tour
  3. Watch, don't help, and note where they pause
  4. Swap

Before you leave

  • Your link works on someone else's phone
  • docs/tests.md has your task, what success looks like, and what you want to learn
  • Three people with the problem, by name, and when you'll test with each

Tuesday

  • 2:30: First slice due: prototype, test plan, three tests, and one round of changes
  • In class: Deploys

Testing with users · The Studio