API Session Ledger is a local-first Windows application for recording evidence from AI-assisted coding and technical work sessions.
The initial prototype records:
- Session objective and project directory
- Selected terminal or AI tool
- Tool process start and exit events
- File creation, modification, deletion, and rename events
- SHA-256 hashes for files up to 25 MB
- Git branch, commit, and status before and after the session
- Sanitized append-only JSONL events
- Session metadata and a deterministic Markdown summary
Version 0.1.0 does not capture interactive terminal commands or terminal output.
It launches the selected terminal or AI CLI and independently observes project and Git activity. Managed terminal capture using Windows ConPTY is planned for the next phase.
The application does not use hidden keylogging, HTTPS interception, or silent credential collection.
Session records are stored under:
%LOCALAPPDATA%\API Session Ledger\sessions\
Each session contains:
session.json
events.jsonl
summary.md
.\build.ps1The self-contained Windows x64 output is created under:
artifacts\publish\win-x64\
- Managed Windows ConPTY terminal capture
- Command and exit-code detection
- SQLite and full-text search
- Text file diffs and Git patches
- OpenAI-compatible local API proxy
- Anthropic and Grok adapters
- Browser transcript import
- Optional local Ollama summaries
- Evidence-linked project recall
- Encrypted export and backup
MIT License. See LICENSE.