I just use a basic script which runs the terminal text i type and replaces the current text buffer with AI suggested on when i hit a key combo.