Fix OAuth PKCE token refresh race condition
Added mutex guard around refresh_token rotation and verified retry behavior with integration tests.
Agent Session Manager is an open-source workspace that reads your local transcripts from Codex, Claude Code, Antigravity CLI, OpenCode, Pi Agent, and DeepSeek Harness—so you can search, inspect, export, and back up without cloud lock-in.
Added mutex guard around refresh_token rotation and verified retry behavior with integration tests.
Switched to WAL mode with URI ?mode=ro and bounded timeout to prevent lock contention.
Implemented semantic HTML, Schema.org JSON-LD, llms.txt, and bilingual hreflang pages.
Added manifest.json metadata and query filter parity with /api/sessions for reproducible backups.
Supported both ~/.pi/agent/sessions and ~/.pi/sessions paths from a single configurable root.
Transparently streams session*.jsonl and session*.jsonl.zstd files without unpacking on disk.
Agent Session Manager is a local-first web application (FastAPI backend + React frontend) that unifies AI coding conversations scattered across CLI tools into a single, fast, searchable timeline. It reads original files directly from disk—requiring no database, no external server, and no login.
Core Capabilities
Stop grepping raw JSONL logs across hidden dot-directories. Search, read, copy, and archive every prompt and solution in seconds.
Combine keyword search across titles, user prompts, assistant replies, and full transcripts with filters for agent source, project path, date range, and sort order.
Inspect complete conversation timelines with GitHub Flavored Markdown, structured tables, lists, tool calls, and clean syntax-ready code blocks.
Copy a full conversation, a single message, or an individual code block in one click, or export any session directly to Markdown or JSON.
Archive all sessions—or only those matching your active search, source, project, or date filters—into a ZIP bundle with raw files and a manifest.json.
Zero telemetry, zero cloud sync, zero database migrations. Original session files are opened read-only and never moved or modified.
GET /api/providers dynamically reports enabled agents so new backend adapters appear automatically in the frontend sidebar and filters.
Supported Agents
Default local storage paths are scanned out of the box and can be overridden via environment variables.
| Agent | Provider ID | Default Local Path | Env Override |
|---|---|---|---|
| Codex | codex |
~/.codex/sessions/**/*.jsonl |
CODEX_HOME |
| Claude Code | claude |
~/.claude/projects/**/*.jsonl |
CLAUDE_HOME |
| Antigravity CLI | antigravity-cli |
~/.gemini/antigravity-cli/brain/*/.system_generated/logs/transcript.jsonl |
ANTIGRAVITY_CLI_HOME |
| OpenCode | opencode |
~/.local/share/opencode/storage/ |
OPENCODE_HOME |
| Pi Agent | pi |
~/.pi/agent/sessions/**/*.jsonl or ~/.pi/sessions/**/*.jsonl |
PI_HOME |
| DeepSeek Harness | deepseek-harness |
~/.dsh/ (session*.jsonl & session*.jsonl.zstd) |
DEEPSEEK_HARNESS_HOME |
Quickstart
Requires Node.js, pnpm, Python 3.11+, and uv. Opens the UI at http://localhost:5055 and API at http://127.0.0.1:8055.
git clone https://github.com/di-ba-yan/agent-session-manager.git
cd agent-session-manager
make install
make dev
# Open http://localhost:5055 in your browser
Install, configure, and start Agent Session Manager on this machine, then report the accessible URL and verification results.
Repository: https://github.com/di-ba-yan/agent-session-manager.git
1. Check README.md and Makefile; verify make, Node.js, pnpm, uv, and Python 3.11+.
2. Run `make install` at the repo root without modifying original session files.
3. Run `make dev` (frontend on 5055, backend on 8055).
4. Verify http://127.0.0.1:8055/api/health and http://localhost:5055 respond.
Architecture
Designed to be easy to audit, extend with new agent formats, and script via REST API.
app/config.pyLocal data directory configuration & env overridesapp/models.pyTyped session and message data modelsapp/parser.pyUnified JSONL & OpenCode transcript parserapp/adapters.pyProvider discovery, metadata enrichment & raw file adaptersapp/store.pyFile scanning, in-memory cache, filtering & sortingapp/api.pyFastAPI routes: /api/sessions, /api/providers, /api/backupReact 18 + TSResponsive workspace with live search & detail drawerreact-markdownGFM tables, lists, blockquotes & code block copymake frontendStart Vite dev server independently on port 5055make backendStart FastAPI server independently on port 8055make buildCompile TypeScript and bundle production assetsGET /api/backupScriptable ZIP export accepting q, source, project, from, toFAQ
CODEX_HOME, CLAUDE_HOME, PI_HOME, OPENCODE_HOME, DEEPSEEK_HARNESS_HOME, or ANTIGRAVITY_CLI_HOME before starting the server.
manifest.json. You can also call GET /api/backup directly from scripts.
backend/app/adapters.py and register it in adapters(). Because the UI reads enabled sources from GET /api/providers, your new agent automatically appears in the sidebar and filters.