Ask a question to get started
Enter to send•Shift+Enter new line
Manages command history with file persistence.
Uses append-only writes for concurrent safety. Multiple agents can safely write to the same history file without corruption.
HistoryManager( self, history_file: Path, max_entries: int = 100, )
history_file
Path
Path to the JSON-lines history file
max_entries
int
100
Maximum number of entries to keep
Whether currently navigating history entries.
Add a command to history.
Get the previous history entry.
Get the next history entry.
Reset navigation state.