You’re Prompting Wrong, Part 2 A practitioner guide argues that developers running coding agents on multi-hour, ambiguous tasks need new prompting skills, including tuning an "effort level" setting — with `high` and `xHigh` sufficient for most multi-hour tasks and `max` and `ultra` beneficial past the multi-day and multi-subagent threshold — and prefixing prompts with `/goal` to supply a measurable definition of success. The guide's "inventory method" asks agents to produce an audit of every change, illustrated by a prompt to upgrade all packages to Java 27 and generate an inventory.csv listing package name, artifact location, blocked reason and upgrade status (pending, in progress, complete, blocked). The author says these techniques address three common failures: incomplete work missing edge cases, agents that get stuck and stop, and early incorrect decisions that invalidate later work. As you advance your agentic usage beyond rote implementation and to multi hour ambiguous problem solving you’ll need to acquire a new skill set to succeed. These skills will give you certainty that when you set an agent off on a task it will return, many hour later, with a solution that matches your expectations. Common mistakes when these skills have not been perfected is: 1. The work produced by agents is incomplete either not providing the full vertical solution or missing edge cases 2. The agent gets stuck and does not persevere past the block or provide a partial solution with next steps for you 3. The agent makes an early incorrect decision invalidating the rest of its work The following sections will teach you how to never run into those problems again Effort level Effort level is a setting that controls how hard and how deeply an agent will work. Inherently the lower setting the the less it will think, the less tool calls and verification it will do and the more likely it is to get blocked and stop moving forward. You’ll have to tune this setting according to the task at hand, but high and xHigh tend to be sufficient for most multi hour tasks, with max and ultra being beneficial as you cross the multi day and multi subagent threshold. /goal Prefixing your prompt with /goal is the best way to provide constant steering to your agent. As your agent solves increasingly complex problems it will encounter frequent rabbit holes that it needs to dive deep on, solve, and then pop back up and continue with its overarching goal. Additionally if your agent gets stuck somewhere it will attempt to unblock itself or move on to parts it can complete while waiting for a deferred decision from you. This really helps with overcoming those “lazy” agents. The key to a good /goal prompt is providing the agent a criteria it can measure itself against, a definition of success, when achieved the agent knows it’s done AND you will be satisfied with the results. For example when refactoring a package your prompt could be to /goal simplify, refactor and cleanup package X, keep all existing tests the same without touching them and ensure they continue to stay green . Why is this a good prompt? Because of its definition of success, whenever the agent encounters a problem it knows how to scope the solution in this case by refactoring more of the code rather than updating the tests . The prompt can be quite simple, it shouldn’t provide numerous implementation details but instead focus on context and its measure of success. Agents are incredibly competent at writing code, what they aren’t competent at is taste, that’s up to you to provide in the prompt. The inventory method A great starting definition of success is what I call the “inventory method”, which is where your definition of success includes the agent producing an audit of all the changes it performed. The benefits of this approach is ease of verifying the solutions accuracy and precision. There are two types of problems you will be giving to agents, ones where you know the entirety of what should be done and the ones where you don’t. In the former case the inventory method gives you an easily verifiable checklist that everything you expected was done and nothing else. For example when asking an agent to upgrade all your packages from Java 8 to Java 27 your prompt could be /goal Upgrade all our packages at url to Java 27, create an inventory.csv whose rows contain the packages name, Java 27 based artifact location, blocked reason, and upgrade status pending, in progress, complete, blocked . Now you can watch the agents progress in real time and know if a package is missing or what went wrong. This also implicitly bakes in your definition of success which is that each package must still build and tests pass successfully. What about the later case, when you don’t know everything that should be done, in that case the “inventory method” is invaluable. Let’s imagine you’re adding cross cutting functionality to a service that depends on the user flow, of which you know several but not all. You’ll create a validation set and training set. The training set are a few examples you’ll provide in your prompt which the agent can use as its context for the problem, the validation set is a set of examples you’ll withhold from the agent and cross reference in the inventory. If the inventory has your validation set, then you have higher confidence that the agent has successfully contextualized the user flow and handled all cases, if not then its also great because you can figure out why it missed that flow and iterate from there. Having the agent also include its methodology in these cases is desirable. Antagonistic Review Agents love to align with your thought process. If you ask them whats wrong with a block of code, they will find an issue, if you ask them why this block of code is correct, again they will follow your lead and say its correct. While great for boosting confidence, it doesn’t lend itself to superb results. How can we harness this anti-pattern? By pairing implementation agents with antagonistic agents. What is an antagonistic agent? One that is asked to find bugs, gaps and issues with a previous agents work. This pattern has been used successfully by Anthropic to migrate a 100k+ LoC package over a weekend https://claude.com/resources/articles/ai-code-migration :~:text=three%20adversarial%20review%20rounds . These two agent loop together over and over again until both are satisfied. There are several important notes when using antagonistic reviews. One they should be started in their own subagent or context. This prevents the previous mal-alignment mentioned and ensures that the antagonistic review agent isn’t biased into focusing on one specific area but looks at the solution holistically. Each review round should start its own context. Two you want the antagonistic agent to focus on specific key aspects without causing the implementation agent to come up with a completely degenerate solution. An antagonistic agent can fabricate scenarios where the code doesn’t work but product constraints prevent these cases. The same definition of success principle we learned about earlier can be provided to the antagonistic review to avoid this. Three you often get the best results when using different models for both agents. Different models or even different effort levels focus on different aspects and will be able to uncover parts that the other missed. Conclusion Set your agents effort to high or higher, provide it a /goal with a clear definition of what success looks like and lay back and relax while the agent does all the work for you, then once its done have an antagonistic agent review its work and iterate until it’s perfect