I’ve been working on the project called TermMate, which can bring Codex CLI into Sublime Text. (github:flashmodel/termmate)
Instead of dealing with webview or command interface inside the terminal. TermMate build a chatview that directly uses native ST editview component to create a seamless agent chat and Command Palette experience.
Building the unified Chat View
The core of this tool is the Chat View, a specialized, interactive text buffer designed to feel like a terminal but operate with the rich text-editing features of Sublime Text.
Instead of a complex WebKit view or TUI with ANSI Escape Character, the TermMate chat window is built on editor buffer, along with html interaction on top of it. The Chat View support native keybindings, searching, split panes, and markdown highlighting. The fun thing is you can chat with the Codex CLI while saving all agent messages to a file as it support all editor features. I sometimes use it to save all codex message output. which is something the CLI can’t offer.
Command Palette Interaction
The entire workflow is driven by the Command Palette and contextual menus, keeping it keyboard-first, you can change approvalmode, select model all by Command Palette. This is similar to use Shift+Tab to change plan mode in codex cli. In Sublime Text, you don’t need to remember the shortcut. All you need it to type in Command Palette and do the stuff.
The TermMate still lacks lots of features than codex cli, we are working on the project to bring more capabilities.
