Skip to main content

CODITECT Session Export Engine

Automatically captures session context for MEMORY-CONTEXT system.

Features:

  • Conversation extraction from checkpoints and sessions
  • Metadata generation (timestamp, participants, objectives)
  • File change tracking via git
  • Decision logging and rationale capture
  • Privacy-aware export

Usage: python session_export.py --checkpoint MEMORY-CONTEXT/checkpoints/2025-11-16-session.md python session_export.py --auto # Auto-detect latest checkpoint python session_export.py --session-dir MEMORY-CONTEXT/sessions/

Author: AZ1.AI CODITECT Team Sprint: Sprint +1 - MEMORY-CONTEXT Implementation Date: 2025-11-16

File: session_export.py

Classes

SessionExportError

Base exception for session export errors.

CheckpointNotFoundError

Raised when checkpoint file is not found.

GitOperationError

Raised when git operations fail.

ExportFormatError

Raised when export format is invalid.

FileWriteError

Raised when file writing fails.

RepositoryNotFoundError

Raised when git repository is not found.

SessionExporter

Exports session context to MEMORY-CONTEXT system.

Functions

main()

CLI entry point.

export_session(checkpoint_path, session_name)

Export session context from checkpoint.

Usage

python session_export.py