Skip to main content

Crate agent_session

Crate agent_session 

Source
Expand description

Portable session IR, parsers, discovery, and process matching for local AI coding-agent transcripts.

The crate currently normalizes Claude Code, Codex, and Gemini CLI sessions. It intentionally stops at session data and process/session correlation; UI, database storage, eBPF collection, and OpenTelemetry export belong in applications that consume this crate.

Structs§

AgentSession
LiveProcessCandidate
ProcessKey
ProcessTree
SessionCache
SessionCandidate
SessionDirStat
SessionProcessInput
SessionProcessMatch
SessionProcessMatcher
SessionProcessMatches
TokenUsage

Constants§

AGENT_CLAUDE
AGENT_CODEX
AGENT_GEMINI
SOURCE_SESSION_PROCESS_MATCH
TRACE_EBPF_FILE
TRACE_PROC_FD
TRACE_RECENT_CWD
TRACE_STICKY_BINDING

Functions§

agent_source_for_path
codex_exec_prompt
count_session_dirs
discover_session_files
discover_session_files_in_home
fixture_session_path
is_codex_cli_entrypoint
normalize_session_log_path
parse_session_content
parse_session_file
parse_session_path
session_log_path_from_str