CSC-105

LibraryWorking with Agents

Working with Agents

Working with Agents (continued)

📆 Today

  • Project 4 due at 2:30pm
  • Start Project 5: Look and Feel, due Thursday, October 1
  • Thursday, October 8: midterm project due at 2:30pm; demos and a short exam review
  • Tuesday, October 13: fall break — no class
  • Thursday, October 15: midterm exam (on paper, in class, one hour)

Stay in the loop!

  1. Evaluate the current state of the project
  2. Work with the agent to plan the next steps
  3. Execute the next steps
  4. Back to step 1

Have your agent present options

  • Create images for UI/style references (mood boards, etc.)
  • Create HTML mockups of ideas with multiple options
  • Refine then incorporate into the project

Why does wording steer the agent?

The map is frozen.

Your prompt chooses where you stand on it.

Your promptTokensLookup: fixed numbers pertokenLayers mix in contextScores for every next tokenEmbedding model: onepoint for the whole text

What moves a prompt?

  • Role: “You are a cardiologist.”
  • Vocabulary: “ejection fraction,” “arrhythmia”
  • Audience: “for a five-year-old”
  • Format: “as a lullaby,” “as a table”
  • Examples: one sentence in the style you want

The "movie store" demo

  1. Add images/references
  2. A simple prompt to create a plan (in markdown)
  3. Iterate with agent in a loop

Project 5: Look and Feel

Give your midterm project a design pass.

Speak product

VaguePrecise
make it nicerGive the results screen a clear visual hierarchy
it's confusingMap the user flow and add an empty state
make it popFollow the style guide: one accent color for the main component

UI vs. UX

  • UI: what people see and touch
  • UX: how it feels to get something done

Iterate visually

  1. Ask for an artifact you can open, usually an HTML page
  2. Look at it the way a user would
  3. Give one specific change, with a screenshot
  4. Repeat, then apply it to your app

The Project 5 loop

  1. References → design/moodboard.html
  2. Design system → src/system/ + design/style-guide.html
  3. User flow → design/user-flow.html
  4. Apply it one screen at a time, test each change
  5. Write your own design notes

Start now

Project 5: Look and Feel

Find 3–6 references before you prompt anything.