LOCAL-FIRST · ZERO DATABASE · READ-ONLY

Every AI coding session, searchable in one place.

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.

FastAPI + React 18 · 6 Built-in Agent Adapters · Markdown / JSON / ZIP Export
http://localhost:5055
LOCAL READ-ONLY
Codex 2m ago

Fix OAuth PKCE token refresh race condition

~/workspace/auth-gateway

Added mutex guard around refresh_token rotation and verified retry behavior with integration tests.

Claude Code 18m ago

Refactor SQLite connection pool for read-only queries

~/workspace/analytics-engine

Switched to WAL mode with URI ?mode=ro and bounded timeout to prevent lock contention.

Antigravity CLI 1h ago

Design static landing site with SEO and GEO

~/workspace/session-manager

Implemented semantic HTML, Schema.org JSON-LD, llms.txt, and bilingual hreflang pages.

OpenCode 3h ago

Streamline async ZIP backup progress endpoint

~/workspace/session-manager

Added manifest.json metadata and query filter parity with /api/sessions for reproducible backups.

Pi Agent Yesterday

Migrate legacy session glob to dual layout discovery

~/workspace/pi-tools

Supported both ~/.pi/agent/sessions and ~/.pi/sessions paths from a single configurable root.

DeepSeek Harness 2d ago

Decode zstd-compressed JSONL session transcripts

~/workspace/harness-evals

Transparently streams session*.jsonl and session*.jsonl.zstd files without unpacking on disk.

What is Agent Session Manager?

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

Built for developers who work across multiple AI coding agents.

Stop grepping raw JSONL logs across hidden dot-directories. Search, read, copy, and archive every prompt and solution in seconds.

Full-Text & Multi-Filter Search

Combine keyword search across titles, user prompts, assistant replies, and full transcripts with filters for agent source, project path, date range, and sort order.

Readable Timeline & GFM

Inspect complete conversation timelines with GitHub Flavored Markdown, structured tables, lists, tool calls, and clean syntax-ready code blocks.

Granular Copy & Export

Copy a full conversation, a single message, or an individual code block in one click, or export any session directly to Markdown or JSON.

Filtered ZIP Backups

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.

Strict Local Privacy

Zero telemetry, zero cloud sync, zero database migrations. Original session files are opened read-only and never moved or modified.

Extensible Provider Adapters

GET /api/providers dynamically reports enabled agents so new backend adapters appear automatically in the frontend sidebar and filters.

Supported Agents

6 AI coding agents discovered automatically.

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

Up and running in two commands—or delegate to an AI agent.

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.

Terminal — Clone & Run
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
Prompt — Let an AI Agent Install & Verify
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

Clean modular separation between backend adapters and frontend UI.

Designed to be easy to audit, extend with new agent formats, and script via REST API.

Backend (Python 3.11+ / FastAPI / Uvicorn)

  • app/config.pyLocal data directory configuration & env overrides
  • app/models.pyTyped session and message data models
  • app/parser.pyUnified JSONL & OpenCode transcript parser
  • app/adapters.pyProvider discovery, metadata enrichment & raw file adapters
  • app/store.pyFile scanning, in-memory cache, filtering & sorting
  • app/api.pyFastAPI routes: /api/sessions, /api/providers, /api/backup

Frontend & CLI Workflow

  • React 18 + TSResponsive workspace with live search & detail drawer
  • react-markdownGFM tables, lists, blockquotes & code block copy
  • make frontendStart Vite dev server independently on port 5055
  • make backendStart FastAPI server independently on port 8055
  • make buildCompile TypeScript and bundle production assets
  • GET /api/backupScriptable ZIP export accepting q, source, project, from, to

FAQ

Common questions

Does Agent Session Manager upload or modify my local session files?
No. Everything runs locally on your machine. The backend opens local session directories in read-only mode and never moves, edits, or uploads your transcripts.
Can I point it to custom session directories?
Yes. Override any default path using CODEX_HOME, CLAUDE_HOME, PI_HOME, OPENCODE_HOME, DEEPSEEK_HARNESS_HOME, or ANTIGRAVITY_CLI_HOME before starting the server.
How does filtered backup work?
Click Backup All in the top bar—if you have active search, source, project, or date filters, it creates an asynchronous archive job for the matching sessions and downloads a ZIP containing the raw files plus a manifest.json. You can also call GET /api/backup directly from scripts.
How can I add support for another AI coding agent?
Implement a new adapter in 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.

Own your AI coding history.

Open source, local-first, and ready to run in under a minute. Star the repository or contribute a new adapter.