qbraid_core.services.agents.detect_sessions
- qbraid_core.services.agents.detect_sessions(enrich_all=False)
Discover agent sessions by scanning CLI tool files.
Scans transcript/session files for Claude, pi (codeq), and Codex. Transcript-only observations are historical (STOPPED means no known running runtime). Registry merge preserves the lifecycle of any actual hook/launcher registration while enriching it from these files.
- Parameters:
enrich_all (
bool) – If True, run full detail enrichment on every session regardless of age. Default is False (only last 30 days).- Return type:
list[AgentSession]- Returns:
List of discovered AgentSession objects.