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.

Lab · Beginner · 45 min

Write a Context File That Stops Invented Conventions

Measure how often an agent invents commands or patterns in your repo, then write a short AGENTS.md that fixes it — and prove it with before/after runs.

Cursor · Claude Code · OpenAI Codex · GitHub Copilot

Show all 4 steps

Step 1 of 4

Lab brief

Goal

A root AGENTS.md under ~80 lines plus thin CLAUDE.md / Cursor rule pointers, with measurably fewer invented conventions.

Failure mode

Agent runs npm test in a pnpm repo, creates utils/ when the project uses lib/, and adds a new HTTP client instead of the existing one.

Staff move

Treat memory files as prompts under test: baseline, change, re-measure, and keep only lines that moved the result.