---
id: improve.overview
title: Harness Improvement
summary: Improve candidate behavior with Lemon Goal or give your coding agent a scoped External Agents task.
kind: concept
product_area: improve
status: stable
updated: 2026-11-06
canonical: /docs/improve
---

# Harness Improvement

Harness improvement offers two ways to act on benchmark results: **Lemon Goal** coordinates goal-driven work inside Teammately, and **External Agents** prepares a task for your coding agent in your own repository.

## Definition

Lemon Goal starts from a selected saved Harness and measurable criteria. It creates the Goal and its Session together, preserves the original instructions and follows candidate changes through actual evaluations.

External Agents pins a Benchmark Version and optionally selected criteria or a reference Run. It supplies the correctness context while your agent changes the real application. A Teammately Harness or source upload is optional for that path.

## Decision checkpoint

| Need | Choose | Boundary |
| --- | --- | --- |
| Evolve a saved Harness toward numerical targets | Lemon Goal | Recorded Goal, Session, candidates and evaluations |
| Change application code in your own environment | External Agents | Copied task and exact benchmark context |
| Clarify a mistaken standard | Expert Contribution or Correctness Governance | Human judgment and artifact approval |
| Add missing input situations | Coverage Design | Requirements and explicit Case adoption |

## Work with Lemon Goal

Choose the starting Harness, criteria, permitted direction and execution settings. Read actual starting measurements where available; missing measurements stay unmeasured. Starting creates the Goal and begins its Session, capturing your targets and original instructions together.

Use the conversation to read the agent's conclusions, answer explicit questions and provide authorized steering. Goal, Results, Evolution and Harnesses expose the current purpose, measurements, candidate history and source artifacts.

Completed means the agent concluded its work. Read the reported outcome to determine whether the Goal was achieved. Stopping a Session preserves its recorded work.

## Work with an external agent

Copy the task from External Agents. Your coding agent retrieves the pinned context, inspects your repository and carries out the requested implementation and evaluation. The agent works in your repository while Teammately supplies the selected benchmark context and assessment results.

Imported responses and managed Harness executions return to ordinary Benchmark Evaluations. Your engineer reviews the comparison and decides which implementation changes to adopt.

## Keep the responsible object clear

A candidate failure can expose an incorrect Case, an applicability problem or a missing coverage slice. Fixing candidate code is not the answer to every benchmark discrepancy. Preserve the exact candidate and Benchmark Version so the next action can be assessed from the same recorded population.
## Related reference pages

{% related-card-grid title="Related reference pages" %}
- [Start a Lemon Goal Session](/docs/improve/start-improvement-session)
- [Lemon Goals](/docs/improve/goals)
- [Work with External Agents](/docs/improve/external-agents)
- [Candidates and Results](/docs/improve/candidates-and-frontier)
- [Session Conversation and History](/docs/improve/chronology-and-trajectories)
- [Lemon Goal](/docs/concepts/lemon-goal)
{% /related-card-grid %}
