No description
  • Python 86.4%
  • Shell 12.9%
  • Dockerfile 0.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-20 23:07:18 +03:00
docs Add dev compose install and global routing 2026-09-20 21:36:30 +03:00
scripts Fix MCP registration bootstrap and JSON output 2026-09-20 23:07:18 +03:00
skill Clarify Postgres and pgvector runtime 2026-09-20 21:38:29 +03:00
src/codex_session_history Fix MCP registration bootstrap and JSON output 2026-09-20 23:07:18 +03:00
tests Initial 0.1.0 indexed session history MCP 2026-09-20 21:24:45 +03:00
.dockerignore Initial 0.1.0 indexed session history MCP 2026-09-20 21:24:45 +03:00
.gitignore Initial 0.1.0 indexed session history MCP 2026-09-20 21:24:45 +03:00
compose.dev.yml Initial 0.1.0 indexed session history MCP 2026-09-20 21:24:45 +03:00
Dockerfile Initial 0.1.0 indexed session history MCP 2026-09-20 21:24:45 +03:00
pyproject.toml Fix MCP registration bootstrap and JSON output 2026-09-20 23:07:18 +03:00
README.md Fix MCP registration bootstrap and JSON output 2026-09-20 23:07:18 +03:00

Codex Session History 0.1.1

Local, incremental search for Codex JSONL sessions. The dev runtime uses PostgreSQL with FTS5-equivalent PostgreSQL full-text indexes and a pgvector-ready derived table; a small stdio MCP boundary stays on local stdin/stdout with no published ports.

Install

./scripts/dev-up.sh
mkdir -p ~/.codex/skills/codex-session-history
cp skill/SKILL.md ~/.codex/skills/codex-session-history/SKILL.md

One-line install (Forgejo):

curl -fsSL https://git.ligand.su/akadmin/codex-session-history/raw/branch/main/scripts/install.sh | sh

The dev index is private in the Compose Postgres volume. JSONL is mounted read-only at /codex; later refreshes only reparse changed files. No service port is exposed. Codex connects with docker compose -f compose.dev.yml exec -T mcp python -m codex_session_history.server.

The installer also copies the detailed MCP reference to ~/.codex/session-history/MCP.md and adds an idempotent routing block to ~/.codex/AGENTS.md.

MCP tools

search_sessions, get_session, refresh_sessions, and index_status. Search accepts query, project, status, date_from, date_to, limit, and offset.

The index is derived and rebuildable. Raw transcripts never belong in this repository. pgvector is installed and schema-ready for a measured second-stage reranker; lexical PostgreSQL search remains the authoritative v0.1.0 retrieval path.