---
id: "concept-karpathy-triplet"
type: "concept"
source_timestamps: ["00:20:54", "00:21:14"]
tags: ["frameworks", "deployment-strategy"]
related: ["concept-karpathy-loop", "action-define-karpathy-triplet", "framework-karpathy-loop-execution"]
definition: "The three prerequisites for deploying an auto-optimization loop: one defined editable surface, one programmatic objective metric, and one fixed time budget per experiment."
sources: ["s04-karpathy-agent-700"]
sourceVaultSlug: "s04-karpathy-agent-700"
originDay: 4
---
# The Karpathy Triplet

## Definition
The three prerequisites for deploying an auto-optimization loop: **one defined editable surface, one programmatic objective metric, and one fixed time budget per experiment.**

## The Three Elements
1. **One Editable Surface** — A single, specific file or configuration (e.g., a system prompt, a routing script, a tool registry) that the Meta-Agent is allowed to modify.
2. **One Metric** — A single, programmatic, objectively testable number that accurately reflects business value and serves as the sole optimization target.
3. **One Time Budget** — A fixed, rigid time limit for how long each experimental iteration is allowed to run (e.g., 5 minutes per experiment).

## Why It's the Foundational Prerequisite
Defining this triplet forces **organizational clarity** and **constrains the AI's search space**, preventing the optimization loop from thrashing across too many variables or optimizing for unmeasurable outcomes.

> If a team cannot clearly define these three elements, they are not ready to deploy auto-improving agents.

## Connection to the Loop
The triplet is the input contract for the [[concept-karpathy-loop|Karpathy Loop]] and its [[framework-karpathy-loop-execution|execution cycle]]. Without it, the loop has nothing to converge against.

## Action
[[action-define-karpathy-triplet]] — operationalize the triplet for a specific business process before any agent is deployed.


## Related across days
- [[concept-karpathy-loop]]
- [[claim-constraints-enable-optimization]]
- [[framework-karpathy-loop-execution]]
- [[arc-constraints-as-leverage]]
