---
type: "post"
id: "claude-code-or-codex-serves-as-the-teacher-a67ff2"
slug: "claude-code-or-codex-serves-as-the-teacher-a67ff2"
title: "Claude Code or Codex serves as the teacher, while a local agent harness serves as the student."
description: "Skill-Distill is a repository instruction set for turning a successful coding-agent session into a tested skill that helps another model and harness reproduce the task."
retrieval_nugget: "Skill-Distill is a repository instruction set for turning a successful coding-agent session into a tested skill that helps another model and harness reproduce the task. Its key move is to treat the skill as a hypothesis: run isolated trials against a reference, inspect the work, and revise the instructions until the result meets explicit acceptance criteria."
published_at: "2026-11-24"
updated_at: "2026-11-24"
record_date: "2026-11-24"
date_kind: "published_at"
topics: ["claude","claude-code","codex"]
entities: ["Skill-Distill","Claude Code","Codex","omp","DeepSeek-V4.1-Flash","sybil-solutions"]
related_patterns: ["skills-become-portable-capability-layer"]
novelty_label: "new_fact"
what_changed: "A new Skill-Distill workflow uses Claude Code or Codex as a teacher to train a local agent harness as the student."
prior_refs: []
source_url: "https://github.com/sybil-solutions/skill-distill/blob/main/skills/skill-distill/SKILL.md"
source_urls: ["https://github.com/sybil-solutions/skill-distill/blob/main/skills/skill-distill/SKILL.md"]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:claude-code-or-codex-serves-as-the-teacher-a67ff2"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/claude-code-or-codex-serves-as-the-teacher-a67ff2/","markdown":"https://newruntime.com/posts/claude-code-or-codex-serves-as-the-teacher-a67ff2.md","json":"https://newruntime.com/posts/claude-code-or-codex-serves-as-the-teacher-a67ff2.json"}
markdown_url: "https://newruntime.com/posts/claude-code-or-codex-serves-as-the-teacher-a67ff2.md"
---

# Claude Code or Codex serves as the teacher, while a local agent harness serves as the student.

## Retrieval answer

Skill-Distill is a repository instruction set for turning a successful coding-agent session into a tested skill that helps another model and harness reproduce the task. Its key move is to treat the skill as a hypothesis: run isolated trials against a reference, inspect the work, and revise the instructions until the result meets explicit acceptance criteria.

## Summary
Skill-Distill is a repository instruction set for turning a successful coding-agent session into a tested skill that helps another model and harness reproduce the task. Its key move is to treat the skill as a hypothesis: run isolated trials against a reference, inspect the work, and revise the instructions until the result meets explicit acceptance criteria.

## What happened
The `skill-distill` repository’s `SKILL.md` describes a workflow for transferring a successful session to a named student: an agent harness plus an open-weight model. It gives examples such as using Claude Code, Codex or `omp` for the reference session and `omp` with DeepSeek-V4.1-Flash as the student. The skill is not intended for writing a general-purpose skill from scratch without a reference session, or for fine-tuning a model. The user supplies the target harness and model; the current session provides the reference, its original prompt and the starting state.

The process begins by making the task reproducible. The instructions call for extracting the reference session, preserving the first user prompt verbatim, and identifying the commit and working directory from which the work began. If the reference relied on uncommitted changes, those should be committed on a throwaway branch. If it depended on external machines, services or data, the setup for each trial must be documented. A one-minute test of the student comes before the main evaluation, to catch problems such as an invalid model identifier, missing key or unavailable server.

Next, the operator records four to ten observable acceptance criteria and writes checks for the criteria that can be automated. The checks must pass on the reference result before they are used to judge the student. The skill itself should tell the student what to do in order, name commands and files, describe expected results, and include recovery steps for known traps. It should end with the checks required before declaring completion. The instructions say to keep `SKILL.md` under about 250 lines, move longer reference material into linked files and avoid handing over the finished output.

