# ryfineZ/codex-session-patcher

A lightweight Python tool to clean AI refusal responses from Codex CLI session files

Repository: https://github.com/ryfineZ/codex-session-patcher
Canonical: https://ross.abutalabs.com/products/codex-session-patcher
Language: Python
License Family: other
Last push: 2026-08-02T18:35:59+00:00

## Health v2 (maintenance only)
Score: 79/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 95, release rhythm 96, longevity 11
- inputs: {"age_days": 161, "days_push": 31, "days_rel": 31, "gap_med": 2.5, "n_releases_24m": 13}
- flags: young, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2649, forks 405 (observed 2026-08-28T04:07:06.884595+00:00)

## What it is
A Python tool that cleans AI refusal responses from Codex CLI, Claude Code, and OpenCode session files so conversations can be resumed, with optional LLM-based rewriting of replacements. It also injects CTF/pentest-oriented system prompts into tool configurations to reduce refusals during security testing.

## Use cases
- remove AI refusal replies from Codex CLI session files
- resume a Codex session that got stuck on a refusal
- inject a CTF context prompt into Claude Code or OpenCode
- batch-clean refusal messages across a session history
- erase encrypted reasoning blocks from session logs
- preview diffs before patching AI session files

## When to choose
- you do security testing or CTF work with AI coding assistants and hit frequent refusals
- you need to edit or restore Codex/Claude Code/OpenCode session files with backups
- you want a Web UI with diff views and multi-platform session management

## When to avoid
- you need a general-purpose session viewer rather than refusal cleanup
- you require a formally licensed or audited tool (no license file is published)
- your workflow has no legitimate security-testing context for refusal bypassing

## Facets
- artifact type: cli-tool
- maturity: active
- function: developer-tools, llm-inference, prompt-engineering, chatbot, http-server, cli
- domain: developer-tools, security, penetration-testing, artificial-intelligence
- platform: python, cli, cross-platform
- tags: codex-cli, claude-code, opencode, session-cleanup, refusal-removal, ctf, prompt-injection, web-ui, jsonl, sqlite, command-line, web-server

## Member repositories
- ryfineZ/codex-session-patcher (main) score 79

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:06.884595+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:18:55.287611+00:00, confidence not recorded.
  - readme: https://github.com/ryfineZ/codex-session-patcher (fetched 2026-08-28T04:07:06.884595+00:00, sha 4acefe3e2e52)
- Data as of 2026-08-30T08:39:29.467469+00:00.
