Skip to content

Failed attempts are the most useful documentation your team does not have

Teams document what works and throw away what did not. For coding agents the dead ends cost the most. What to record, where, and how to show it before the edit.

Published by Contextingo.

Documentation describes the solution that shipped. The three approaches that were tried first, and why each one failed, live in a chat that nobody will open again. A person might remember. An agent will not.

Why dead ends cost twice

An agent that is asked to fix a problem will often try the obvious approach first. If the obvious approach failed last week, you pay for it again: tokens, time, and a review of a change that should never have been proposed.

What a useful record contains

  • What was tried, specific enough to recognise: the approach, not the whole story.
  • Why it failed: the error, the constraint, the measurement.
  • Where it applies: the files or the module involved.
  • Who found it and when, so it can be revisited if the code changed.

Show it at the right moment

A list of failed attempts nobody reads is no better than a chat log. The record has to reach the agent before it edits the files in question. In Contextingo, failed attempts that cite a file are shown first when an agent is about to change that file, and each one is saved with the reason.

Keep them honest

A failed attempt can become wrong: the library was fixed, the constraint was lifted. Give records a status and let a person or a checked commit confirm or retire them, so old dead ends do not block new work.

More on the mechanism: how to record failed attempts for coding agents.

Questions

Good to know.

Isn’t this what commit messages are for?

Only for attempts that made it into a commit. Most failed attempts are never committed, so they leave no trace there.

Won’t old failed attempts mislead the agent?

They can, which is why each record keeps a status and a source. A record can be retired when the situation changes.

Nothing learned is lost. Nothing unchecked is done.