Skip to content

Learn from what agents get wrong

You correct the same mistake in every agent branch: tests that are skipped instead of fixed, a lockfile that changes for no reason, a file nobody asked it to touch. You know it, but nowhere does it say so, so the next agent makes the same mistake. Likewise you do not know which kind of task tends to go well and which keeps ending in repair rounds, and when an agent gets stuck, starting a new one means explaining everything again.

The app is the one place that sees the whole loop: the task you gave, what the agent did, what the tests said and what you thought of it. It keeps a small record of that on your computer and offers it back: as rules you can add to CLAUDE.md, as a library of tasks, and as a note for the next agent. It never changes anything by itself. Rules come as a diff you apply yourself; a routine only proposes a branch; a handover is a text you edit.

All of this lives on the Worktrees view (Ctrl+5), on the board next to the list, and is kept in the app’s settings on your computer, per repository. None of it is stored in the repository or pushed.

On a card in the merge queue there are two buttons next to Send to agent:

  • Note… is for a repair round. It writes down what the agent did wrong this time. It shows when the card has feedback to send, or when the branch failed or conflicts.
  • Reject… takes the branch out of the queue and notes why (the reason may be empty). The branch and its worktree stay, so nothing is lost; the agent is simply not going to land.

Both open a free text box. Each note also remembers which files the branch changed and which smells the queue found, such as skipped tests. You can keep at most 300 notes per repository.

Under Lessons the app lists what comes back. Candidate rules are groups of notes that share a kind of smell (say, skipped test) or the same file. A group appears from two notes, and from three it says enough for a rule. Click a group to read the notes behind it, and Forget a note that is not worth keeping.

Press Suggest rules… to have Claude write rules for CLAUDE.md. Only groups with at least three notes are used, and the notes go to Anthropic without secrets (and you can read them first, see Show what is sent). Claude also sees your current CLAUDE.md, so it does not repeat what is there. What you get is:

  • the suggested rules, each with from N notes behind it. A rule with fewer than three notes behind it is dropped;
  • a diff against CLAUDE.md, made by the app, not by Claude.

Copy diff, apply it yourself and read it in Changes before you commit. The app does not write to CLAUDE.md. If there is no pattern yet, it says Claude found no rule with three notes behind it.

What it does not do: take a smell that you simply clicked away as a note, take a comment from Send to agent as a note, write to the .claude/ folder, or suggest rules by itself after a merge. You ask for them.

Some tasks work every time (“add a test that fails first, then the fix”), others end in repair rounds. Once you start agents with New agent… or from the task queue, the app keeps the task, at most 2000 characters and with secrets removed. The Prompt library shows them, with how each one ended:

  • Open: not finished, or merged outside the queue (those stay Open);
  • Merged without a repair round;
  • Merged after N rounds;
  • Rejected.

The filters All, No repair round, With rounds, Rejected and Open show their numbers. Each task shows the branch, the model that the agent used (model unknown when Claude Code did not report it) and the date. Forget removes a task.

Use as template opens New agent… with that task filled in. Words in curly braces, such as {place}, are marked in the list, and the dialog says Fill in before you create the agent and names them. Replace them before you start.

The library keeps 200 tasks per repository. It shows numbers and makes no claim: below five finished tasks it says Too little data to say anything yet, and it never tells you which task is “best”. It cannot yet rewrite a task for you.

Kind of task: which work goes well, and with which model

Section titled “Kind of task: which work goes well, and with which model”

Not every task is equally easy for an agent: a small refactor may land cleanly while a database migration keeps needing a repair round. To see that in your own numbers, give a task a label. In New agent… the field Kind of task (optional) suggests refactor, test, ui, migration, bugfix and docs; you can type your own, up to 30 characters, and the app keeps it in lower case. You can change the label later in the field Kind of task on each task in the library. The app never guesses a label for you.

Once tasks have labels, the library has a section By kind of task. For each label it shows how many tasks there are, how many of the finished ones landed without a repair round, and the same per model. Under five finished tasks (for a label, or for a model within it) it says too little data and the count, for example 3 of 5 finished, instead of a percentage.

When you choose a label in New agent… and there is enough data, a line below the field says something like For migration, opus landed without a repair round in 4 of 5. It is always shown with its numbers, it is only a hint and never an instruction, and without enough data (or without a model that did better than the others) there is no line at all. It cannot yet propose a label itself, and the threshold of five cannot be changed.

A routine is a ready-made task for a background agent that only proposes. The list Routines is above the worktrees. It starts with one routine, Fix newly failing tests, and a line such as 0 of 3 open routine branches; nothing is merged without you.

  • Run now makes a worktree routine-<id>-<time>, starts Claude Code in it with the task, and tells it to stay within the boundaries and only propose. When the agent reports done, its branch appears in the merge queue like any other. Nothing lands without you.
  • Edit… changes the title and the task. Pause and Resume turn it off and on.
  • Open branches at most limits how many unfinished routine branches there can be (3 by default). A routine that still has an open branch does not start: the list says Cannot run now and why. A branch is open until it is merged or rejected.
  • Three rejections in a row pause the routine, with the reason and a notification, until you resume it. Resuming starts with a clean slate.

A routine that finds nothing does not keep its slot. When the agent reports that it is done and has made no commits (for example because no test was failing), the run counts as nothing found: the list says last run: nothing found, the routine can start again, and the empty branch and worktree are cleaned up so they do not pile up. The app only does this after checking that there are no commits, no uncommitted changes and no ignored files in the worktree. If there is anything, nothing is removed and the run stays as it was.

There is no timer: a routine only runs when you press Run now. You cannot add or delete routines yet, and there is no “after every merge”.

An agent is stuck, or its context is full, and you want a new one to carry on. In the details of the agent, press Hand over…. The dialog Hand over puts a Handover note together from what the app has recorded. Nothing is guessed, and what is missing is left out:

  • the task (the questions the agent recorded, otherwise its first prompt),
  • the commits since the base,
  • the files that are not committed yet,
  • the last thing the agent reported,
  • the last failure from the merge queue (conflict, tests, smell or review),
  • and its last five prompts.

Secrets are removed, and the note is kept within the limit of a task; if it is too long, the least important parts go first. Edit the text as you like, then Copy it, or start a new agent: in a new worktree on the branch of the old one, or in the same worktree when no agent is running in it. Press Start new agent.

It does not use Claude to summarise, and it does not make a fresh snapshot for you.

  • There are no Lessons or Prompt library. The prompt library only appears once the app has recorded a task; Lessons need notes from Note… or Reject….
  • Suggest rules is grey. No group has three notes yet.
  • The model says unknown. Claude Code did not report its model to the app. Only agents started with Start in app do.
  • A routine says “Cannot run now”. It has an open branch, a limit was reached, or it is paused; the line gives the reason.
  • Hand over has an empty note. The app has nothing recorded for the agent yet: no task, commits, changes or prompts.

Review an agent’s work is the review before you reject. The cockpit starts the agents.