Codex List Sessions
Codex skill for listing recent local Codex sessions.
skill-codex-list-sessions
Codex skill for listing recent local Codex sessions with full session_id values, compact per-session summaries, and optional exact lookup of trailing user messages.
What It Does
- reads local Codex thread metadata from
~/.codex/state_5.sqlite - reads full user prompt history from
~/.codex/history.jsonl - returns recent top-level
clisessions by default - supports exact
session_idlookup - supports keyword search such as
glab,youtrack, orworktree - can include internal
execandsubagentsessions when explicitly requested - defaults to a compact recent window of the latest
2user messages per session - instructs the agent to format list results as 3-line session blocks instead of wide tables
Main Files
SKILL.md: runtime instructions for Codexagents/openai.yaml: UI-facing metadatalocales/metadata.json: localized user-facing metadata.skill_triggers/<locale>.md: localized trigger catalogs used to renderSKILL.mdscripts/setup_main.py,scripts/setup_support.py: managed global install flowscripts/codex_sessions.py: deterministic JSON-producing helperscripts/codex-sessions: thin shell wrapper
Install
Install or update the managed copy with:
make install LOCALE=ru-en
This creates a managed runtime copy under ${XDG_DATA_HOME:-~/.local/share}/agents/skills/skill-codex-list-sessions, renders localized metadata plus trigger previews from .skill_triggers, and refreshes the symlinks in ~/.claude/skills/skill-codex-list-sessions and ~/.codex/skills/skill-codex-list-sessions.
Local Usage
./scripts/codex-sessions
./scripts/codex-sessions --limit 10
./scripts/codex-sessions --query glab --limit 5
./scripts/codex-sessions --session-id 019d4543-0d6c-7c50-9c21-b2fe17105c33
./scripts/codex-sessions --include-internal --limit 10
About Relux Works
This project is part of the open-source ecosystem of Relux Works, an AI-native software development studio. We build fixed-price MVPs, rescue vibe-coded apps, run local AI inference, and train teams to work with coding agents. Much of the infrastructure behind that work is open source.
- Full catalog: relux.works/en/open-source
- Agentic enablement: agent harnesses & team training
- Hire us the agent-native way: point your assistant at
https://api.relux.works/mcp - Contact: ivan@relux.works
License
MIT. See LICENSE.
MIT License
Copyright (c) 2026 Ivan Oparin
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.