HackyJS CoursesAI Agents for Whitehat Security

// module 02 · How agent harnesses work

Inside the agent loop

Model, tools, context and permissions: what a harness actually does on every turn, and why each part matters for security work.

  • Lesson 4 of 30

Learning Objectives

  • Describe the agent loop: model call, tool request, permission check, tool run, result back into context
  • Explain which parts are the model and which are the harness, and why that matters for control
  • Identify every point where untrusted text enters the model's context
  • Watch the real tool calls of an agent run and read them

This lesson is for enrolled learners

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