
Codex Session Patcher
Clean AI refusals from Codex, Claude Code, and OpenCode sessions, and inject CTF prompts to reduce them.
- skills.sh installs
- 750
- GitHub stars
- 98
- last updated
- Jul 14, 2026
What it does
- Covers session cleaning for Codex CLI JSONL, Claude Code JSONL, and OpenCode SQLite session files, with a diff preview before changes
- Includes a
codex-patcherCLI with--dry-run,--latest, and--allflags, plus a Python API and an optional web dashboard - Detects refusals with two tiers: strong phrases matched anywhere in the text and weak phrases matched only at response start
- Designed for security researchers running CTF and pentest work who want to resume sessions after a refusal without touching normal profiles
Install
$ npx -y skills add reason-machines/trending-skills --skill codex-session-patcher -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Codex Session Patcher
Skill by ara.so — Daily 2026 Skills collection.
A lightweight Python tool to detect and clean AI refusal responses from Codex CLI, Claude Code, and OpenCode session files, plus CTF/pentest prompt injection to reduce future refusals.
What It Does
- Session Cleaning — Scans session files for refusal responses and replaces them with cooperative content so you can
resumethe session. - CTF Prompt Injection — Injects security-testing context into tool configs/profiles to reduce refusal probability at the source.
- Web UI — Unified dashboard for multi-platform session management, diff preview, and real-time logs.
Platform Support
| Platform | Session Format | Session Cleaning | CTF Injection |
|---|---|---|---|
| Codex CLI | JSONL | ✅ | ✅ Profile + Global |
| Claude Code | JSONL | ✅ | ✅ Workspace |
| OpenCode | SQLite | ✅ | ✅ Workspace |
Installation
git clone https://github.com/ryfineZ/codex-session-patcher.git
cd codex-session-patcher
# CLI only (zero extra dependencies)
pip install -e .
Details
- Repository
- github.com/reason-machines/trending-skills
- Categories
- Security, AI Agents & LLM Apps, Agent Workflow & Planning
- First seen
- May 16, 2026
More from reason-machines/trending-skills
All 163- Learn Docker K8s Game746
- Claude Better Cli744
- Ministack Aws Emulator743
- Wildworld Dataset739
- Phantom Ai Coworker729
- Kordoc Korean Document Parser727
- Claw Code Harness721
- Clawd Code Python Port714
- See Through Anime Layer Decomposition706
- Open Agent Sdk701
- Openclaude Multi Llm673
- Emdash Cms672
- Cc Gateway Ai Proxy668
- Open Multi Agent Orchestration665
- Pretext Text Measurement649
- Claude Code Source Recovery648
- Sheets Terminal Spreadsheet646
- Omnivoice Tts627
- Metatron Pentest Assistant602
- Tong Jincheng Relationship Skill595
- Awesome Design Md Jp594
- Parlor On Device Ai588
- Paper2code Arxiv Implementation585
- Free Code Claude Cli584
Similar to Codex Session Patcher
More Security
caveman-token-optimizerSkillreason-machines/trending-skills768 installsTerse, token-cutting response style that keeps code and technical terms exact for Claude Code and Codex.
Codex Mcp ToolMCP serverx51xxx24 starsBridges AI assistants to Codex CLI for file analysis, code review, and sandboxed edits.
CodemanMCP serverark0n846 starsMission control for AI coding agents: spawn, prompt, and monitor sessions across many CLIs.
codex-plugin-ccSkillreason-machines/trending-skills787 installsPlugin that runs OpenAI Codex reviews and delegated background tasks from inside Claude Code.
codexSkillskills-directory/skill-codex507 installsStructured wrapper for running OpenAI Codex CLI sessions with model, effort, and sandbox selection built in.