Skip to main content

Crate sessionguard

Crate sessionguard 

Source
Expand description

SessionGuard — a system-level daemon that keeps AI coding sessions intact when your projects move.

This library crate contains all core logic. The binary (main.rs) is a thin wrapper that parses CLI args and dispatches to library functions.

Modules§

cli
CLI definition using clap derive.
config
Configuration loading and management.
daemon
Daemon lifecycle management.
detector
AI tool session artifact detection.
error
Unified error types for SessionGuard.
event_log
Structured event log for reconciliation actions.
reconciler
Path reconciliation engine.
registry
SQLite registry mapping projects to their AI session artifacts.
tools
Runtime-loaded AI tool session pattern definitions.
watcher
Filesystem event watching.