Give the agent a goal, not a recipe (what harness engineering is)
People spend hours polishing the perfect prompt, then the agent fails because it can't find the right files. With today's agents the environment matters more: context, memory, skills and permissions. Here is how to prepare it and what to check.

On this page
In 30 seconds
- With today’s agents the work shifts from the perfect prompt to the right environment: context, memory, skills, tools and permissions. That’s what I call harness engineering.
- When the environment is well prepared, one request with the goal, the audience and the test for “done” is enough. The agent decides how.
- The three tools I use most to work this way are Claude Code, Grok Bot and Gemini Notebook.
- Your job is still to decide what you want, provide the right material and check the result before it goes out.
If you already know what a harness is, skip to “The request, once the environment is ready”.
You spend twenty minutes polishing the perfect prompt, word by word. The agent follows it to the letter and still gets it wrong, because it didn’t know where the files were, which document template to use or what you had decided the week before. The problem wasn’t the request: it was what the agent found, or didn’t find, when it started.
From prompt to environment
Until recently we were taught to write long, precise prompts: role, steps, format, examples. It made sense, because the model only saw the conversation and forgot everything when the chat closed.
Today agents work inside an environment: they read a folder, remember your preferences, use tools, open the browser, run code and pick the work up again the next day. The result depends less and less on how you phrase a single request, and more and more on what the agent finds when it starts.
The word for this whole setup is harness: everything around the model that guides it. Context, memory, skills, tools, permissions, checks. With the same model, two different environments produce very different results.
The five parts of the harness
1. Context: the right material, not all the material
Context is what the agent reads to do the job: documents, data, examples. A small, tidy folder beats an archive with five versions of the same file. Keep originals apart from outputs and make it clear which document has the final word (the approved price list, the final draft).
A good example is worth more than a long explanation: a presentation you like, an email written the way you want, a report that worked.
2. Memory: what stays true from one task to the next
Memory is what you don’t want to repeat every time: how you write, who you work for, which sources are reliable, which format you deliver. In Claude Code it lives in an instructions file (CLAUDE.md) and in auto memory; in Grok Bot each Bot keeps preferences and files; in Gemini Notebook the memory is the notebook’s sources.
I always separate three levels: general preferences (“write in plain English”), project rules (“prices come from the approved list”) and work status (“photos for three products still missing”). The first rarely changes, the last changes hourly: mixing them creates memories that age badly.
3. Skills: the method, written once
A skill is a reusable procedure: how to prepare the monthly report, how to check an invoice, how to write an article in your style. The agent loads it when needed instead of keeping it in mind all the time.
You don’t have to write it from scratch: when a job goes well, ask the agent to turn it into a skill with materials, steps and checks. Then test it on a second case. Grok Bot and Hermes Agent even create them on their own, by watching you work or by reflecting on how they solved a problem.
4. Plugins, connectors and tools: what it can touch
Connectors (often via MCP) link the agent to email, calendar, documents, business software. Plugins package skills, tools and links together. The rule is simple: connect only what the task needs. A method without access isn’t enough, but twenty useless accesses make the system more fragile and less safe.
5. Permissions and checks: where it stops on its own
Reading, preparing and proposing are one thing; sending, publishing, paying and deleting are another. Decide upfront what it can do alone and what must stop at a draft for approval. The serious agents already do this: Claude Duet shows you the plan before paying or messaging someone, Grok Bot asks for approval on actions, Claude Code has a planning mode and per-tool permissions.
The request, once the environment is ready
With the environment prepared, the request gets short. It doesn’t describe the steps: it describes the result. For example:
In the folder you’ll find the price list, photos and last year’s deck. Prepare an editable presentation explaining the offer to a new client, with the same prices as the list. Only ask me about decisions that change content or cost, and show me everything before sending.
It works because it has four things: material with clear authority, a recognisable result, an audience, a boundary (what to ask and when to stop). The agent organises the rest.
If the result doesn’t convince you, the useful correction is concrete: “You’re using the old price list, this is the valid one” updates the work; “do better” adds nothing.
With which tools
Claude Code is the most complete environment for handing over a whole result: it works on a folder and has CLAUDE.md, memory, skills, plugins, scheduled tasks and projects that keep going in the cloud. No coding needed: documents, sites, analyses and presentations are made this way too.
Grok Bot is my favourite for work that carries on over time: you create several Bots, each with a role, memory and routines, on a cloud computer that works with your laptop off. A main Bot coordinates the others. More on the 24/7 agents page.
Gemini Notebook is the cleanest way to provide context: you upload your sources and get answers, maps, quizzes and summaries only from those sources, citing the passage. Perfect for studying and for preparing the material you’ll then hand to an agent.
What stays with you
The agent executes, but the responsibility for the result is yours. Open the files, check the numbers at the source, reread before sending. An agent saying “done” hasn’t proved it did well.
A four-step method for long tasks
- Explore: the agent reads the material and tells you what it understood.
- Plan: it proposes how to proceed; correct it now, while it’s cheap.
- Produce and check: it executes and verifies, opening files and comparing them with the data.
- Consolidate: it saves a clear version and a short status file (goal, decisions, next step) to restart from.
Try this week
Pick a job you redo often. Create a folder with the right material and one good example, write three lines of stable rules and hand the agent the result, not the steps. When it works, have it turned into a skill. That’s the step that turns AI from a chat into a collaborator.
Ready-made requests
The structure of a good request is the same one OpenAI teaches in its official prompting guide (goal, context, shape of the result, boundaries) and that Anthropic calls description in the AI Fluency course on Claude Academy. When you don’t know what to say, flip the roles: one of the most repeated tips from creators who teach these tools (Futurepedia, Tech With Tim) is to let the agent ask you for the context, one question at a time.
I want to get [result]. Before working on it, ask me the questions you need to do it well, one at a time, waiting for my answer. When you have enough information, summarise in five lines what you understood and ask me to confirm before going ahead.
And remember: examples beat adjectives. “Professional”, “clear”, “catchy” mean different things to everyone. Two or three examples of what you consider well done (an email, a title, a table) explain the format better than any description.
Mistakes to avoid
- The novel-length prompt. Invented roles, ten steps, twenty rules: more text doesn’t mean more clarity. What counts is the result, the right material and the boundary.
- Everything in one request. Analysing, writing, translating and formatting together multiplies mistakes: split into steps and check between them.
- An endless chat as an archive. What must stay goes in a file (instructions, memory, skill), not in a three-week conversation.
- Delegating judgement. The agent prepares; deciding what goes out stays with you.
In one linePrepare the environment once, then ask for the result: the agent decides how, the checking stays with you.
Sources
Informational content. Prices, models and rules change often: check official sources before deciding. Written with the support of AI tools.

