skill-distill
A skill for a frontier 'teacher' agent (Claude Code or Codex) that turns a successful coding session into a task-specific skill for a weaker open-weight 'student' model in a chosen harness. It loops: write the skill, run the student in tmux on fresh copies of the starting state, compare results with the reference, fix the skill, and repeat until the user accepts.
Worth knowing: Turns off the agent's permission prompts. Both Claude reviews found this fine for what it does.
What it can touch
| files | write, including ANTHROPIC_BASE_URL / ANTHROPIC_AUTH_TOKEN, ~/.claude/projects/<slug>/*.jsonl, ~/.codex/sessions/*/*/*/rollout-*.jsonl, ~/.omp/agent/sessions/*/*.jsonl, ~/.omp/agent/skills/<name>/, ~/.pi/agent/skills/<name>/, ~/.claude/skills/<name>/, ~/.agents/skills/<name>/ |
|---|---|
| network | github.com |
| shell | runs commands |
| secrets | none found |
What it actually does
The teacher agent follows SKILL.md and calls scripts/distill.py. The files do the following: - Read a session log, either one the user passes in or the newest one for a directory under ~/.claude/projects, ~/.codex/sessions or ~/.omp/agent/sessions, and summarise it into runs/<task>/reference/. - Clone the user's git repo (or create an empty repo) into per-trial workspaces under runs/<task>/iters/NN/tK/, removing the origin remote. - Run an optional user-supplied --setup shell command in each workspace. - Copy the student skill into .skill/<name>/. - Launch the student harness in tmux windows with all approval prompts turned off (Claude Code --dangerously-skip-permissions, Codex --dangerously-bypass-approvals-and-sandbox, omp --auto-approve, opencode --auto), each under a perl alarm timeout. - Run a teacher-written checks.sh against each result. - Optionally serve web apps on 127.0.0.1 and drive them with headless Chromium through Playwright. - Write a ledger and an HTML report, and copy the accepted skill to runs/<task>/final/. SKILL.md also suggests, if the user wants, installing the produced skill into the student harness's skills folder (~/.omp, ~/.pi, ~/.claude, ~/.agents). The files contain no hidden instructions, no hard-coded external hosts, no credential harvesting and no persistence beyond the user-requested skill install.
What the check found
highTurns off the agent's permission prompts
Switches the agent to run commands or make edits without asking first.
skills/skill-distill/adapters/claude.sh:6 claude -p --dangerously-skip-permissions --output-format stream-json --verbose ${MODEL:+--model "$MODEL"} \
highTurns off the agent's permission prompts
Switches the agent to run commands or make edits without asking first.
skills/skill-distill/adapters/codex.sh:5 codex exec --json --dangerously-bypass-approvals-and-sandbox --skip-git-repo-check --ignore-user-config --ignore-rules \
mediumStudent agents run fully unattended with approvals and sandbox disabled
Every trial launches a weaker open-weight model as an autonomous agent with permission prompts turned off. For Codex, the OS sandbox is turned off too. The agent's working directory is a fresh clone, but nothing confines it to that folder: it can run any command, reach the network, and touch any file the user can. Headless batch trials do need non-interactive operation, so this is expected for the purpose. Users should still run it in a VM or container, or use a sandboxed mode such as Codex --full-auto, especially since the students are less reliable models.
skills/skill-distill/adapters/claude.sh:6 claude -p --dangerously-skip-permissions --output-format stream-json --verbose ${MODEL:+--model "$MODEL"} \
skills/skill-distill/adapters/codex.sh:5 codex exec --json --dangerously-bypass-approvals-and-sandbox --skip-git-repo-check --ignore-user-config --ignore-rules \
skills/skill-distill/adapters/omp.sh:6 --auto-approve --no-context-files --no-rules --no-skills --no-title ${STUDENT_ARGS:-} \
mediumStudent agents run with all approvals and sandboxing disabled, directly on the host
Each trial launches an open-weight model with permission prompts turned off. For Codex, the sandbox is turned off as well. The agent's working directory is a fresh workspace, but nothing confines it to that workspace. A weak or misbehaving model, or a malicious repo/prompt, could run arbitrary commands with the user's privileges. Unattended headless trials genuinely require this, and the bundle shows no malicious intent. Users should still run it in a VM or container.
skills/skill-distill/adapters/claude.sh:6 claude -p --dangerously-skip-permissions --output-format stream-json --verbose ${MODEL:+--model "$MODEL"} \
skills/skill-distill/adapters/codex.sh:5 codex exec --json --dangerously-bypass-approvals-and-sandbox --skip-git-repo-check --ignore-user-config --ignore-rules \
skills/skill-distill/adapters/omp.sh:6 --auto-approve --no-context-files --no-rules --no-skills --no-title ${STUDENT_ARGS:-} \
Keep an eye on it
This check is of one commit. Watch skill-distill and we'll email you if a later commit changes what it can touch.
Made this? Add the badge
[](https://plugsday.com/tools/sybil-solutions-skill-distill)About this check
Checked November 23, 2026 at commit 4c3b307096ae, 14 files. Rules for known red flags, then two Claude reviews, one of them told to assume the author is malicious. A later commit hasn't been checked. How checks work.