claudex 0.11.0

Reusable library for indexing and querying Claude Code, Codex, Copilot, Pi, and OpenClaw coding sessions
Documentation

claudex

Reusable Rust library for indexing and querying local agent coding sessions.

The crate reads Claude Code, OpenAI Codex, GitHub Copilot (CLI and VS Code), Pi, and OpenClaw transcripts through the same provider/index pipeline used by the CLI, then returns typed report structs instead of terminal-rendered tables.

Install

[dependencies]
claudex = "0.11.0" # x-release-please-version

Example

use claudex::api::{Claudex, Filter};

fn main() -> anyhow::Result<()> {
    let mut claudex = Claudex::new()?;
    let summary = claudex.summary(Filter::default())?;

    println!("sessions: {}", summary.total_sessions);
    println!("cost: ${:.2}", summary.total_cost);
    Ok(())
}

Use claudex::api for the supported facade. claudex::index::IndexStore remains public for callers that need lower-level query control.