HackyJS CoursesAI Agents for Whitehat Security

// module 02 · How agent harnesses work

Codex, Cursor and open-weight harnesses side by side

Compare Claude Code's security controls with Codex CLI, Cursor, OpenCode and others: rules, hooks, permissions, and where each one fails open.

  • Lesson 6 of 30

Learning Objectives

  • Map the four control points (instructions, permissions, hooks, sandbox) across the main harnesses
  • Start a read-only Codex session and distinguish sandbox restrictions from approval prompts
  • Configure a Cursor hook that blocks a shell command, and make it fail closed
  • Know which open harnesses support hooks or plugins, and which only offer confirm prompts
  • Pick a harness for a task based on the controls you need, not on habit

This lesson is for enrolled learners

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