Improve an agent with the coach
Run a coaching session that finds gaps in an agent's know-how and proposes fixes for you to accept.
The coach tests what an agent knows and helps you fix the gaps. It writes questions whose answers a machine can check: does the agent cite the right lines of its repositories, follow a call through several of them, use its memory, call the right tool, and say so when it does not know? The agent answers each question as it would in a chat. The portal scores every answer itself, with no model's opinion. Then the coach proposes changes to the agent's know-how, you apply the ones you agree with, and a re-test shows whether they helped.
Before you start
- The agent needs a model. If it has none, the panel says No model is set for <agent>, so a coaching session cannot run. with Set a model. See Models.
- The coach asks about what the agent has. Repositories, memory and tools that run freely each unlock their kind of question. See Repositories, Memory and Tool permissions.
- A session spends model tokens within the agent's goal limits. See Agent settings.
Start a session
- Open Agents › your agent › Know-how and go to Test it. The agent's Overview also has a Test it → link.
- Optionally type a Focus (at most 500 characters), for example "the payments flow".
- Choose Coach this agent. The session's page opens.
An agent has one session at a time. While one runs, the panel reads Session N is under way: <state> with Open session N.
The steps of a session
The session page shows its steps across the top: Profile, Plan, Questions, Run, Report, Re-test. While the coach works on a step, the page says The coach is working on this step. Reload the page to see its progress. It stops twice to wait for you. The person who started the session also sees those waits in Home's Needs you, as Confirm profile and Approve plan.
1. Confirm the profile
The coach reads the agent's know-how, memory, repositories and tools, and writes a short profile in four parts: Purpose, Expected to do well, Relies on and Gaps noticed, under 300 words. The profile is what the coach believes the agent is for; the questions follow from it.
- If nothing about the agent changed since its last confirmed profile, the coach reuses that profile and goes straight on.
- Otherwise the page shows the new profile, or what changed since the last confirmed one, and waits. Choose Confirm profile.
- Or write what it gets wrong under Or correct it (the coach revises once) (at most 2,000 characters) and choose Send correction. The coach revises it one time; then you confirm it or stop the session.
2. Approve the plan
The plan says how many questions of each kind the coach will ask. The portal works it out from what the agent has; no model decides it.
| Category | Questions by default | Asked only when |
|---|---|---|
| Repo knowledge | 8 | the agent has at least one repository |
| System understanding | 5 | the agent has two or more repositories |
| Memory use | 3 | the agent's memory log is not empty |
| Tool use | 2 | the agent has tools that run freely |
| Honesty | 2 | always |
A note under the plan says why a category was left out, for example one repository: no system questions. The budget defaults to 300,000 tokens and 20 minutes, or the agent's goal limits if those are lower. You can change Token budget and Minutes, up to the goal limits, then choose Start.
3. Questions
The coach first reuses the agent's earlier questions whose cited lines are still there at the head of each repository. It writes the rest by reading the agent's repositories. Every line a question expects is checked against Git, and a question whose cite does not hold is dropped. One question in four is held out: it is scored but never used to propose a fix, so the re-test shows whether a fix helped beyond the questions it was written for.
4. Run
The agent answers each question through its ordinary chat, read-only: it is offered no asks-first tools and cannot propose know-how changes. The portal scores each answer as it arrives.
| Category | Passes when the answer |
|---|---|
| Repo knowledge | cites a repo:path:line range that overlaps the expected one. |
| System understanding | cites each expected step across the repositories, in order. Some steps in order is a partial pass. |
| Memory use | names the fact's key terms and the agent used its memory. Naming them without using memory is a partial pass. |
| Tool use | called the expected tool without an error within its allowance of calls (5 unless the question says otherwise). Trying a tool that asks first fails. |
| Honesty | says it does not know, or asks back, and cites nothing that is not in the repository. |
5. Report and fixes
The Scorecard shows each category's score for the first run, and later the re-test, as a percentage with the count passed. Under it the page counts questions reused, written, dropped (a cite did not verify) and stale. The Questions table lists each question with its category (and held out), the expected cite, the agent's answer, its cites, and the verdict with the reason, such as ✓ pass, ½ partial or ✗ fail.
For the questions the agent failed (held-out ones aside), the coach proposes at most 5 fixes under Fixes: a change to the main skill, a skill, a rule or a memory. Each card shows its reason and a line-by-line diff.
- Read each fix. Choose Apply for the ones you agree with, or Discard.
- An applied fix becomes a new version of that know-how, with Undo on the card.
Fixes work like the changes an agent proposes in chat; see Changes the agent proposes in chat.
6. Re-test
Once you have applied at least one fix, choose Re-test. The agent answers the same questions again, held-out ones included, and the scorecard fills its Re-test column. Until a fix is applied the page says Apply a fix to re-test the same questions.
Stop, budget and failure
- Stop session ends it at any step and keeps what it has.
- A session that uses its tokens or runs past its minutes ends as Out of budget, saying which.
- A step that fails ends the session as Failed, keeping what it had, with the reason on the page.
The session page's header always shows the agent, the focus, the state and the tokens used of the budget.
Where scores show
| Place | What you see |
|---|---|
| Know-how › Test it › Scorecard | The latest score in each category, out of 10 with a percentage, and the session it came from. Before any session: Not tested yet. A first session scores each category out of 10. |
| Know-how › Test it › Profile | The last confirmed profile, its version and who confirmed it. |
| Know-how › Test it › Sessions | Every session, newest first, with its state, start time and score per category. |
| The agent's Overview | A Test it panel: the latest scores and when it was coached, or Not tested yet. |
| The Agents list | Each agent's weakest category, for example System 4/10. |
What you can and can't do
- See every agent's scores, profiles, sessions, questions and answers, whatever your role.
- As an admin or one of the agent's maintainers, start a session with a focus, confirm or correct the profile, set the budget, stop, apply or discard fixes, and re-test.
- Undo an applied fix.
- Run two sessions on one agent at once.
- Set a budget above the agent's goal limits.
- Have the coach change know-how by itself. A person applies every fix.
- Correct a profile more than once in a session.
- Coach an agent that has no model.
Troubleshooting
| You see | What to do |
|---|---|
this agent has a coaching session under way — stop it or let it finish first | Open the running session and finish or stop it. |
the coach has revised this profile once already — confirm it, or stop the session | Confirm the revised profile, or stop and start again. |
say what the profile gets wrong | Write your correction before you send it. |
tokens are 1 to N (this agent's goal limit) or minutes are 1 to N (this agent's goal limit) | Lower the budget, or raise the agent's goal limits first. |
| A category is missing from the plan | The agent has nothing to ask about there yet. The note under the plan says why. |
| Many questions dropped (a cite did not verify) | The coach cited lines that are not in the repository. They are left out of the score. |