{ Prompts4All }

Review an agent session that went wrong

Agent Audit

Review this agent session and find why it went wrong.

  • The session: {transcript file, or "this session"}
  • What I expected: {expected result}
  • What I got: {actual result}
  1. Timeline. Divide the session into phases: understand, plan, change, verify, report. For each phase say what the agent did, and give the time and the tokens if the record has them.

  2. Find the first wrong turn: the earliest moment when the agent believed something false, or made the decision that led to the bad result. Quote it. Most of the later mistakes come from this one, so do not list each of them as a separate cause.

  3. Say what the agent knew at that moment, and what it needed to know. Where was the correct information?

    • in the repository;
    • in an instruction that was loaded;
    • in an instruction or document that was not loaded;
    • only in my head;
    • nowhere.
  4. Find the waste: the same file read again and again, a command repeated with the same failure, long output that filled the context, work that was discarded, and checks that the agent skipped.

  5. Compare the final report of the agent with the facts. List each claim that the session does not support, for example "the tests pass" with no test run.

  6. Classify the cause. Select one:

    • my request was not clear;
    • information was missing;
    • an instruction was present but the agent did not follow it;
    • a check was missing;
    • a tool failed or was missing;
    • the context was full or was summarized, and a fact was lost;
    • the agent had all that it needed and reasoned incorrectly.
  7. Propose the fix that prevents this type of failure. Prefer a check, a script or a hook to more instruction text. If my request was the cause, show how to write it better.

Rules:

  • Give the position in the session for each piece of evidence, and keep each quotation short. Do not copy secrets.
  • Be direct about my part in the failure.
  • One session is one data point. Do not propose a new rule for a failure that occurred one time, unless its cost was high.

Output: three lines first: what went wrong, the first wrong turn, and the fix. Then the timeline as a table, the list of waste, and the cause with your reason.