Build an extensible agent with streaming and an optional TUI.
Recent revisions are kept. Restoring one creates a new revision.