Skip to content

gogijan/CodexHelper

Repository files navigation

CodexHelper

English | Русский

English

CodexHelper is a Windows desktop companion app for browsing, previewing, and managing local OpenAI Codex sessions.

It was created to work around a practical limitation in the Codex desktop app: the desktop client shows only the 50 most recent threads, and that limit is hardcoded in the client. Older threads still exist and can be accessed from the CLI, but they disappear from the desktop GUI. CodexHelper makes those older sessions visible again and can elevate selected threads by archiving and unarchiving them, which bumps them back into the Codex GUI.

It connects to the local codex app-server, reads Codex rollout files, and presents sessions in a project-oriented WPF interface so you can quickly find conversations, inspect details, and move sessions between active and archived states.

CodexHelper English interface

Download

Download the latest Windows build from GitHub Releases.

The release page contains the ready-to-run CodexHelper-vX.Y.Z-win-x64.zip archive and a .sha256 checksum. Releases are immutable and built by GitHub Actions from version tags.

The app is distributed as a small framework-dependent build: the application itself is a single small CodexHelper.exe file, and Windows needs the .NET 10 Desktop Runtime x64 installed to run it.

Features

  • Browse active and archived Codex sessions grouped by project.
  • Search sessions by name, ID, project path, or project name.
  • Preview conversation messages, model information, timestamps, and session state.
  • Inspect captured OpenAI/developer instructions, user instructions, and sanitized session parameters.
  • Archive selected sessions.
  • Elevate selected sessions by archiving and restoring them so they reappear in Codex.
  • Automatically refresh when Codex session files change.
  • Fall back to read-only rollout-file browsing when codex app-server is unavailable.
  • Switch the UI language between English and Russian.

Requirements

  • Windows.
  • .NET 10 Desktop Runtime x64 for the small release build.
  • OpenAI Codex CLI installed and available on PATH as codex.
  • Existing Codex session data under %USERPROFILE%\.codex.

The app targets net10.0-windows and uses WPF, so it is Windows-only. Archive and elevate actions require a Codex CLI version with codex app-server support. Without it, CodexHelper can still browse local rollout files in read-only mode.

Installing Codex CLI

CodexHelper launches the Codex CLI from Windows, so install it in your Windows environment and make sure codex is available from a new terminal.

Install Node.js LTS from nodejs.org if npm is not installed yet, then install Codex CLI:

npm install -g @openai/codex

Open a new PowerShell window and verify the command is available:

codex --version
codex app-server --help

If codex is not found, check that npm's global package directory is on your Windows PATH, then reopen the terminal. To authenticate Codex, run codex once and sign in with ChatGPT, or configure an OpenAI API key as described in the official Codex documentation.

Build from Source

For development, use Visual Studio 2026 or the .NET 10 SDK with Windows Desktop support.

git clone https://github.com/gogijan/CodexHelper.git
cd CodexHelper
dotnet build .\CodexHelper.slnx -c Release

Run locally:

dotnet run --project .\CodexHelper\CodexHelper.csproj

Or open CodexHelper.slnx in Visual Studio 2026 and start the CodexHelper project.

How It Works

CodexHelper starts codex app-server --listen stdio:// as a child process and uses it to list, read, archive, and unarchive Codex threads.

For richer session details, it also reads local rollout files from:

  • %USERPROFILE%\.codex\sessions
  • %USERPROFILE%\.codex\archived_sessions

When possible, the app combines app-server thread data with rollout metadata such as model settings, reasoning effort, context window information, and token-count events. Instruction fields are shown separately, and instruction-like fields are removed from the parameter JSON preview.

Local Data

CodexHelper stores only its own UI preferences, such as language and window layout, in:

%LOCALAPPDATA%\CodexHelper\settings.json

Codex session content remains in the existing Codex storage locations. The app does not create its own copy of conversations. CodexHelper itself only reads local Codex data and talks to the local Codex CLI app-server process.

Project Structure

CodexHelper/
  Assets/          Application icon resources
  Infrastructure/  MVVM helpers, commands, and converters
  Models/          Session, settings, and message models
  Rendering/       FlowDocument rendering for conversation previews
  Services/        Codex app-server client, rollout reader, localization, settings
  ViewModels/      Main window and tree view models

Development Notes

  • The solution file is CodexHelper.slnx.
  • The main project is CodexHelper/CodexHelper.csproj.
  • The publish profile is in CodexHelper/Properties/PublishProfiles.
  • CI is defined in .github/workflows/ci.yml and validates restore, build, unit tests, and the small single-file publish profile.
  • Backend unit tests live in CodexHelper.Tests and can be run with dotnet test .\CodexHelper.Tests\CodexHelper.Tests.csproj -c Release.

License

CodexHelper is licensed under the MIT License. See LICENSE for details.

Русский

CodexHelper - это настольное приложение для Windows, которое помогает просматривать, искать и управлять локальными сессиями OpenAI Codex.

Оно было создано как практический обход ограничения в десктопном Codex: клиент показывает только 50 последних тредов, и это число захардкожено в самом клиенте. Старые треды при этом никуда не пропадают и остаются доступны через CLI, но в десктопном GUI их уже не видно. CodexHelper снова делает такие сессии видимыми и умеет поднимать выбранные треды через архивацию и деархивацию, после чего они возвращаются в GUI Codex.

