- Install Rust and
cargo - Finish Rustlings (in progress)
- Create new binary crate:
recli - Add
clapwith subcommands for better control
- Run basic shell passthrough with PTY
- Intercept
Ctrl+Xwithcrossterm - Print "Hotkey detected!" as test
- Add CLI subcommands (
start,stop,status,recent,clear)
- Create CommandEntry and CommandLog data structures
- Implement command logging methods (
start_command,append_output,finish_command) - Integrate command detection with PTY output parsing
- Include cwd and exit code per command (structures ready)
- Save history to structured log (methods ready)
- Create session management system
- Implement safe log directory creation (~/.recli/logs/)
- Add JSON serialization for terminal logs
- Create start/stop commands with session state tracking
- Azure Cosmos DB integration with connection string parsing
- Automatic session upload on completion
- Environment-based configuration (.env support)
- Connection diagnostics (
cosmos_doctorcommand) - Robust error handling and retry logic
- Full context command capture and cloud storage
- On hotkey, scan recent commands and extract:
- All
error:lines - All non-zero exit codes
- All
- Display interactive summary (e.g., with
ratatui)
- Detect canceling commands
- Mark files added/removed (with snapshots or
inotify) - Show final list of commands that changed system state
- Add CLI to pass sample lines
- Suggest regex statically
- Test regex on scrollback buffer
- Add optional LLM support (OpenAI, local)
- Format prompt with context summary
- Show AI-suggested fix
- Optional: inject fix into shell stream
- Spawn thread running
journalctl -f - Parse key failures, tag timestamps
- Display relevant logs with command timeline