codex

codex is a skill for Claude Code, Codex from graniet/kheish. It costs 0 tokens per session (1,190 once invoked), scanned A, a copy of codex, Apache-2.0.

A skill that delegates coding work to the OpenAI Codex command-line agent, a tool that performs software tasks from a terminal.

In plain words
What is it for?
Use it for feature work, refactoring, pull-request reviews, and fixing multiple issues in a Git repository.
Why use it?
It provides a defined way to hand off coding, refactoring, review, or batch-fix work when the required command-line setup is available.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: runs codex exec; mentions Codex.

Good fit Use it for feature work, refactoring, pull-request reviews, and fixing multiple issues in a Git repository.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/graniet/kheish/codex
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add graniet/kheish --skill codex
Clone the repo
git clone --depth 1 https://github.com/graniet/kheish

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/graniet/kheish/codex/github.svg)](https://agentmods.dev/skills/graniet/kheish/codex)
Your own site
<a href="https://agentmods.dev/skills/graniet/kheish/codex"><img src="https://agentmods.dev/badge/skills/graniet/kheish/codex/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/graniet/kheish/codex"><img src="https://agentmods.dev/badge/skills/graniet/kheish/codex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,190 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.
Origin 86% copy Near-identical to another mod 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.00000 $0.01190
Opus 5.5 $0.00000 $0.00476
Sonnet 5.5 $0.00000 $0.00238
Haiku 4.5 $0.00000 $0.00119

Measured 1mo ago against content hash 5ac3fc7708b3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

codex 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 1mo 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.

Origin

This is a copy

86% identical to codex — 65 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/autonomous-ai-agents/codex/SKILL.md · 130 lines

How it starts

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


description: Delegate coding tasks to OpenAI Codex CLI agent. Use for building features, refactoring, PR reviews, and batch issue fixing. Requires the codex CLI and a git repository. version: 1.0.0 license: MIT metadata: catalog: tags: - Coding-Agent - Codex - OpenAI - Code-Review - Refactoring related_skills: - claude-code ---

Kheish Compatibility

This skill is repo-local and stays inactive until explicitly activated.

When the original instructions refer to legacy tool names, use these Kheish mappings:

  • terminal => bash
  • web_extract => web_fetch, plus web_search when discovery is needed
  • search_files => grep_search and glob_search
  • browser_* tools require a browser-capable surfaced tool or MCP; if none is available, use the closest available surface and say so explicitly

When the instructions mention local helper files, resolve them from ${KHEISH_SKILL_DIR}.

Codex CLI

Delegate coding tasks to Codex via the Kheish terminal. Codex is OpenAI's autonomous coding agent CLI.

Prerequisites

  • Codex installed: npm install -g @openai/codex
  • OpenAI API key configured
  • Must run inside a git repository — Codex refuses to run outside one
  • Use pty=true in terminal calls — Codex is an interactive terminal app

One-Shot Tasks

terminal(command="codex exec 'Add dark mode toggle to settings'", workdir="~/project", pty=true)

For scratch work (Codex needs a git repo):

terminal(command="cd $(mktemp -d) && git init && codex exec 'Build a snake game in Python'", pty=true)

Background Mode (Long Tasks)

# Start in background
bash(command="codex exec --full-auto 'Refactor the auth module'", workdir="~/project", background=true)
# Returns one task id

# Monitor progress
task_list()
task_output(task_id="<id>")

# Kill if needed
task_stop(task_id="<id>")

Key Flags

Flag Effect
exec "prompt" One-shot execution, exits when done
--full-auto Sandboxed but auto-approves file changes in workspace
--yolo No sandbox, no approvals (fastest, most dangerous)

Read the full file on GitHub · 130 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. 1mo ago First seen · 130 lines · 0 tokens per session scan A 5ac3fc7708b3

Subscribe to this mod's changes

codex is a skill published in the GitHub repository graniet/kheish (221 stars, last pushed 2mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,190 tokens. A static security scan graded it A with 0 findings. It is 86% identical to codex, differing in 65 lines, and is treated as a copy.

Related

Other skills, from other repositories

hive.slack-notifications-setup

Set up a Slack notification channel (Sentinel) for a colony by driving the browser — reuse or create the "Hive Sentinel" Slack app from a JSON manifest, install it, capture the bot + app tokens, create/select the channel via the Slack API, and turn Sentinel on so the colony can ping the user on Slack and accept…

aden-hive/hive · 136 tokens

hive.pdf

Read, write, merge, split, rotate, watermark, encrypt, and OCR PDF files using Python (pypdf, pdfplumber, reportlab, pypdfium2) and command-line tools (poppler-utils, qpdf). Use when the user asks to extract text/tables/images from a PDF, create or modify a PDF, combine or split PDFs, OCR a scanned PDF…

aden-hive/hive · 98 tokens

baby-sit

Monitor a GitHub pull request until CI is green, diagnose failures, and rerun only evidence-backed flaky GitHub Actions jobs.

langchain-ai/open-swe · 30 tokens

hive.note-taking

Maintain a free-form scratchpad of decisions, extracted values, and open questions so context pruning doesn't lose anything you still need.

aden-hive/hive · 30 tokens

cascadeflow

Use when building, extending, or debugging AI agents with cascadeflow (agent runtime intelligence layer) — installing cascadeflow (Python) or @cascadeflow/core/@cascadeflow/langchain (TypeScript); using CascadeAgent, ModelConfig, harness APIs (cascadeflow.init, cascadeflow.run, @agent from cascadeflow.harness…

lemony-ai/cascadeflow · 231 tokens

ha-skill-creator

Create, edit, improve, or audit Hope Agent skills. Use when the user wants to: (1) create a new skill from scratch, (2) edit or improve an existing skill, (3) review or clean up a SKILL.md file, (4) run evaluations to test skill effectiveness, (5) optimize skill descriptions for better trigger accuracy. Trigger…

shiwenwen/hope-agent · 106 tokens