{ Prompts4All }

Turn repeated corrections into checks

Agent Audit

Find the mistakes that coding agents make again and again in this repository, and stop each one at its cause.

  1. Collect evidence from this period: {period, for example the last 30 days}

    • the session transcripts of this project, if the harness keeps them (ask me for the location if you do not know it);
    • commits that fix or revert an earlier commit;
    • review comments on pull requests.
  2. Find the corrections. A correction is a moment when I rejected the work of the agent, told it to do the work again in a different way, or repaired the work myself afterward. Ignore the moments when I changed my mind about what I wanted.

  3. Group the corrections by cause, not by symptom. Keep a group only if it has two or more corrections. For each group give the count, two short examples with their dates, and the cause. Typical causes are:

    • information that the agent did not have;
    • a default that is wrong for this project;
    • a check that was missing, or too slow to run;
    • a tool that was missing;
    • an instruction that was present but not followed.
  4. Propose one fix for each group. Use the first type in this list that works:

    1. Make the mistake impossible: a type, a lint rule, a test, a pre-commit hook or an agent hook.
    2. Make the correct way the easy way: a script or a command that does the work correctly.
    3. Make the failure explain itself: an error message that says what to do.
    4. Add one line to the instruction file, with its reason. Use this type only when the first three do not apply.

    If an instruction was present and the agent did not follow it, more text is not the fix. Use one of the first three types.

Rules:

  • Transcripts can contain secrets and private data. Do not copy them into your report, and keep each quotation short.
  • Do not propose a fix for a mistake that occurred one time.
  • Do not implement anything until I select the fixes.

Output: a table sorted by count, with these columns: mistake, count, cause, fix, type of fix (1 to 4), effort (small, medium, large). Then name the three fixes that you recommend first, with the reason.