
Codex Session Patcher
When Claude or other AI coding assistants refuse to help with security research, this tool strips the refusal from your session file and lets you resume. It handles Codex CLI, Claude Code, and OpenCode sessions, detecting "I cannot assist" style responses and either replacing them with cooperative text or using an LLM to rewrite them contextually. The CTF injection mode is clever: it installs security research context into profiles or workspace configs so refusals are less likely upfront. Comes with both CLI and web UI. This is clearly built by someone who hit refusals during legitimate pentesting and got tired of restarting conversations. The backup system and dry run previews show good engineering sense. Works best when you're doing authorized security work and the model is being overly cautious.
- skills.sh installs
- 750
- GitHub stars
- 61
- last updated
- Jul 14, 2026
Install
$ npx -y skills add aradotso/trending-skills --skill codex-session-patcher --agent claude-codeInstalls into .claude/skills of the current project.
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 .
Sponsors
Details
- Repository
- github.com/aradotso/trending-skills
- First seen
- May 16, 2026
More from aradotso/trending-skills
All 251- 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