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, OpenCode, and Codex. Sessions with activity within the last 30 minutes are marked active; older sessions are marked stopped.
- 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.