untether: Skill for Claude Code

.claude/skills/codex-opencode-pi/SKILL.md

codex-opencode-pi is a skill for Claude Code from littlebearapps/untether. It costs 53 tokens per session (2,908 once invoked), scanned A, original, MIT.

A reference for connecting Codex CLI, OpenCode CLI, and Pi CLI to Untether, including how they report events and continue sessions.

In plain words
What is it for?
Use it when implementing or troubleshooting runners that start these agents, read their JSONL output, translate events, or resume previous sessions.
Why use it?
It explains the differences between these command-line agents so their output and resumable sessions can be handled consistently.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: runs codex exec; mentions Codex; mentions OpenCode.

This is littlebearapps/untether's own configuration. It tells Claude Code how to work on untether itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything untether configures →

Reuse

Borrowing it

Nothing to install: this file belongs to littlebearapps/untether. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/littlebearapps/untether/master/.claude/skills/codex-opencode-pi/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/littlebearapps/untether

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for codex-opencode-pi

README.md
[![agentmods](https://agentmods.dev/badge/skills/littlebearapps/untether/codex-opencode-pi/github.svg)](https://agentmods.dev/skills/littlebearapps/untether/codex-opencode-pi)
Your own site
<a href="https://agentmods.dev/skills/littlebearapps/untether/codex-opencode-pi"><img src="https://agentmods.dev/badge/skills/littlebearapps/untether/codex-opencode-pi/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for codex-opencode-pi

Your own site · 80×15
<a href="https://agentmods.dev/skills/littlebearapps/untether/codex-opencode-pi"><img src="https://agentmods.dev/badge/skills/littlebearapps/untether/codex-opencode-pi.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,908 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Excessive Agency · line 48
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00053 $0.02908
Opus 5.5 $0.00021 $0.01163
Sonnet 5.5 $0.00011 $0.00582
Haiku 4.5 $0.00005 $0.00291

Measured 18d ago against content hash 59ed89bba25a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

codex-opencode-pi scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 18d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/codex-opencode-pi/SKILL.md · 255 lines

How it starts

The opening of the file, as written. The whole thing — 255 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Codex, OpenCode, and Pi Runner Protocols

These three engines are non-interactive only — no control channel, no permission prompts. They extend JsonlSubprocessRunner and use its run_impl (ClaudeRunner replaces it; OpenCodeRunner only wraps it with a pre-spawn version check, #970).

A failed resumed run keeps the chat's saved session unless the error names the resume itself (_RESUME_FAILURE_RE in runner_bridge.py: Codex no rollout found, OpenCode Session not found, Pi No session found, …) — none of the three reports num_turns, so the Claude-style 0-turn rule can't apply (#952). A new "session not found" wording must be added there.

Quick comparison

Aspect Codex OpenCode Pi
CLI codex exec --json opencode run --format json pi --print --mode json
Event model Turn-based (items in turns) Step-based (tools in steps) Agent-based (messages + tools)
Resume line `codex resume <thread_id>` `opencode --session ses_XXX` `pi --session <token>`
Resume token thread_id (UUID) ses_XXXX (26+ chars) UUID short (8 chars) or path
Final answer agent_message item Accumulated text events message_end assistant content
Error signal turn.failed error event / missing step_finish stopReason in message_end

Codex

Key files

File Purpose
src/untether/runners/codex.py CodexRunner implementation
src/untether/schemas/codex.py msgspec structs for Codex events
docs/reference/runners/codex/exec-json-cheatsheet.md JSONL event shapes
docs/reference/runners/codex/untether-events.md Event mapping spec

CLI invocation

codex [extra_args…] [--profile P] [--model MODEL] [-c model_reasoning_effort=LEVEL] \
  exec --json --skip-git-repo-check --color=never \
  [--sandbox read-only] [resume <thread_id> | resume --last] -
  • Prompt on stdin (trailing - means read stdin)
  • Resume: resume <thread_id> - (resume --last - for /continue)
  • Safe mode is genuinely read-only: --sandbox read-only (exec-level, so it outranks a root-level sandbox flag), only in safe permission mode and before resume (codex exec resume has no --sandbox); no --ask-for-approval — codex exec forces approval never itself (#830)
  • extra_args sit at the root (before exec) and are checked by runners/extra_args_guard.py: bypass/sandbox-escape flags (--yolo, --sandbox danger-full-access, -c …danger…, -C/--cd, …) disable the engine at load (#209)
  • --skip-git-repo-check --color=never for clean output

Read the full file on GitHub · 255 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 18d ago Changed · +15 lines 59ed89bba25a
  2. 1mo ago First seen · 240 lines · 53 tokens per session scan A a278a8b17922

Subscribe to this mod's changes

codex-opencode-pi is a skill published in the GitHub repository littlebearapps/untether (74 stars, last pushed today), licensed MIT. It adds 53 tokens to every session and 2,908 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.