技能标识:codex-session-history
List and inspect local Codex session history by reading `~/.codex/session_index.jsonl`, `~/.codex/sessions/`, and `~/.codex/archived_sessions/`. Default to unarchived sessions in `~/.codex/sessions/`. Use when users ask what Codex sessions exist, want each session's id or title, need to know which project or workspace a session belongs to, or want to filter sessions by project name, session id, active versus archived status, or a local time window such as "today from 11:00 to 12:00".
使用此技能枚举本地 Codex 会话,并将每个会话映射到其 ID、标题、项目和工作区路径。
优先使用捆绑脚本,以便输出保持一致,即使在 session_index.jsonl 不完整的情况下也能正常工作。
列出最近的会话:
bash
python3 scripts/listcodexsessions.py
同时列出活跃和已归档的会话:
bash
python3 scripts/listcodexsessions.py --source all
列出更多行:
bash
python3 scripts/listcodexsessions.py --limit 50
按项目过滤:
bash
python3 scripts/listcodexsessions.py --project PlayGround
按今天的本地时间窗口过滤:
bash
python3 scripts/listcodexsessions.py --from 11:00 --to 12:00
按特定日期的本地时间窗口过滤:
bash
python3 scripts/listcodexsessions.py --date 2026-03-19 --from 11:00 --to 12:00
检查一个会话 ID:
bash
python3 scripts/listcodexsessions.py --session-id 019ce206-aa11-7c81-a65a-fece3708ecf4 --details
仅显示已归档的会话:
bash
python3 scripts/listcodexsessions.py --source archived
返回 JSON:
bash
python3 scripts/listcodexsessions.py --json
默认表格列:
使用 --details 时,还会显示:
使用:
bash
python3 scripts/listcodexsessions.py --help
以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:
帮我安装 SkillHub 和 codex-session-history-1775936662 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 codex-session-history-1775936662 技能
skillhub install codex-session-history-1775936662
文件大小: 6.51 KB | 发布时间: 2026-4-12 09:30