Приложение подключается к локальному codex app-server, читает rollout-файлы Codex и показывает сессии в WPF-интерфейсе, сгруппированном по проектам. Это удобно, когда нужно быстро найти диалог, посмотреть детали сессии или перенести сессии между активным списком и архивом.

Интерфейс CodexHelper на русском

Скачать

Последняя сборка для Windows лежит в GitHub Releases.

На странице релизов есть готовый архив CodexHelper-vX.Y.Z-win-x64.zip и .sha256 checksum. Релизы неизменяемые и собираются GitHub Actions из версионных тегов.

Приложение распространяется как маленькая framework-dependent сборка: само приложение - это один небольшой файл CodexHelper.exe, а для запуска в Windows нужен установленный .NET 10 Desktop Runtime x64.

Возможности

  • Просмотр активных и архивных сессий Codex с группировкой по проектам.
  • Поиск сессий по названию, ID, пути проекта или имени проекта.
  • Предпросмотр сообщений диалога, информации о модели, временных меток и состояния сессии.
  • Просмотр найденных OpenAI/developer instructions, пользовательских инструкций и очищенных параметров сессии.
  • Архивация выбранных сессий.
  • Поднятие выбранных сессий через архивирование и восстановление, чтобы они снова появились в Codex.
  • Автоматическое обновление при изменении файлов сессий Codex.
  • Резервный режим чтения rollout-файлов, если codex app-server недоступен.
  • Переключение языка интерфейса между английским и русским.

Требования

  • Windows.
  • .NET 10 Desktop Runtime x64 для маленькой release-сборки.
  • OpenAI Codex CLI, установленный и доступный в PATH как codex.
  • Существующие данные сессий Codex в %USERPROFILE%\.codex.

Приложение нацелено на net10.0-windows и использует WPF, поэтому работает только на Windows. Архивация и поднятие требуют версию Codex CLI с поддержкой codex app-server. Без нее CodexHelper все равно может просматривать локальные rollout-файлы в режиме только чтения.

Установка Codex CLI

CodexHelper запускает Codex CLI из Windows, поэтому установи его именно в Windows-окружении и проверь, что codex доступен из нового терминала.

Если npm еще не установлен, установи Node.js LTS с nodejs.org, затем установи Codex CLI:

npm install -g @openai/codex

Открой новое окно PowerShell и проверь, что команда доступна:

codex --version
codex app-server --help

Если codex не найден, проверь, что глобальная папка npm добавлена в Windows PATH, затем снова открой терминал. Для авторизации Codex один раз запусти codex и войди через ChatGPT или настрой OpenAI API key по официальной документации Codex.

Сборка из исходников

Для разработки используй Visual Studio 2026 или .NET 10 SDK с поддержкой Windows Desktop.

git clone https://github.com/gogijan/CodexHelper.git
cd CodexHelper
dotnet build .\CodexHelper.slnx -c Release

Запуск локально:

dotnet run --project .\CodexHelper\CodexHelper.csproj

Или открой CodexHelper.slnx в Visual Studio 2026 и запусти проект CodexHelper.

Как это работает

CodexHelper запускает codex app-server --listen stdio:// как дочерний процесс и использует его для получения списка thread-ов Codex, чтения данных, архивации и восстановления сессий.

Для более подробной информации о сессии приложение также читает локальные rollout-файлы из:

  • %USERPROFILE%\.codex\sessions
  • %USERPROFILE%\.codex\archived_sessions

Когда это возможно, приложение объединяет данные из app-server с метаданными rollout-файлов: настройками модели, reasoning effort, размером контекстного окна и событиями token count. Инструкции показываются отдельно, а поля, похожие на инструкции, удаляются из JSON-предпросмотра параметров.

Локальные данные

CodexHelper хранит только собственные настройки интерфейса, например язык и размеры окна, здесь:

%LOCALAPPDATA%\CodexHelper\settings.json

Содержимое сессий Codex остается в стандартных папках Codex. Приложение не создает отдельную копию диалогов. Сам CodexHelper только читает локальные данные Codex и общается с локальным процессом Codex CLI app-server.

Структура проекта

CodexHelper/
  Assets/          Ресурсы иконки приложения
  Infrastructure/  MVVM-хелперы, команды и конвертеры
  Models/          Модели сессий, настроек и сообщений
  Rendering/       Рендеринг предпросмотра диалога через FlowDocument
  Services/        Клиент Codex app-server, чтение rollout-файлов, локализация, настройки
  ViewModels/      ViewModel главного окна и дерева проектов

Заметки для разработки

  • Файл решения: CodexHelper.slnx.
  • Основной проект: CodexHelper/CodexHelper.csproj.
  • Publish profile находится в CodexHelper/Properties/PublishProfiles.
  • CI описан в .github/workflows/ci.yml и проверяет restore, build, unit tests и маленький single-file publish profile.
  • Backend unit tests находятся в CodexHelper.Tests и запускаются командой dotnet test .\CodexHelper.Tests\CodexHelper.Tests.csproj -c Release.

Лицензия

CodexHelper распространяется по лицензии MIT. Подробности смотри в файле LICENSE.

About

Windows desktop companion for browsing and managing local OpenAI Codex sessions.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages