Skip to main content
HS
HiSETSuccess
LeetCode Prep

Agent Engineering

From autocomplete user to superstar developer — coding agents, context, skills, MCP, hooks, spec-driven and parallel workflows, and building your own agents.

Chapter 1 · 6 lessons

The AI Developer Workstation

Cursor, Claude Code, Codex, and Copilot — what each surface is for, how agent loops work, and the daily habits that separate fast from reckless.

Cursor · Claude Code · OpenAI Codex · GitHub Copilot

Show all 6 lessons

Lesson 1 of 6

What a Coding Agent Actually Does

Every modern coding agent runs the same loop: read context, decide on a tool call (search, read file, edit, run shell, call MCP), observe the result, and repeat until it believes the task is done. The model is the planner; the harness (Cursor, Claude Code, Codex, Copilot) decides which tools exist, what context is preloaded, what needs approval, and what gets logged.

The agent loop
  ┌──────────── context ────────────┐
  │ system + repo memory + skills   │
  │ + your prompt + prior turns     │
  └───────────────┬─────────────────┘
                  ▼
            ┌──────────┐   tool call   ┌──────────────┐
            │  model   │ ────────────▶ │ harness tool │
            │ (planner)│ ◀──────────── │ read/edit/sh │
            └──────────┘   observation └──────────────┘
                  │ (repeat until done or budget hit)
                  ▼
            diff + summary  →  YOU review
  • Quality is bounded by context: wrong files in, wrong code out
  • Speed is bounded by approvals: every prompt-for-permission is a round trip to you
  • Safety is bounded by the harness: sandbox, permission rules, and hooks — not by asking nicely
  • The summary is a claim, the diff is the evidence

Signal

Describe agents in terms of loop, context, tools, and guardrails. Candidates who only talk about 'which model is smartest' miss that the harness decides most outcomes.