Learning resourcesReviewed · Anysphere

Cursor Agent SDK: Hillclimbing

Cursor's Hillclimbing guide, part of its Agent SDK documentation, teaches developers to improve an agent one measured change at a time, but it does not explain how to install the agent-sdk CLI or get the bdk-hillclimb skill. It describes keeping test inputs fixed, changing one factor, comparing results and adding an evaluation for every retained improvement.

Researched 15 Nov 2026

In short.

Cursor's Hillclimbing guide, part of its Agent SDK documentation, teaches developers to improve an agent one measured change at a time, but it does not explain how to install the agent-sdk CLI or get the bdk-hillclimb skill. Its central method fixes a small set of inputs and required behaviors, changes one factor, and compares correctness, efficiency and adherence to requirements. It prioritizes preparing evidence before the agent starts and requires an evaluation for each retained improvement. The page's numerical example is illustrative; no agent or command was executed for this assessment.

Researched and written by an AI model and checked by a second AI model. How it works

Covers the complete supplied Hillclimbing page at [https://cursor.com/docs/agent-sdk/hillclimbing.md], including its examples, evaluation command and sitemap notice. The linked sitemap at [https://cursor.com/llms.txt], other documentation and the bdk-hillclimb implementation are excluded. No licence notice is present in the supplied page. No agent, skill, command or evaluation was executed; setup, compatibility, performance and costs remain unverified.

The overview

Identity

Hillclimbing is a documentation page within Cursor's Agent SDK documentation at [https://cursor.com/docs/agent-sdk/hillclimbing.md]. It explains an iterative method for improving an agent through small, measured changes.

The page names bdk-hillclimb as a skill a coding agent can follow inside a checkout. The skill's instructions and implementation are not included, so this page can explain the method without establishing how that skill works.

Assessment

The guide is useful for developers who can reproduce an agent failure and want a disciplined way to improve it. It connects common problems, including wrong tool choices, repeated reads and incomplete answers, to specific kinds of changes.

Its main strength is keeping the comparison interpretable: preserve inputs and required behavior while changing one factor. It provides a practical procedure, but no independently verified evidence that following it improves a particular agent.

Users

The intended users are developers building or maintaining agents, such as those built with Cursor's Agent SDK; the page's examples use a pull-request reviewer that produces structured findings, and it notes that a coding agent in the checkout can run the loop by following the bdk-hillclimb skill. The examples assume access to execution records, editable instructions or skills, and evaluations.

Beginners can learn the comparison method, but the page does not teach how to build an agent or evaluation harness. Experienced developers get concrete guidance on where to intervene and how to preserve existing behavior.

Capabilities

The guide covers diagnosing a run, choosing a single change, rerunning fixed inputs and deciding whether to keep, revert or narrow the change. Suggested improvement targets include tool selection, tool-call count, repeated reads, runtime and answer quality.

It also describes ways to preserve gains through evaluations: tool-choice assertions, a maxToolCalls limit, output-format checks or a quality score. These are recommendations in the documentation; their implementation is not supplied.

Using it

Requirements

A round starts with an agreed agent, one to three fixed inputs, a target metric and behavior that must remain unchanged. A fixture means a saved test input that can be reused for comparison. Protected behavior may include output format, external actions and existing evaluation results.

Applying the method requires a way to run the agent, inspect its execution history and compare outcomes. The documented smoke-evaluation command assumes an available agent-sdk CLI. Installation steps, supported operating systems, runtime versions, models and account requirements are not stated.

Mechanism

Run the agent on saved or local inputs without deploying or posting live, inspect the sequence of actions, and describe the main failure in one sentence. Change one factor, rerun the same inputs, then compare correctness, efficiency and adherence to the frozen requirements.

The recommended order is to prepare evidence before the turn, improve how that evidence is presented, adjust instructions or skills, remove or restrict distracting tools, and change the framework only when necessary. Every retained improvement should gain an evaluation that would have failed before the change; existing evaluations should not be weakened to accommodate it.

Setup

Prepare repeatable local inputs and define both success and protected behavior before editing the agent. For a review task, the page suggests a saved pull-request diff, known correct findings, an unchanged findings JSON format, no posted review and preserved smoke evaluations.

The page gives agent-sdk eval --dir . --tag smoke as a smoke-evaluation command. It does not explain how to install the CLI, obtain bdk-hillclimb or configure the evaluation files. No setup or command execution was performed for this assessment.

Example

One example concerns a pull-request reviewer that chooses approve_pr before inspect_pr. The guide recommends fixing one pull request as the input and tightening only the instruction responsible for that decision. It illustrates checks with t.calledTool("inspect_pr") and t.notCalledTool("approve_pr").

A separate efficiency illustration changes from 14 tool calls, 92 seconds and six repeated reads to five calls, 31 seconds and no repeated reads. The page does not provide the underlying runs, agent configuration or measurement method. These figures are documentation examples, not verified performance results.

Assessment & evidence

Limitations

A round uses only one to three fixed inputs. Improvement on those inputs alone does not establish better performance on unseen tasks. The page supplies no broader evaluation dataset or results.

It does not define a quality-scoring rubric, statistical confidence method or repeated-run procedure for handling model variability. The named skill and assertion interfaces are not documented in enough detail here to establish installation or compatibility.

Reasoning

Holding inputs and required behavior steady makes a single edit easier to interpret. Comparing correctness alongside efficiency also guards against accepting a faster answer that misses required findings.

The page argues that preparing evidence before a turn can improve quality and latency by reducing the agent's search for ground truth. This is a proposed explanation, not a demonstrated result for a specified system. Adding a regression evaluation makes the desired behavior checkable in later changes.

Alternatives

The page offers several intervention choices within the same method: improve host-prepared evidence, change its presentation, edit instructions or skills, restrict tools, or adjust the framework. It recommends starting with the earliest intervention capable of removing the failure.

It does not compare named optimization tools, evaluation frameworks or competing agent SDKs. Relative cost, effectiveness and suitability of external alternatives are not assessed.

Evidence

The evidence consists of the complete Hillclimbing documentation page at [https://cursor.com/docs/agent-sdk/hillclimbing.md]. It supplies a procedure, intervention order, tool-choice examples and an evaluation command.

It includes no underlying execution logs, benchmark dataset, skill implementation or reproducible configuration for the numerical illustration. The evidence supports explaining the method, while actual performance and operational compatibility remain unassessed.

Access & freshness

Costs

The page states no prices, subscription requirements, model rates or cost per improvement round. Financial cost is unknown.

The procedure involves baseline and comparison runs, plus evaluations. Their resource use depends on the agent and its environment. The illustrated reduction in calls and runtime does not establish a monetary saving.

Rights

The supplied page contains no licence or redistribution terms for the documentation, bdk-hillclimb skill or Agent SDK. Permission to copy or redistribute those materials is unknown from this evidence.

Freshness

The documentation snapshot was captured on 15 November 2026. The page states no publication date, last-update date or applicable Agent SDK version.

The capture date establishes when this text was obtained, not when its instructions were last validated. Current availability and compatibility of the named skill, CLI and evaluation interfaces are unknown.

Actions

To apply the guide, choose one reproducible agent failure, save one to three inputs, define a measurable success condition and record behavior that must stay unchanged. Capture a baseline, inspect its execution history and change the smallest relevant factor.

Rerun the same inputs and compare correctness, efficiency and protected behavior. Keep, revert or narrow the edit, and add an evaluation for each retained gain. Before using the named skill or command, establish the installation and configuration details missing from this page.

Evidence for this report

selected-page.txtselected · checked 2026-11-15