Live betaSelf-Improving Agents

Turn failed runs into better prompts and skills.

CtrlB proposes changes from production failures and tests them against your evaluation criteria. Your team reviews each update before release.

The proposed skill tells the agent to check delivery status after a timeout before retrying. The example test passes; review is still required.

Skill instructionsIllustrative example
  1. Failure

    A send call timed out. The agent retried and sent the email twice.

  2. Proposed change

    ProposedAdded instruction

    If the send call times out, check delivery status before you retry. Do not send the email again if delivery is confirmed.

  3. Evaluation

    Current
    Duplicate email
    Candidate
    One email
  4. Review statusAwaiting team review

See what changed and why.

Review the failed run, the proposed skill change, and the test results together.

The proposed skill tells the agent to check delivery status after a timeout before retrying. The example test passes; review is still required.

Skill instructions
Failed runA send call timed out.The agent retried andsent the email twice.Skill instructionsCURRENT-If the send call times out,try again.PROPOSEDAdded instruction+If the send call times out, checkdelivery status before you retry.Do not send the email again ifdelivery is confirmed.EvaluationCRITERIONThe customer receivesone email.CURRENTDuplicate emailCANDIDATEOne emailAwaiting teamreviewReview status
  1. Failed run

    A send call timed out. The agent retried and sent the email twice.

  2. Skill instructions

    Current

    If the send call times out, try again.

    ProposedAdded instruction

    If the send call times out, check delivery status before you retry. Do not send the email again if delivery is confirmed.

  3. Evaluation

    CriterionThe customer receives one email.

    Current
    Duplicate email
    Candidate
    One email
  4. Review statusAwaiting team review
  • Proposed
  • Tested
  • Awaiting review
  • Released (not released)
Dependency note

Checking delivery status requires a tool that can report it.

Requires tool support A prompt edit does not add a tool that is missing.

Illustrative example. Checking delivery status requires a tool that can report it.

Keep release decisions with your team.

CtrlB detects failures, proposes a change, and runs evaluations. Review the evidence before you approve an update.

Illustrative exampleAwaiting approval
RuntimeGuardrails check tool calls and results during execution.Agent trafficRevise proposalNoYesReturns to production runsCheckspass?Production runsLive agent runsDetectFailed checkAutomaticImproveProposedskill changeAutomaticEvaluateCurrent andcandidate resultsAutomaticFailed checksReturns to ImproveTeam reviewAwaiting approvalYour teamApprovedNot released yetReleased versionUsed by production runs
  1. Production runsLive agent runs
  2. DetectFailed checkAutomatic
  3. ImproveProposed skill changeAutomatic
  4. EvaluateCurrent and candidate resultsAutomatic
  5. Checks pass?Yes: continues to team review.No: failed checks, revise proposal returns to Improve.
  6. Team reviewAwaiting approvalYour team
  7. ApprovedNot released yet
  8. Released versionUsed by production runs
  9. Released version returns to production runs.
  10. RuntimeGuardrails check tool calls and results during execution.

Evaluation passed. The change waits for team review. Nothing is approved or released.

  • Failed check A production run failed a check
  • Awaiting approval Nothing is approved or released
  • Approved Your team approved. Not released
  • Released Production runs use the version

Both simulate buttons are example actions. A passing evaluation does not approve or release a change.

CtrlB detects failures, proposes a change and evaluates it. The team reviews the results before approval and release.

Keep the evidence with the proposed change.

Review the source runs, test cases, evaluation results, and release status in one place.

Change recordIllustrative example
  1. Source runThe run where the send call timed outFailed check
  2. Proposed changeCheck delivery status before you retryProposed
  3. Test setOne saved test from the failed run
  4. Evaluation resultsCurrent: duplicate email. Candidate: one emailDuplicate emailOne email
  5. Review statusAwaiting team review
  6. Release statusNot released
Identifiers and versions Sample data
Finding ID
finding_example_01
Run ID
run_example_01
Test set version
v1
Internal experiment

Results from one skill-refinement experiment.

Internal experiment
Session transcripts from 60 agents

Original skill

2 of 15 tasks correct

13% task success

Task set A, 15 tasks

Refined skill

10 of 13 unseen tasks correct

77% task success

Task set B, 13 unseen tasks
CtrlB refined the skill using session transcripts from 60 agents. The original and refined skills were tested on different task sets. These results are not a like-for-like comparison.

Release each change through the right workflow.

Review prompt, skill and code changes in your repository. Activate Guard rules in CtrlB after you review their test results.

Two paths to productionIllustrative example
Production findingEvidence and runsChangetypeGuard ruleTyped proposalPolicy replay and reviewOn saved test casesActivate Guard ruleVersioned. State: rule activePrompt, skill orcode changeTyped proposalCoding agent opensa pull requestWith tests, via CtrlB MCPReview, merge, deployState: PR open, then deployedLater decisionsOutcomes on the finding's trendGuardYour repoReturn to the next finding
  1. Production findingEvidence and runs
  2. Change type Guard
    1. Guard rule
    2. Policy replay and review
    3. Activate Guard rule
    Your repo
    1. Prompt, skill or code change
    2. Coding agent opens a pull request
    3. Review, merge, deploy
  3. Later decisionsOutcomes on the finding's trend start the next investigation
Change typeWhere it livesHow it is testedTakes effect when
Prompt changeYour repository, through a pull requestRun the current and candidate versions on the same inputsThe changed version is deployed
Skill changeYour repository, reviewed like a promptRun the current and candidate versions on the same inputsReleased through your normal deployment
Tool or code changeYour repository, through a pull requestRun the changed code in a controlled environment with side effects simulatedThe changed tool is deployed
Guard ruleCtrlBReplay captured calls through the proposed ruleYou activate the rule after you review the results
  • Proposal Not applied
  • Pull request open Not released
  • Rule active Matching calls are checked
  • Deployed The changed version is running
Illustrative code: retry-safe refunds

Two legitimate refunds can share an order and an amount. Use a stable ID for the refund operation as the idempotency key. This sample shows the idea. It is not a production implementation guide.

idempotency_key = refund_op_id
on timeout: get_payment_status(refund_op_id) before retry
FAQ

Common questions

Which changes does CtrlB apply directly?

Guard rules: choose a scope and select Apply Guard rule. Prompt, skill and code changes go to your repository for your team to review and deploy.

How do prompt and code changes reach my repository?

Through MCP. Your coding agent uses CtrlB's MCP tools to fetch the proposal, its finding and the frozen evidence, then opens a pull request in your repository.

Do my agents need to load prompts from a CtrlB prompt store?

No. Prompts and skills stay in your repository and ship through your deployment. CtrlB proposes the change.

What does self-improving mean here?

CtrlB uses failed runs to propose prompt or skill changes and test them. Your team decides which updates to release.

Does this retrain the model?

No. This workflow changes prompts or skills. It does not require model retraining.

How are proposed changes tested?

Against your evaluation criteria, on the same cases as the current version. The Evaluations page shows how versions are compared.

Live beta

Review a proposed improvement to your agent.

Bring a failed run and the criteria your agent needs to meet.

Live beta. From $499/month, plus usage.