yellowsubmarine372

About Harness Engineering

Harness engineering is a popular term in developers, investigated and write about a tech blog about it. Read OpenAI codex documents and youtube videos about it

every time the agent makes a mistake, engineer the environment so it can’t make the specific mistake the same way again

openai documents

experiment: shipping sw product with 0 lines of manually written code

human steer -> agents execute, team of agents

idea: build an opensource agent that builds context graph, and can implement easily


**Natural language** - goals, roles, preferences, decision criteria, interpretations of exceptional situations **Code-enforced** - permissions, input schemas, state transitions, retry limits, approval workflows, sandboxing, testing, evaluation, validators, linters, logging, cost limits


Agents are most effective in environments with strict boundaries and predictable structure. At the same time, explicit about where constraints matter and where they do not -> just set boundaries, and within those boudaries, agetns as freedom in how solution is expressed

https://www.youtube.com/watch?v=rmvDxxNubIg

Context engineering is getting more quality from models, AI works well in brownfield codebases start conversation -> restart context

what if we start putting ads in tokens..?

Too many MCP -> easily go to the dumbzone

Use subagents to fetch the context for each role

build context window small

  1. RESEARCH: Don’t code yet. Let the agent scan files to establish ground truth (docs lie, code doesn’t).
  2. PLAN: The most critical step. Agent writes a detailed step-by-step plan (“Compression of Intent”). You must review and approve the PLAN, not just the code. This prevents “outsourcing thinking.”
  3. IMPLEMENT: Execute the approved plan, ideally in a fresh context window.

Key Concept: “Intentional Compaction.” Don’t let the chat get too long. Frequently ask the agent to summarize the state, then start a NEW chat with that summary to keep the model smart.

Warning: Without this discipline, Juniors use AI to fill skill gaps (shipping slop), and Seniors burn out cleaning it up. Treat context like a scarce resource.

Harness Engineering: How to Build Software When Humans Steer, Agents Execute — Ryan Lopopolo, OpenAI

Comment: Code is still not free, it is still a technical debt and responsibility. Agreed But would change in 6-7 months

← all posts