Skip to main content

Module ingest_codex

Module ingest_codex 

Source
Expand description

Handler for ingest --mode codex.

Orchestrates the locally installed OpenAI Codex CLI binary (codex exec) to extract domain-specific entities and relationships from each file, then persists them with full embedding pipeline for recall/hybrid-search.

Architecture: P1 One-Shot per file — each file spawns a separate codex exec process with --output-schema for guaranteed structured output. A SQLite queue DB tracks progress for resume/retry support.

Functions§

find_codex_binary
Locates the Codex CLI binary on the system.
run_codex_ingest
Main entry point for ingest --mode codex.