Buckets:
Agent Flow
Kernel Design Agents is a repeatable loop for agent-driven implementation work. The loop is useful when a task needs both exploration and evidence-based promotion decisions.
Principle
Keep the reusable workflow separate from the task workspace. This repository explains the flow. The task workspace owns code, tests, datasets, benchmark scripts, private rules, and generated artifacts.
MLSys-style benchmark work is one possible application of this loop. The same flow can also be used for compiler passes, runtime kernels, infrastructure changes, or other performance-sensitive tasks.
Minimal Loop
- Define the task contract.
- Let the agent inspect the local workspace.
- Make the agent write
docs/draft.md. - Convert the draft into an executable plan.
- Implement the first candidate.
- Validate correctness.
- Measure the target metric when applicable.
- Record evidence and decide whether to keep, revise, or reject the candidate.
- Repeat until the promotion criteria are met or the remaining blockers are explicit.
Task Contract
Each task should state:
- Objective.
- Inputs and outputs.
- Correctness requirements.
- Constraints on implementation language, dependencies, APIs, or deployment.
- Validation command.
- Evaluation command, if different from validation.
- Promotion criteria.
Evidence Records
Use simple files in the task workspace:
docs/draft.mdfor the first plan draft.docs/plan.mdfor the executable plan.benchmark.csvor another tabular log for measurable results.candidates.jsonlfor candidate names, parent links, and status.profile/for profiler output or report summaries.runs/oroutputs/for generated artifacts.
The exact format is less important than consistency. A future reader should be able to reconstruct what changed, what was measured, and why a candidate was promoted.
Promotion Rule
Promote a candidate only when it satisfies the task contract and has evidence that it improves or preserves the target metric. If a candidate is rejected, record the reason instead of silently discarding it.
Xet Storage Details
- Size:
- 2.12 kB
- Xet hash:
- 07fbd89e779757e247bd2eb53f7b3677616081241822015633d6b6b070879a10
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.