aradotso avatar

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-code

Installs 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

  1. Session Cleaning — Scans session files for refusal responses and replaces them with cooperative content so you can resume the session.
  2. CTF Prompt Injection — Injects security-testing context into tool configs/profiles to reduce refusal probability at the source.
  3. Web UI — Unified dashboard for multi-platform session management, diff preview, and real-time logs.

Platform Support

PlatformSession FormatSession CleaningCTF Injection
Codex CLIJSONL✅✅ Profile + Global
Claude CodeJSONL✅✅ Workspace
OpenCodeSQLite✅✅ 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

Recommended

1juliusbrussee avatarcavemanjuliusbrussee/cavemanUltra-compressed communication mode. Cuts output tokens 65% (measured) by speaking like caveman while keeping full technical accuracy. Supports intensity levels618.3Kskills.sh installs
2mattpocock avatargrill-memattpocock/skillsA relentless interview to sharpen a plan or design.1.5Mskills.sh installs
3shadcn avatarimproveshadcn/improveSurvey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. Strictly read-only on s40Kskills.sh installs
4obra avatarsystematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes326.7Kskills.sh installs
5forrestchang avatarkarpathy-guidelinesforrestchang/andrej-karpathy-skillsBehavioral guidelines to reduce common LLM coding mistakes through explicit assumptions, simplicity, and verifiable success criteria.17.9Kskills.sh installs
6vercel-labs avatarfind-skillsvercel-labs/skillsHelps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express int4.3Mskills.sh installs