Repository navigation
Releases: AndsGo/session-zoo
Release list
v0.2.1
v0.2.0
Added
zoo stats— per-session / per-model token usage and cache hit rates, persisted through sync meta.json and reindex;zoo stats --backfillfor existing sessions
Fixed
- Token usage deduplicated by
message.id—total_tokensno longer counts multi-block assistant messages once per block
Upgrade note: run zoo stats --backfill once to compute usage for existing sessions. The dedup fix shrinks total_tokens for most sessions, so the next zoo import marks them for a one-time re-sync.
v0.1.3
Highlights
New: Session titles in zoo list
Sessions now have a real title. zoo list shows it in a Title column instead of the noisy markdown summary excerpt, and zoo show displays it with its source label.
Title resolution follows a 4-level priority:
manual— set withzoo title <id> "..."summary— parsed from**Title:**in the AI-generated summaryai-title— extracted from Claude Code's nativeaiTitlerecords inside the jsonlfirst-message— first user message, truncated; matches what/resumefalls back to
A priority guard ensures automated processes (zoo import, zoo summarize) never overwrite a manual title. zoo title --backfill populates titles for existing sessions in one shot.
New command
zoo title <id> # show current
zoo title <id> "新标题" # set (manual)
zoo title <id> --reset # clear, allow auto-derivation
zoo title --backfill # recompute for all sessions
Sync round-trip
zoo sync writes title and title_source into meta.json; zoo reindex restores them on a new machine.
Bug fixes
zoo restorewrites Windows session jsonls to the correct~/.claude/projects/D--work-foo/directory (was-D-work-foo), so/resumecan find restored sessions on Windowszoo summarizesubprocess pinned to UTF-8 so Chinese summaries fromclaude -pno longer corrupt on Windows GBK locales
Migration
Existing DBs auto-migrate (idempotent ALTER TABLE). After upgrade, run zoo title --backfill once to populate titles from your existing jsonls.
Full diff: v0.1.2...v0.1.3
v0.1.2
What's Changed
Bug Fixes
- Windows encoding: Fix
UnicodeDecodeError(GBK) — all file I/O now uses UTF-8 - TOML config: Escape backslashes in Windows paths to prevent parse errors
- Restore paths: Handle Windows drive letter colon in encoded project paths
- Hooks format: Use correct Claude Code hooks format (
matcher+hooksarray) — fixes "Expected array, but received undefined" error - Empty repo sync: Skip
git pullon repos with no commits
Full Changelog
v0.1.1
What's Changed
Windows Compatibility Fixes
- Fix
UnicodeDecodeError(GBK) on Chinese Windows — all file I/O now uses UTF-8 encoding - Fix TOML config parse error caused by unescaped backslashes in Windows paths
- Fix
OSError: [WinError 123]in restore — Windows drive letter colon removed from encoded paths - Fix
git pull --rebasefailure on empty repositories - Fix cross-platform test assertions for path separators and Rich console line wrapping
v0.1.0 - Initial Release
session-zoo v0.1.0
AI development session recorder — save and sync sessions to GitHub.
Features
- Import sessions from Claude Code (Codex adapter coming soon)
- Sync sessions to GitHub with
zoo sync - Browse, search, tag, and summarize sessions
- Cross-device restore with
zoo restore - 5 bundled skills for Claude Code / Codex integration
- SessionStart hook for automatic import on session start
Install
pip install session-zoo