Manual contents

AI commands

Edit > AI Commands, also on the editor's right-click menu, works on the selection, or on the whole document if nothing is selected. It uses Claude with your own API key, so Anthropic bills you directly for what you use and TriPad needs no account of its own.

CommandWhat it does
ExplainExplains the text in a pane beside it, as the answer is written.
TranslateTranslates the text into the language you choose, in the same pane. Replace Selection puts the translation in the document.
RewriteChanges the text the way you describe and shows the result beside the original.
Fix MistakesCorrects spelling, grammar and code mistakes, changing as little as possible, and shows the result the same way.

Rewrite and Fix Mistakes don't change your document by themselves. The result opens in the compare view with a bar across the top, in any mode: your text, read-only until you decide, and Claude's version, which you can edit. Accept then replaces only what differs, in one undo step, and Reject leaves the document as it was. Next Difference (F7) steps through the changes, and F6 moves between the bar and the two versions.

Esc stops a command that is running. The buttons above an answer are also in the AI Commands menu, and so in the command palette, for working from the keyboard. Commands aren't available in large-file mode or the hex view, or while Filter Lines is hiding lines, because a selection would take in lines you can't see.

If an answer is harmful, offensive or otherwise inappropriate, Report above it, or **Report an Answer** in the menu for a Rewrite or Fix Mistakes result, opens a message to XN3 Technologies, who make TriPad, in your email program: to info@xn3tech.com, with the answer in it (or as much as fits) and the TriPad version and model below. Nothing is sent until you send it, and you can change or remove anything first.

Create a key at console.anthropic.com and enter it in **Preferences > AI > Claude API key**, or just run a command and TriPad asks for it. The same page has the model and how much effort it puts in. The default model is Claude Opus 5.5; Claude Haiku 5.5 costs far less and suits short text. Show the AI commands takes them out of the menus altogether. The status bar shows the tokens each command used.

What happens to your text and key:

  • Nothing is sent until you run a command. The text then goes to Anthropic's API with the command's instructions, over TLS 1.2 or 1.3 and through Windows' proxy settings. The file name and path are not sent, and TriPad asks first if the text is over 256 KB.
  • The key is kept in Windows Credential Manager, as TriPad/claude-api-key, and never in TriPad.ini. A portable copy, and the Microsoft Store's, add a hash of their settings folder to that name, so each copy has a key of its own.
  • The text is marked as data for the model to work on, never as instructions to it, but a document can still try to mislead a model. So answers show no images, raw HTML or diagrams: a loaded image could carry your text to someone else's server. Web and mail links only open when you click them, and links to files don't open at all. Read a Rewrite or Fix Mistakes result before you accept it.
  • If Anthropic's safety checks decline a request, the Opus, Sonnet and Fable models try again on another model on Anthropic's side, as Anthropic recommends. What is written so far stays and the other model carries on after it.

Requests go out through winhttp.dll, which comes with Windows and isn't loaded until the first command runs, so a window that never uses these commands pays nothing for them.