Repository navigation
✨ feat(skill): run natively on Codex with subagent-safe gates - #1
Merged
Merged
Conversation
- skills/kermit/SKILL.md: harness resolution (HARNESS / KERMIT_DIR / INTERACTIVE), GATE contract, kermit-result closing block - skills/kermit/refs/*: AskUserQuestion → GATE(...) sweep with per-site non-interactive defaults; $KERMIT_DIR paths; sandbox-tolerant push/publish; zero-question bootstrap in init - skills/kermit/refs/protocol-subagent.md: new worker contract for Codex orchestrators - skills/kermit/agents/: openai.yaml skill declaration + kermit-agent.toml subagent role - install.sh, bin/kermit.js: --codex / --all install targets (~/.agents/skills/kermit) - README.md, llms.txt, SECURITY.md: Codex docs; non-interactive auto-gate policy - .github/workflows/ci.yml: existence/sync checks for agents/ files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
kermit v4: the skill now runs natively in OpenAI Codex as well as Claude Code, from a single skill body — no fork. Codex subagents (
codex exec/spawn_agentworkers) can run every mode end-to-end with zero human gates and zero stalls, and report back through a structuredkermit-resultblock.Why this change is being made
kermit's protocols were welded to Claude Code specifics: ~25 literal
AskUserQuestioncalls,.claude/kermit/paths, and hook-fed inputs. A Codex worker errors out the moment anything asks for approval, so kermit could not participate in Codex workflows at all. This PR isolates every harness-specific behaviour behind one resolution step so the same protocols serve both harnesses, interactive or not.Specific changes
skills/kermit/SKILL.mdHARNESS(claude|codex),KERMIT_DIR(env →.claude/kermit/→.codex/kermit/→ create per harness),INTERACTIVE(false undercodex exec, spawned subagents, headlessclaude -p).GATE(question, options, default)contract: interactive Claude → realAskUserQuestiontool call; interactive Codex → plain-chat question; non-interactive → stated default, silently.kermit-resultclosing block (mode / head / changelog_entry / pushed / published / gates) emitted by every mode.skills/kermit/refs/(all protocols)AskUserQuestionsite rewritten asGATE(...)with explicit non-interactive defaults; non-interactive runs force effective-auto gates and recordgates: auto (non-interactive)..claude/kermit/→$KERMIT_DIRthroughout, including gitignore snippets.pushed: failed/published: noare handled, successful terminations with remediation lines.protocol-init.md: zero-question bootstrap for non-interactive runs on uninitialized repos; merge-to-main guard branches per harness (Claude keeps hook wiring; Codex prints an AGENTS.md convention snippet).protocol-subagent.md: the worker contract for orchestrators — preconditions per mode, result shape, handled outcomes.skills/kermit/agents/(new)openai.yaml: optional Codex skill declaration (SKILL.md alone is sufficient; verified against OpenAI docs 2026-08-07).kermit-agent.toml: ready-to-copy Codex subagent role (.codex/agents/kermit.toml).Installers & CI
install.sh/bin/kermit.js:--codexand--allflags; Codex target is~/.agents/skills/kermit; same byte-identical skill body..github/workflows/ci.yml: existence + install-sync checks for the Codex adapter files.Docs
Other additional information
package.jsondescription/keywords still position kermit as Claude-Code-only — left for a follow-up.