Trials run in groups of three, each from a fresh copy of the starting state with a frozen skill and the original prompt. The operator inspects traces, logs, screenshots and the actual result, then records a verdict, score, first meaningful divergence and proposed fix. When a check fails, the guide says to test the check on the reference before blaming the student. For visual work, it recommends comparing like-for-like views at higher resolution; for stateful applications, it calls for checking the core loop at start, middle and end. The operator changes the skill in response to observed failures and runs another iteration. The loop ends when all three trials match in one iteration, after eight iterations, or after three iterations with no improvement in the best score.

The final stages are human review and delivery. The guide asks the operator to show a report and best trial to the user, ask whether the result is as good as the reference, record the answer, and revise again if the user rejects it. Before delivery, the skill should be checked for secrets and private data. The instructions also say not to publish the private run directory, which may contain raw session logs and machine paths.

## What the archive adds
New Runtime’s earlier coverage described a Claude Code software-factory implementation with seven role definitions and a coordinating skill ([the earlier note](https://newruntime.com/posts/zazencodes-season-3-src-software-factory-claude-code-a5263f/), 2026-11-18). Skill-Distill is a new event, not an update to that implementation: it focuses on evaluating whether a skill transfers successful work to another model and harness.

## Trend signal
This supports the pattern of skills becoming a portable capability layer: [skills become a portable capability layer](https://newruntime.com/patterns/skills-become-portable-capability-layer/). The guide explicitly frames its output as a skill for a different harness and model, while making portability contingent on repeatable trials and review rather than assuming that a shared file format guarantees equivalent behavior.

## Why it matters
A skill that reads well is not necessarily a skill that transfers. The reference session may depend on hidden context, a particular model’s judgment, or an accidental state in the workspace. Skill-Distill makes those dependencies harder to overlook by preserving the prompt and starting point, defining observable outcomes, and testing the student in clean copies.

For teams, the most useful implication is procedural: do not treat a polished instruction file as proof of a reusable capability. A trial can expose whether a model follows the steps, whether the harness changes the result, and whether the checks measure what users actually care about. Keeping traces and recording the first divergence also gives maintainers a concrete basis for improving the skill instead of adding broad, untested prose. The required human acceptance step recognizes a limit of automated checks: a task can pass its scripted tests and still fall short of the reference in craft or usefulness.

## Limits and uncertainty
The repository provides a method, not evidence that a particular student model has successfully reproduced a particular session. The cited instructions give no aggregate pass rate, benchmark across models, or measured cost and time for completing a distillation run. Results will depend on the task, the harness, the chosen model, the quality of acceptance criteria and the operator’s judgment. Even three matching trials establish repeatability only for that tested setup; the guide does not claim that a skill will transfer unchanged to other prompts, repositories, model versions or environments. The workflow also requires substantial human effort to inspect results and decide whether they match.

## Skill to build now
Choose one recent coding-agent task with a result you can inspect and a clean starting commit. Write four to ten acceptance criteria before drafting transfer instructions; make at least some checks executable, and verify those checks against the reference. Then run three isolated student trials, inspect the artifacts rather than relying on the agent’s final message, and record the first divergence in each. This gives a team a small, concrete test of whether its current skills transfer beyond the session that produced them.

## Reader takeaway
Skill-Distill’s central lesson is that agent skills should be tested as working procedures, not judged by how plausible their prose sounds. Preserve the reference conditions, compare repeatable student trials against observable criteria, and keep a human responsible for deciding whether the result is genuinely good enough.

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Claude](https://newruntime.com/topics/claude.md): Explore the claude topic hub.
- topic hub: [Claude Code](https://newruntime.com/topics/claude-code.md): Explore the claude-code topic hub.
- topic hub: [Codex](https://newruntime.com/topics/codex.md): Explore the codex topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Sources](https://newruntime.com/sources/): See the original sources this archive cites.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
