HackyJS CoursesAI Agents for Whitehat Security

// module 02 · How agent harnesses work

Local models: when, which, and what it costs you

Run an open-weight model locally for code that must not leave your machine, configure it so it actually works for agents, and set honest expectations.

  • Lesson 7 of 30

Learning Objectives

  • Decide when a local model is required and when it is just a preference
  • Size a model to your hardware and pick a realistic candidate
  • Configure Ollama so agent work does not silently fail on a tiny context window
  • Connect a local model to an agent harness and check that nothing else leaves the machine
  • Read open-model benchmark claims critically

This lesson is for enrolled learners

Log in, then enroll to read the full lesson, run its lab and take the quiz.