Security and privacy
A terminal sees everything you type, and an agent link exposes your editor to programs. Next Term is built so that both stay on your Mac and under your control. The source is public under the MIT licence, so every claim on this page can be checked.
What leaves your Mac
Section titled “What leaves your Mac”- No account, no telemetry, no analytics. Next Term has no sign-in and sends no usage data.
- Two kinds of request of its own, each with an off switch:
- the daily update check to GitHub (see Updates);
git fetchfrom your projects’ own remotes, on a schedule (see Background fetch below).
- Everything else only when you ask. A fetch, update or push you choose in the branch popup talks to your git remote. A remote tab connects only to the server you opened it on, through your own ssh; a tmux or herdr tab reconnects to it by itself, and reopens once the first window opens after a launch, in its project’s window if that is open, else in the first window. Open in TablePlus hands a database to TablePlus, and Open in Vercel runs Vercel’s own command line in a new tab. A badge in the sidebar’s Databases or Services rows opens its page in your browser when you click it. Nothing else starts by itself.
- The Skills library asks GitHub when you do, and once a day for updates: when you review a skill, install or update one, or click Check for Updates in Settings › Skills. If you installed skills from GitHub, Next Term also checks them for updates once a day in the background, and when you open Window › Skills (at most once an hour), so Agents › Skills… can show how many have one. Turn both off in Settings › Skills (“Check for updates once a day, and when Window › Skills opens”). Each request names a public repository and a commit; nothing about you or your other skills is sent. See Skills from GitHub.
- Settings › Agents asks for agents’ latest versions only when you open it, or when an update you scheduled is due, and each source at most once a day unless you click Check for Updates. Each request names a public package and nothing about you. See Agent updates.
- Tasks are handed over, never sent by Next Term. A task for an app reaches it on this Mac (Reminders, Things, Todoist, OmniFocus), a tracker’s page opens in your browser for you to submit, a shortcut gets the text as its input, and an agent’s request is typed into its tab for you to send. Next Term holds no account or token for any of them, stored keys are masked first, and team pages never get the tab’s title, the agent or its resume command.
- No AI of its own. Next Term runs the agents you install. What those agents send to their providers is between you and them.
- MCP servers you connect are reached only for your agents. A server at a URL is reached when an agent uses it, and a sign-in goes only to that server and the sign-in server it names, in your own browser. Nothing about you or your sign-ins goes to Next Term’s website or anywhere else. See Sign-ins to MCP servers.
- Your stored keys are never synced or uploaded. A key in Secrets goes only to a command you approve, and that command can send it on.
- Suggest a command is off until you turn it on, and then sends only when you press ⌃⌘K and submit a sentence. It goes to the agent you chose (Claude Code) or to Apple’s on-device model, which keeps it on this Mac. With your sentence go the folder, the shell’s name and the last command, secrets masked; recent output only when you include it, each time, after seeing it as it would be sent. The agent runs with no tools and no MCP, in an empty folder, without Next Term’s variables, and is stopped after 60 seconds. What comes back is put on the line and never run. See Suggest a command.
- Suggestions while typing never leave your Mac. They come from Next Term’s own record of your commands, kept on this Mac, and nothing is sent anywhere (see Suggestions while typing below).
The agent links
Section titled “The agent links”Claude Code, OpenCode, Gemini CLI, Qwen Code and GitHub Copilot CLI connect to Next Term as their IDE. What each link shares, and with whom:
| Link | Who can connect | What it is sent | What it can ask for |
|---|---|---|---|
| Claude Code | A program with the token from Next Term’s lock file in ~/.claude/ide | The selected lines, or which file is open; ⌥⌘K’s @-mentions | To show a proposed edit |
| OpenCode | From a Next Term tab: OpenCode itself, with no token. Elsewhere: with the token, as Claude Code | The selected lines, or which file is open; ⌥⌘K’s @-mentions | Nothing from a tab |
| Gemini CLI, Qwen Code | A program with the token from the tab’s environment or Next Term’s discovery file | Up to 10 open files, the caret and the selection | To show a proposed edit |
| Copilot CLI | A program with the nonce from Next Term’s lock file in ~/.copilot/ide. A copilot started in another terminal in a folder Next Term has open connects by itself | The selected lines, or which file is open, in the window of its tab (started elsewhere: the window that has its folder open, or nothing); ⌥⌘K’s @-mentions | To show a proposed edit; the last selection it was sent |
The lock and discovery files are readable only by you, so the secrets keep out other users of this Mac and web pages. They do not keep out programs you run yourself, which can read your files anyway.
- Local only: the servers for Claude Code, OpenCode, Gemini CLI and Qwen Code listen on
127.0.0.1, never on the network. Copilot CLI’s has no network port: it is a Unix socket in a folder that only you can open, new at every launch. - A fresh secret per launch: new 256-bit secrets every time Next Term starts, compared in constant time. The lock files that tell Claude Code and Copilot CLI where to connect are readable only by you (
0600in a0700folder) and are removed on quit. Lock files left by other editors are never touched. - OpenCode, checked instead of trusted: OpenCode connects from a Next Term tab without the token. Next Term finds the process behind the connection by its ports and keeps the connection only if that process is OpenCode running in one of its own tabs. Any other connection without the token is closed before a message is read.
- Browsers refused: any request with an
Originheader, as web pages send, is rejected. - Read-only for agents: nothing an agent sends writes a file. Proposed edits are shown to you; the agent writes after you accept.
- Secrets stay out: selections and open files from
.env,.env.*(except.env.example),*.env,.flaskenv,*.pem,*.key,id_rsa,id_ed25519,.npmrcand.netrcare never shared. - Copilot’s own trust question stays: Next Term’s lock file does not call any folder trusted, so Copilot CLI still asks before it works in a folder for the first time.
- Off switches: Settings › Editor › Agents has one for Claude Code, OpenCode, Gemini CLI and Qwen Code, and one for Copilot CLI.
Next Term turns on Gemini CLI’s and Qwen Code’s IDE mode by changing exactly one setting in their settings files, and never rewrites a file with comments. It changes nothing of Copilot CLI’s: it only adds its own lock file. See Agents and the IDE link.
The MCP server
Section titled “The MCP server”Agents can drive Next Term through its MCP server (Orchestrate agents). It is built to the same standard:
- No network port. The app listens on a Unix socket,
~/Library/Application Support/Next Term/mcp.sock, with mode0600, and checks that every connection comes from your own user. That is the reach your own shell already has. - Honest tool descriptions: typing into a tab, pressing keys, answering an agent’s question, opening and closing tabs are marked destructive, so agents ask before they use them. Every tool is also tagged
readorwrite. - Changes wait for you:
write_file,create_file,stage,commit, the pane and layout tools,settings_set,add_taskandadd_mcp_serverchange nothing until you click Approve in a window on your Mac that shows what would change and who asks. Decline, closing it or no answer in about 50 seconds changes nothing. The window never takes the keyboard and has no Return button.propose_editonly shows a diff for you to accept or reject; it never writes. See Approving changes. - Questions are answered once: an answer names the question it is for, and is refused if the agent has moved on to another one.
- Allow always waits for you: in an agent session, Allow always, picked by you or by an agent steering the session, opens an approval window on the Mac, and the agent hears nothing until you approve there. Only Next Term’s own signed program, running in one of its tabs, can report a session’s state to the app. Claude Code and Codex sessions run the CLI you installed, signed in as you signed it in: Next Term never reads, stores or forwards their tokens. Before Claude Code’s first session in a folder, whose hooks and MCP servers
claude -pruns without asking, Next Term asks on the Mac whether to trust that exact folder, and only a click answers. - No tool returns a stored key’s value. Agents use the keys in Secrets by name, and stored keys are masked, best effort, in every answer the server gives: a key under 12 characters, or one changed before it is printed, is missed (what masking misses).
- Project files stay inside, and secrets stay out: the file, search and git tools (
read_file,find_in_files,git_status,get_diff) read only inside the projects open in Next Term, with symlinks resolved first..envfiles, keys and certificates, ssh keys, credentials files and.gitare refused, and secret-looking values in what they return are masked as•••. - Writes follow the same rules:
write_file,create_fileandpropose_editwork only inside the open projects, never on files that hold secrets, binary files or files over 5 MB, and never on git hooks (the hooks folder,.husky, pre-commit’s and lefthook’s settings), whichcommitwould run.write_filenever writes under unsaved edits in the editor, nor a file that changed while you were asked; it writes atomically and keeps the file’s permissions, encoding and line endings.create_filenever writes over a file. - Tasks go only where you send them:
add_taskwrites one new file in the project’s todo folder, or the folder you chose in Settings › Tasks: never over a file, never outside the project or that folder, and never in.git. The approval window shows the whole file first, with stored keys already masked as•••. Withdestinationproject, the task goes to the destination you chose for the project instead, and the window, always on the Mac, shows the exact text that would leave; an agent can’t name an app, a page or a tab, and Next Term makes no network request to send it. - A change can be code that runs: a file an agent writes may be one that runs later, such as a script, a test or an agent’s settings file with hooks, and
commitruns the repository’s hooks, which often run the project’s own scripts and tests. Approve such a change as you would a command typed in your shell. - Commits take only what was named:
commitrefuses when other changes are staged, unless the agent says to include them and the approval window lists them; it never pushes or amends. It runs as the branch popup’s commands do, with the repository’s hooks, and is listed in Git › Git Commands. - Settings agents can’t touch:
settings_setchanges only the font size, line height, soft wrap, terminal position and the notification switches. Never “Let agents control Next Term”, the IDE links, updates or keyboard shortcuts, so no agent can turn off its own guards. - The editor’s selection too: in a
.env, key or credentials file,get_editor_selectionsays the text is withheld instead of returning it. - Servers only over your own logins:
check_host,host_sessionsandhost_changesrun over a connection a remote tab already has, and never log in by themselves.new_remote_tabopens a tab where your own ssh logs in, and any password or host-key prompt appears there for you. The ones that save a host or run something on a server are marked so that your agent’s client asks you first. - No self-control: an agent cannot type into, or close, the tab or pane it runs in.
- Busy tabs are protected: closing a tab that runs something needs an explicit
force. - Your files are respected: registering in an agent writes only Next Term’s own
next-termentry, keeps comments and every other server, and never touches an entry it did not write. The edit is written as every file Next Term writes: to a temporary file only you can read, then put in place in one step with the file’s own permissions, so a private file such as Codex’sconfig.tomlis never readable by others along the way. Just before putting its edit in place, Next Term checks that the agent has not saved the file since Next Term read it, and if it has, leaves the agent’s version. The agents offer no lock, so a save made at that very moment can still be lost. - Off switch: Settings › Editor › Agents: “Let agents control Next Term” closes the socket and removes the entries (the Claude desktop app’s once Claude is closed).
MCP servers you connect
Section titled “MCP servers you connect”MCP servers you connect in Settings › MCP Servers are kept to the same rules:
- What it reads: your list,
~/Library/Application Support/Next Term/mcp.json, and a project’s.next-term/mcp.jsonin the agent’s folder and each folder above it, up to the repository’s top. For Found in your agents and the one-time offer, it reads your agents’ own MCP configs, the same files as Secrets’ import. Those are only read, never changed. - What it writes: only your list, readable only by you, and a project’s list when you add a server to it. No file is made until you add your first server. A file Next Term can’t read, or one from a newer Next Term, is never overwritten. No agent’s config is ever written for it.
- What it runs: a local server, only when an agent session in one of this Mac’s tabs first needs it, in that tab’s folder. It stops when the session ends. A project’s list runs nothing until you approve it as it is now; a change to it waits for you again. A server at a URL is reached by Next Term itself, when an agent first needs it.
- Keys stay in Secrets. A value that looks like a key is never saved in either list. A command gets its keys through
nxtrm secret run, after you approve; a URL or header names one as${secret:NAME}, which only Next Term fills in. A URL ishttps://, orhttp://to this Mac or to a Tailscale name. A private IP address in a URL, link-local addresses and cloud metadata addresses are refused. See Servers in your own network. - What agents see:
list_mcp_serversandmcp_serversnever show a key. What a failed server wrote is passed on with anything that looks like a key masked. - An agent asks, you decide:
add_mcp_serveris always asked on the Mac, showing exactly what will run or be reached.
Sign-ins to MCP servers
Section titled “Sign-ins to MCP servers”When a server asks you to sign in, Next Term keeps the sign-in on this Mac:
- Only you start a sign-in, with a click in Settings. It opens your own browser, and the browser comes back once to a listener on
127.0.0.1at a port of its own, closed after that one answer or after 10 minutes. - The tokens are sealed in
sign-ins.json, beside the vault in~/Library/Application Support/Next Term/Secrets.noindex/, readable only by you. No token is in it in the clear. The key that opens it is a vault entry of Next Term’s own,NEXT_TERM_SIGN_INS, guarded as every key in Secrets is. No list, tool or menu shows it, and no agent or command can use it. - Touch ID unlocks your sign-ins once a launch, at the first need, and they stay unlocked until Next Term quits.
- A change from outside is caught. The whole file is signed. A consent added by hand, a swapped record or an older copy put back, after a relaunch too, reads as changed outside Next Term, and every sign-in shows as signed out.
- No agent gets a token. Next Term adds it to its own request to the server. Should a server quote a token back, it is hidden from the agent and from Settings.
- Each agent asks once. The first time an agent kind uses a sign-in, you choose Allow or Don’t Allow on the Mac, in one panel that names each sign-in it would allow. Your answer is kept in the sealed file, so an agent can’t grant itself.
- Sign Out and Remove end the sign-in at the server, where the server allows it. The last sign-in takes the vault entry with it.
- Your own OAuth app’s secret stays in Secrets. At sign-in, a sealed copy goes into
sign-ins.jsonfor refreshes. It is sent only to the sign-in server’s own address, never elsewhere. See Your own OAuth app. - What is sent: to the MCP server and its sign-in server, the requests a sign-in needs, and Next Term’s registration as an app named “Next Term”. Nothing about you or your sign-ins goes to Next Term’s website or to any other server.
Secrets
Section titled “Secrets”Secrets keeps your API and MCP keys in a vault on your Mac, each value sealed on disk, with the key that opens them guarded by the Secure Enclave (on a Mac without one, by the login keychain, which Settings calls less protected). Agents and MCP servers use a key by name, after Next Term’s own panel shows who asks, which keys, the command and its folder, and you approve with Touch ID or your password. No MCP tool returns a value, and nxtrm secret run and the app check each other’s code signature before a key is sent. Stored keys are masked, best effort, in what agents read through Next Term, in notifications and in what Next Term saves. A command you approve gets the key and can send it on, other programs running as you can read its environment while it runs, and Secrets can’t stop malware already running as you: see what Secrets protects, and what it doesn’t.
Approvals for a session, a worktree or a folder live in memory alone, never on disk, and end when Next Term quits at the latest.
Always approvals are guarded so an agent can’t give itself one:
- Kept sealed beside the vault. They are in
always.json, in the Secrets folder, signed with a key that only an unlock of the vault gives, and they hold no key value. Next Term’s MCP tools never read or write it. A program that changes it, adds an approval or widens one breaks its signature, and then nothing in it is used. - An older copy can’t undo a change. The vault keeps a count of the file’s last change, raised in the Touch ID that makes or removes an approval, so a copy put back from before reads as changed outside Next Term, after a relaunch too. The same holds for
sign-ins.json. - Touch ID once each time Next Term opens releases an approval’s keys, at its first use. Removing one in Settings › Secrets asks for Touch ID too.
- Next Term checks which program is really asking, not just its name: the file macOS actually ran, by its place and identity on disk, the Team ID of its signature when it is validly signed, and under an interpreter the script it runs and that script’s contents. An update of the agent asks again.
- Only the agent in front of a Next Term tab is offered Always: the tab’s own program, or one an alias, a script or
npxin front started. An agent another agent started is not, nor a program of the same name that an agent’s shell runs. A launcher counts only when its own package holds the agent’s program, as Codex’s does. - An allowed command runs the exact program that was approved. A
run_with_secretscommand allowed always runs the program the approval is bound to, not one of the same name found again inPATH. Any change to the command, its program, its folder or the files that change what it does asks again.
Tabs start fresh
Section titled “Tabs start fresh”A new tab is a fresh terminal, not a child of whatever launched Next Term. Variables that agents and editors set for their own child processes are removed: Claude Code’s session markers (so claude never thinks it is a sub-agent), other programs’ messaging secrets, IDE links and terminal variables left by another editor, and a git password helper that belonged to an editor. Settings you set on purpose, such as ANTHROPIC_API_KEY, CLAUDE_CONFIG_DIR or CODEX_HOME, stay.
Screen sharing
Section titled “Screen sharing”Settings › Editor › Hide values in .env files draws the values in .env, .env.*, *.env and .flaskenv files as dots, so a screen share or a recording does not show them; View › Editor › Hide .env Values does it for one file. Keys and comments stay visible, the line you are typing in shows its value, and the file itself never changes. The terminal, diffs and Find in Files results still show values as they are. See Hiding .env values.
The terminal
Section titled “The terminal”- Clipboard: programs can copy to the clipboard (OSC 52) only from the tab you are looking at, and can never read it. A remote host over ssh cannot harvest what you copied.
- Paste: ⌘V strips control characters, so text on the clipboard cannot end a bracketed paste early and run the rest as typed input. An image alone goes to an agent that reads the clipboard on ⌃V as that key, so the agent reads it itself; anywhere else on this Mac it is kept as a PNG, readable by you alone (a new folder only you can enter, the file 0600), and its path is pasted; it is removed a day later, at the next paste or launch. In a tab logged in to another machine by hand (ssh), nothing is pasted. A file copied in Finder pastes as its full path; in a tab on a server or logged in elsewhere, as its name: a paste never sends a file there, only an image to a server tab.
- Screen contents cannot be read back through terminal queries: DECRQCRA answers are blanked, so a remote program cannot read your screen cell by cell.
- Status marks from the shell carry a random per-tab secret that programs never see. Output — a
catof a log, a remote host — cannot fake “command finished” and skip the close confirmation. - Dropped, pasted and inserted paths are quoted so that no file name can run a command, even one containing control characters, and arrive as a bracketed paste.
- Send to Agent removes control and invisible characters from what it types, and never starts with a character an agent treats as a command.
- Keys printed in a tab show on your screen as printed. Keys you stored in Secrets are masked as
•••, best effort, when an agent reads the tab through Next Term, and in the scrollback Next Term saves for an update or a quit.
Suggestions while typing
Section titled “Suggestions while typing”Suggestions while typing come from Next Term’s record of the commands you ran in its zsh tabs, kept on this Mac only, in ~/Library/Application Support/Next Term/History.noindex. Only you can open that folder, and Spotlight leaves it out.
- What it keeps: each command line, when it last ran and how often, how it last ended, its folder and repository, and the commands that followed it.
- What it never keeps: a command Next Term or an agent ran, a line that holds a secret (one of your stored keys, a token or a password), a line that starts with a space or spans several lines, and anything while suggestions are off or View › Privacy › Private Mode is on. Private Mode lasts until you turn it off or quit.
- zsh’s history file is never read or changed. Until the record has your commands, zsh’s own history in each shell fills in.
- The suggestion is drawn, never typed. It sits over the terminal, so it isn’t in the scrollback, a copy or what an agent reads. Agents never see Next Term’s suggestion.
- You remove what you want: Edit › Forget This Suggestion (⇧⌘⌫) removes one, and Settings › Terminal › While typing › Clear History… removes them all.
Opening files and links
Section titled “Opening files and links”Opening a file from the sidebar, or with ⌘-click in the terminal, asks first when the file is an app, a script or an executable — including behind a symlink or a Finder alias — with Reveal in Finder, Open or Cancel. Cloned repositories carry no quarantine flag, so macOS Gatekeeper would not ask; Next Term does.
⌘-click opens web (http, https) and mail links and local files. Every other link scheme is refused.
macOS privacy prompts
Section titled “macOS privacy prompts”macOS asks before an app reads your Desktop, Documents, Downloads, photos, music and similar places. Next Term never reads them on its own, so opening it, or a new terminal, asks for nothing.
- Protected places: Desktop, Documents, Downloads, Pictures, Movies, Music,
~/Library(with iCloud Drive and cloud-storage folders), the Trash and other disks (/Volumes). The sidebar’s scans, the file watcher, git status, Go to File, Find in Files, the Welcome window and the checks at launch leave them out, and a shortcut (symlink) into one is not followed until you open it. - Never a project: your home folder,
/,/Volumesand~/Library, even when your home folder is a git repository. - A window with no project says No project open in its sidebar, with your recent projects, Open Folder…, Connect to Server… and Browse Home Folder, and lists no files.
cdinto a project and its tree appears, with Open as Project Window; go back and it empties again. - When you go there, macOS asks once. A project you open inside a protected place works like any other, and Browse Home Folder shows your home folder with each protected folder read only when you open it. While you browse it, a bar over the tree shows the path to the folder you selected, made from what the tree has already read; Back, or ⌘↑ from the home folder, returns to No project open.
- If you said Don’t Allow, the folder says “macOS hasn’t given Next Term access to this folder.” with Open Settings, which opens the System Settings pane that changes it. Nothing asks again on its own.
- Full Disk Access is yours to give. Settings › General › Full Disk Access… opens that pane in System Settings, where you add Next Term yourself if you want every folder without prompts. Next Term never asks for it.
- The prompts say who is asking: “Next Term, or a command running in it, wants to access…”. macOS asks in Next Term’s name for the programs in its tabs too, so a command you run can still bring up a prompt, and every kind of access a program could ask for has a reason given.
- An agent started in your home folder reads your files itself, and macOS asks in Next Term’s name. Next Term offers once to open a project for it instead; Don’t Ask Again turns that off, and the agent runs either way.
- Reminders is asked for only when you choose it as where tasks go, after a sheet that says why. Next Term reads only the names of your lists, for the picker, and the reminders it added, for Undo, and adds only what you add, but macOS gives no add-only access, so what you allow is access to your reminders. macOS gives this permission to Next Term, and commands running in its tabs share it.
- Your answers last through updates. Releases are signed with Next Term’s own certificate, so what you allow stays allowed from one update to the next; see The release certificate.
Files and git
Section titled “Files and git”- Saves are atomic and private, and keep the file’s permissions, encoding and line endings (see How files are written).
- Named pipes are never read, so a pipe in a project cannot freeze the app.
- The sidebar’s git calls are read-only and use
--no-optional-locks, so the sidebar never holds the index lock while your own git commands or your agents’ run. - Every change you make through Next Term’s git tools is checked first: a hunk is staged, unstaged or rolled back only if the file still matches the diff you saw. See Diffs and Git Diff.
- Replace in Files re-reads each file and skips anything that changed since the search.
- The Git Log and blame only read, with
--no-optional-locksas well. In a partial clone, the Git Log lists a commit’s files without downloading them. - Write with Agent sends the changes, not their secrets: the commit sheet’s agent runs in an empty folder of its own, without the repository’s settings or hooks, and only when you press the button.
.envfiles, keys and certificates, ssh keys and credentials files are named but not sent, and secret-looking values in the rest are masked as•••, as the MCP tools do. See Branches. - The branch popup asks before it acts behind an agent: anything that would change files in a folder where an agent is working asks first, and uncommitted changes go into a named stash rather than being overwritten.
- Nothing in a notebook runs. Next Term has no kernel; it shows the outputs saved in the file. The head view for large data files never writes to them.
- Import only reads, on this Mac. It never writes to the other app, and never opens a file that can hold credentials.
How files are written
Section titled “How files are written”Every file Next Term writes for you is written the same way: an editor save, Undo after rolling back a change in a diff (git itself does the rollback), Replace in Files and its undo, Gemini CLI’s and Qwen Code’s IDE setting, Next Term’s entry in your agents’ MCP settings, the Skills library’s lock file, and a task’s file in the todo folder. Each write:
- Goes to a temporary file first, beside the file. Next Term makes it new, readable only by you, so nothing already there (a file, or a link someone left) is used, and another account on your Mac never sees the new text of a file it could not read. Once the text is in, it gets the file’s permissions, is flushed to disk and replaces the file in one step. A program reading the file sees the old text or the new, never part of either.
- Keeps the file’s permissions, so a script stays executable and a
.envonly you can read stays that way, and its group and extended attributes, such as Finder tags. A new file is readable only by you, except a file the editor saves again after it was deleted on disk, a new Skills lock file and a task’s file, which are made as you make files: readable by others under the usual umask (022), only by you under 077. No new file is ever more open than your umask. - Writes through links: the file a symlink points at is replaced, and the link stays a link. A link to a file that is not there is left alone.
- Leaves a read-only file alone. The folder would let Next Term replace it, but the file says not to change it; the save says it is read-only. A file locked in the Finder (Locked in its Get Info window) is left alone too, and the save says it is locked.
- Keeps a save made meanwhile: Replace in Files and its undo, the agents’ settings and the Skills lock file read the file again just before the new one goes in, and if another program saved it since they read or wrote it, its version stays. A task’s file is only ever a new one: if a file turns up under its name meanwhile, the task takes the next name. An editor save first checks that the file is still the one the editor last read or saved; if another program saved it since, nothing is written, and the editor asks which version to keep (see Files your agents change).
- Leaves nothing behind. When anything fails (a full disk, a folder you can’t write in), the temporary file is removed and the file is as it was.
What this does not do: it is not a lock. macOS has none that other programs respect, so a save made at the very moment the file is replaced can still be lost. And the file written is a new file under the old name: a program that has the file open keeps reading the old text, a hard link to it keeps the old text, and a file that belongs to another account (one you can write through its group) becomes yours.
Databases
Section titled “Databases”The Databases group in the project sidebar (Projects and git) is built so that a connection string never leaks:
- Found offline. Next Term reads the project’s text files and SQLite headers. It never runs the project’s code or
vercel env pull, and nothing connects until you choose a hand-off. - Passwords never leave their file. They are masked in tooltips, menus and accessibility labels, and never shown, logged, copied, put in a command line or handed to an agent. Open mysql in New Tab and Open psql in New Tab pass the password in a temporary file only you can read, deleted once the client starts.
- Remote is treated as production. Local or remote comes from the host, never the file’s name, and Open in TablePlus asks first for a remote host, naming it. mysql and psql tabs are offered for local and development databases only.
- SQLite files are opened read-only (SQLite’s read-only mode,
query_only, and immutable when nothing is in the file’s write-ahead log): no-walor-shmfile appears beside them. Send to Agent types only the file, the table and the rows you selected. - Editing is opt-in, per tab. Allow Editing… asks first, naming the processes that have the file open. The allowance is bound to that file in that tab, ends when the tab closes, you click Stop Editing or the file is replaced, and is never remembered. No agent or MCP tool can allow editing or write a database.
- A save writes one checked value. Only on Save: one
UPDATE OR ABORT, keyed by the row’s rowid or primary key, in one transaction on a connection of its own with SQLite’s defensive mode on, so a full-text index’s own tables and the schema stay read-only. It changes the cell only if the cell still holds, byte for byte and of the same type, the value that was read, and the row’s other values are still the ones read, since a key alone can name another row once SQLite gives a rowid out again. OR ABORT overrides a table’s own ON CONFLICT REPLACE or IGNORE, so a save never deletes another row. If anything differs, or the file is busy, nothing is written. Edit › Undo writes the old value back the same checked way. A file with no-walbeside it gets none. - Nothing else is written to an env file or a database, and nothing listens on a port.
Project services
Section titled “Project services”The Services group (Projects and git) and the provider badges on database rows open pages in your browser. They are built so that no key ends up in a link:
- Secret keys are read by name only, to find a service or build a link. A key whose name marks a secret, with a word such as
KEY,TOKEN,SECRET,PASSWORDorAUTHin it (OPENAI_API_KEY,HF_TOKEN), can say which service a project uses, but Services never reads its value, shows it, logs it, copies it or puts it in a link. The Databases group does read a database’s own password or token, to hand it to TablePlus, mysql or psql when you choose one (see Databases above); no link holds it. - Only an address, a port, a name, an id or a region is read as a value, and only from the keys a service keeps them in (
QDRANT_URL,FLASK_RUN_PORT,LANGSMITH_PROJECT). An address with a user name or password in it is dropped whole; from any other, only the scheme, host and port are kept, so a?api_key=in it is never kept. A value that refers to another, such as${HOST}or$(…), is refused. - Links are built from those names, hosts, ports and ids alone, each checked against the form it should have, into the page address Next Term has for that service. The path and any query are Next Term’s, with only those checked values in them, never copied from a project file.
- Only
httpandhttpslinks open, andhttponly to your Mac:localhost,127.0.0.1,*.localhostand*.test. A link is checked again when you click it. - Nothing is fetched or run to find a service or build its link: no command (
vercel,docker,supabase), no request and no connection. The page loads in your browser only when you click a badge or a menu item. - Services reads only the project’s own files: regular files of at most 512 KB, a symbolic link only when it stays inside the project, and never a file iCloud would first have to download. Databases, which reads the same env files for its connections, does not skip a file iCloud has to download. Outside the project, only whether Herd is installed is checked, as for Databases.
- Copy Service Name copies the service’s name, and no MCP tool reports a project’s services.
Remote tabs
Section titled “Remote tabs”A remote tab runs the system’s ssh with your own configuration, and adds rules of its own (more in Security):
- Host keys are never accepted silently. A new key is asked about in the tab, and a changed one is refused, whatever your ssh config says, for jump hosts too.
- No password is stored, and your
~/.ssh/configis never written. ssh does every login. - Nothing on a server can reach back to Next Term. Every port forward is cleared, and the MCP socket and editor links are never forwarded. Agent forwarding is as your ssh config sets it.
- Nothing is installed, except the Tab hook you allow. tmux and herdr are used only if you installed them; a few small files go in
~/.cache/next-termon the server. Tab completion lists a server’s folders and files with a script that writes nothing. Its hook for zsh goes in~/.cache/next-term/completiononly after you allow it for that server; it sends only Tab completion’s marks, under a secret that never appears on a command line, and Remove deletes it. See Tab completion on your servers. - Commands are never pieced together from text: what runs on a server is a fixed script, with every name and folder quoted.
Background fetch
Section titled “Background fetch”Next Term talks to your git remotes on a schedule, so the sidebar can say Pull 3 when someone pushes. This is exactly what it does:
- When: every 10 minutes for each repository open in a window, only while Next Term is the active app, and when you open the branch popup if the last fetch is over 5 minutes old.
- What:
git fetch --no-write-fetch-head --no-auto-maintenance --no-recurse-submodules <remote>(with--porcelaintoo on git 2.41 or later), for each remote one of your local branches tracks, and no other. It talks only to the hosts your repository already names, with your own git configuration, credential helper and ssh agent, asgit fetchin a terminal does. Submodules are not fetched (their remotes are other servers). Nothing is pushed and no other server is contacted. - What it changes: the remote-tracking branches (
origin/main) and the tags that come with them. Never your branches, your files, the index orFETCH_HEAD, and it starts nogit maintenanceorgc. - No prompts: it can’t ask for a password, a passphrase or a host key (git’s prompts, its askpass helpers and the Git Credential Manager’s window are all turned off for it). The first time a remote needs one, background fetch stops fetching that remote until a fetch you start succeeds (or until Next Term restarts).
- It holds back in Low Power Mode, on expensive or Low Data networks, and offline.
- You can see it: Git › Git Commands lists the background fetches, exactly as they would be typed, when Show background fetches is on.
- Off switch: Settings › Editor › Git › Fetch in the background: Off. Only when opening the branch popup keeps the popup’s fetch and drops the timer.
Updates
Section titled “Updates”The app’s own updater checks a release as the installer does. Downloads come only over HTTPS from GitHub. The release’s SHA-256 checksum must be signed with the Next Term release key and name that version’s disk image, and the download must match it. The app inside must be Next Term at the expected version, with an intact code signature, before it replaces anything. A copy signed with the release certificate takes only an update signed with the same certificate. A release changed on GitHub is refused. See Updates.
Sessions kept for an update or a quit
Section titled “Sessions kept for an update or a quit”To bring your tabs back after an update, a quit under Resume where I left off or a crash (What comes back), Next Term keeps a few files on your Mac. None of them leaves it.
- Where:
~/Library/Application Support/Next Term/sessions-<key>.noindex, one folder for each copy of the app, named for the place it is installed. - Private: only you can open the folder (mode
0700, with no access list) or its files (0600), and a link planted at one of their names is never followed. The folder is excluded from Time Machine backups, and its.noindexending keeps Spotlight out. - The session:
state-v1.jsonholds your windows and where they were, their projects, tabs and splits, each tab’s folder and the title you gave it (never a title a program set), its last command line and exit code, a remote tab’s server and its tmux or herdr session, and for an agent its conversation id, folder and program path, the options it ran with and their values (never your prompt’s words), the alias or command you typed to start it when that passes its words on, the permission options your typed line showed, and its version when its install path names it. When one of an agent’s options looks like it holds a secret, none of them is written. Next Term saves it every 2 seconds while something changes, and at quit. While it runs, it keeps the save before asstate-v1.json.prev, removed once the quit’s save is on disk. A quit under Show the Welcome window leaves it with no tabs in it. - Scrollback: one file per tab, written only at an update quit with Reopen windows and resume sessions after the update checked, or a quit under Resume where I left off, and only while Keep scrollback is on in Settings › General. An agent’s pane keeps only what came before the agent started.
- How long: the next launch reads each scrollback file and deletes it as it reads it, and a launch that brings nothing back deletes them unread. So scrollback saved at a quit stays on disk, in this folder, until Next Term next opens.
- The rest: small files for an update and its restore: the update’s marker, the install’s result, and a count of restore tries; and
routing-key, a random key that lets Next Term compare an agent’s provider and settings variables with your login shell’s as digests, never as values.
Secrets are kept out on a best-effort basis:
- A command line that looks like it holds a secret is never written: a variable such as
PGPASSWORD=…orAPI_KEY=…,--password,--tokenor--api-keywith a value,mysql -p…,curl -u, anAuthorization:header, a password in a URL, or a known token format. Its echo is blanked in the saved scrollback, and its tab comes back with “The last command was not kept, because it looked like it held a secret.” - In the scrollback, secrets of those kinds are masked as
•••wherever they appear, across wrapped lines too. A secret a program prints in a shape of its own can be missed: turn Keep scrollback off if your terminals show such output. - Shell history settings don’t apply here: command lines are saved even when your shell keeps no history. Start a command with a space to keep it out, as zsh’s
HIST_IGNORE_SPACEdoes.
What else holds:
- Read as untrusted. Each file is checked before it is read: a plain file of yours, open to no one else, and not too large. What goes back into a terminal (scrollback, notes, folder names) is stripped of control characters, so it can’t send escape sequences.
- Only your click resumes an agent. A session file alone never makes an agent run: Claude Code, Codex and Qwen Code resume by themselves only after your click on the update sheet or the quit dialog, and only when their checks pass. No setting, file or MCP tool can stand in for that click, and a crash never resumes an agent.
- A permission bypass is never restored silently. An automatic resume carries a permission option such as
--dangerously-skip-permissionsonly when both what you typed, or your alias’s expansion, and the running agent show it, and its note names each one it carried. A program can change how it looks to have been started, so an option that only the running agent shows sends it to the prompt line, unrun, where it runs only when you press Return. - One Next Term at a time. A second Next Term started from the same place while the first runs keeps no session.
- Deleting the folder is safe while Next Term is closed: you lose only what would have come back.
The installer
Section titled “The installer”The one-line installer (curl -fsSL https://nxtrm.mishuk.me/install.sh | bash) downloads the disk image and its checksum from GitHub over HTTPS, and installs only when:
- the checksum is signed with the Next Term release key. The key’s private half never leaves the maintainer’s Mac, so a release changed on GitHub is refused;
- the download matches that checksum;
- the disk image holds Next Term at that version, with an intact code signature, checked again after the copy;
- “latest” is not older than this site’s version, so an older signed release cannot be passed off as the newest.
It never uses sudo and never replaces a Next Term that is running. Besides the app, it adds at most the nxtrm command: a link in a folder already on your PATH that you can write (see The nxtrm command). It never changes your PATH, and never replaces anyone else’s nxtrm. Read the script before you run it, if you like.
Agent updates
Section titled “Agent updates”Settings › Agents lists your coding agents and can update them. This is exactly what it runs and reads:
- What it reads. Your login shell’s PATH, and for each agent the file each copy links to and the files beside it: a version folder’s name, Homebrew’s folder and install receipt, a package’s
package.json, a Python tool’s.dist-infofolder. It reads no agent’s settings, such as~/.claudeor~/.codex, and changes none. - What it runs to read a version. Only when those files say nothing, the program’s
--version(Amp’sversion), with no input,DISABLE_AUTOUPDATER=1and 3 seconds at most. Never Copilot CLI, whoseversionchecks the network. - What it checks before an update. Whether a tab runs that agent, and the command lines of your own processes, so an update never pulls the files from under a running agent.
- What it runs to update. The exact command the section shows, and nothing else: the package manager that installed the copy (
npm install -g <package>@latest,brew upgrade <formula>and the like) or the agent’s own update command. Update Now runs it in a tab you see. A schedule runs it in the background with/bin/sh, your login shell’s PATH, a clean environment, no input andNONINTERACTIVE=1, for 10 minutes at most. Every schedule is Off until you pick one. - What it never does. It never uses
sudo, and updates nothing when it runs as root. A copy in a folder you can’t write, a temporary npx copy, or one installed some unknown way gets a note, never a command. A package name read from a folder goes into a command only when it is plain letters, digits and@ / . _ + -. Install… types an agent’s official installer in a new tab and never runs it: you press Return. - What it keeps. Your schedules, the last try of each, and the latest versions it was told, in Next Term’s preferences. A log of each scheduled update in
~/Library/Application Support/Next Term/Agent Updates, cut to its last 128 KB once it passes 512 KB.
Network requests. Only to read the latest versions, over HTTPS, from npm’s registry (registry.npmjs.org), Homebrew’s formulae.brew.sh, PyPI (pypi.org), GitHub’s API for a repository’s latest release (api.github.com) and Claude Code’s release channel (downloads.claude.ai). It asks only when you open Settings › Agents or a scheduled update is due, and each source at most once a day; Check for Updates asks again at once. Each request names a public package, with NextTerm as its User-Agent, and nothing about you or your other agents. list_agent_clis asks nothing. The update command itself talks to wherever that package manager or agent goes.
Skills from GitHub
Section titled “Skills from GitHub”Window › Skills installs agent skills from public GitHub repositories. A skill is instructions and sometimes scripts that your agents follow, so nothing is written until you have seen it:
- One commit, checked. Next Term fetches one commit and compares every skill folder with the git tree hash GitHub lists for it. Files that differ are refused.
- A review before anything is written. You see every file as written, with hidden characters spelled out and HTML comments shown, plus what the skill may do (pre-approved tools, hooks, shell lines, the MCP servers it names, and what a plugin starts by itself) and anything that looks risky. Install has no Return key, so a keystroke meant for a terminal never installs anything.
- Plugins and extensions are named. A skill folder can also be a plugin or extension for Claude Code, Codex, Cursor, Copilot, Gemini CLI, Qwen Code, Junie or Kiro, or an Agent Plugins package. The review says so. For a Claude Code plugin, it says what Claude Code would start by itself, without asking you, once the folder is linked into
~/.claude/skills: MCP servers, hooks, monitors and language servers. It also counts the programs in the plugin’sbin/folder, which Claude Code’s shell can run by name, and flags one named like a common command such asgit: it runs wherever that command is not installed. A file Next Term can’t read counts as one that runs. For other agents, the review lists the MCP servers and hooks a manifest declares, and says it did not check them. (In a test in October 2026, Codex did not start the servers a skill folder’s Codex plugin declares.) Next Term only reads these files: it never runs them, or an agent, to find out. - A Claude Code plugin that brings more than its skill is left out of Claude Code. By default, such a skill folder is installed without its link in
~/.claude/skills, so Claude Code does not load it. Codex and the other agents that read~/.agents/skillsstill find its skill.- The choice. In place of the checkbox for Claude Code’s link, the review offers “Leave it out of Claude Code” or “Add it to Claude Code as a plugin”. Before you click Install, the line beside that choice says what each plugin would start every time Claude Code opens. The review lists those parts, each with what it is: MCP servers, hooks, monitors, language servers and the programs in
bin/, then the commands, agents and skills it also brings. - What is linked as before. A plugin that brings nothing beyond its own skill (only the manifest keys Next Term allows, and no other parts) is linked as before, unless its name meets a plugin you have.
- Updates. An update keeps an existing link while the plugin declares the same parts as the copy you have, byte for byte, its MCP bundles and the programs in
bin/included. When they change, the review picks “Remove it from Claude Code”, so the new parts start only if you add the plugin again. Undo puts the link back. - Settings › Skills. Link for Claude Code asks the same question before it links such a folder, with what it would start (or what else it brings), “Add with Its Programs” or “Add as Plugin”, and Cancel. Unify offers the same choice when the copy it keeps is such a plugin, and says Claude Code loses the skill if you leave it out. If the folder or your Claude Code plugins change before the link is made, nothing is linked.
- Plugins you already have. The review names a plugin you have under the same name, or one that looks like it. One synced from claude.ai would be replaced by the folder in Claude Code sessions. One installed from a marketplace for you is the one Claude Code keeps, so the folder’s parts don’t start. One installed for a project is kept in that project only, and elsewhere Claude Code loads the folder as a plugin. Another skill folder with the same plugin name is named too.
- A linked
~/.claude/skills. If your~/.claude/skillsis a link to~/.agents/skills, Claude Code reads every shared skill there itself, so Next Term can’t leave a plugin out. The review says so, with what the plugin starts. - Settings. Next Term changes no agent’s settings for a skill,
~/.claude/settings.jsonincluded. Of Claude Code’s settings files it reads only that one, so a project’s or your organization’s Claude Code settings can turn a plugin on or off without the review knowing. To keep a plugin off, turn it off in Claude Code’s/plugin: Claude Code then loads nothing from the folder, not even its skill, and Settings › Skills shows Claude Code as “off”. npx skills updatelinks a skill for Claude Code again, so a plugin left out here can come back that way.
- The choice. In place of the checkbox for Claude Code’s link, the review offers “Leave it out of Claude Code” or “Add it to Claude Code as a plugin”. Before you click Install, the line beside that choice says what each plugin would start every time Claude Code opens. The review lists those parts, each with what it is: MCP servers, hooks, monitors, language servers and the programs in
- MCP servers a skill brings. The review’s “Needs MCP servers” row names the MCP servers a skill brings for Claude Code, Codex and Amp, and when each of them adds or starts them, as of October 2026. Claude Code starts its plugin’s servers every time it opens, once you add the plugin, unless a plugin of the same name installed for you takes its place. Codex offers to add the servers in a skill’s
agents/openai.yamlto~/.codex/config.tomlwhen you name the skill ($name) in Codex itself (its CLI, IDE extension or app), and adds them without asking if you let Codex work without asking and with full access. The review shows the table Codex would add, or says the server is in your Codex config already, or that Codex would keep your own server of that name. Amp connects to the MCP servers in a skill’s front matter, or in anmcp.jsonbeside itsSKILL.md, as soon as it finds the skill, and starts any program among them; the review warns about each server that runs a program. A server entry Next Term can’t read is flagged, and so is YAML in the front matter that could hold keys the review doesn’t show. Next Term adds, starts, registers and removes none of these servers. - Commands and files that add MCP servers are flagged. The review warns about a command that adds an MCP server to an agent, such as
codex mcp addorclaude mcp add, or installs a plugin or extension. It warns about MCP server settings (mcpServers, or[mcp_servers]for Codex) in a file the review doesn’t already list as declaring servers, since an agent may copy them into its own settings. A server that runs a package throughnpx,bunx,pnpm dlx,yarn dlxoruvxwithout an exact version is flagged, in a JSON file or in JSON quoted in the text:@latest,@nextand ranges such as@^1count as no version, because the agent fetches whatever version is current each time it starts the server. An MCP bundle (.mcpbor.dxt) in the folder is flagged as a packed server whose contents the review can’t show, and a link to one as a server fetched from outside the commit. - Never updated on its own. An update is a new commit, reviewed like an install, with the changes shown.
- One shared copy, with Undo. A skill goes to
~/.agents/skills, linked for Claude Code if you want. Copies it replaces go to the Trash, and Undo puts them back. OpenCode’s own skill folders are never changed: a copy of the skill there stays, and the install, Unify or Remove says so. Undo refuses, changing nothing, if anything changed since. - Every agent that loads it is named. The review lists the agents that load a skill from
~/.agents/skillsif you use them, as of October 2026. Codex, Command Code, Gemini CLI, Qwen Code, Cursor, OpenCode, Copilot CLI, Amp, Junie and goose read that folder themselves, and Claude Code reads the skill through its link in~/.claude/skills. Amp, Cursor, OpenCode and goose read~/.claude/skillstoo, so they also find the skill through that link. Leaving a skill out of Claude Code doesn’t keep it from the others. - Removing a skill names what may stay. Remove takes the skill’s shared copy and the links to it. It also names what may outlive the skill in other apps, and changes none of it. Codex offers to add the MCP servers named in a skill’s
agents/openai.yamlto~/.codex/config.toml, so a server there with the same address is named as one Codex may have added for the skill. It stays, since you may use it for other things: remove it there if you don’t. The MCP servers, hooks and monitors its Claude Code plugin started, and Amp’s servers for it, keep running in sessions that are open now, until they restart. A"<name>@skills-dir": falseyou set in Claude Code’s/pluginstays in~/.claude/settings.json, and keeps any later folder with that plugin name off. Next Term reads~/.claudeand~/.codexin your home folder: aCLAUDE_CONFIG_DIRorCODEX_HOMEset elsewhere is not followed. - Projects are never changed. Settings › Skills › Project shows a project’s skills without writing to them.
- Next Term writes no skill of its own. Its skills,
next-term-tabs,next-term-worktreesandnext-term-setup, are in the app, and agents in its tabs read them over MCP (get_skill). Settings › Editor turnsnext-term-tabsoff, turning agent control off takes all three out, and View Instructions in Settings › Skills › Project shows each one’s text. The Featured list holds only names, places and the commit that was looked at.
The release certificate
Section titled “The release certificate”From 0.11.14, releases are signed with Next Term’s own code-signing certificate, Next Term Release Signing. macOS keeps what you allowed (a folder, the camera, the microphone, controlling another app) for that certificate rather than for one build, so your answers carry over from one update to the next. Before, each build was signed ad hoc and macOS could ask again after every update.
- The first update to a signed release may ask once more for each folder or device you had allowed. If you turned on Full Disk Access for Next Term, remove it from that list in System Settings → Privacy & Security and add it again, once.
- On a Mac without a Secure Enclave, where Secrets keeps its key in the login keychain, macOS still asks for your login keychain password the first time Secrets opens after each update.
- It is not Apple’s: the certificate is self-signed and nothing is notarized, so the first launch of a disk image still needs Open Anyway. The release key that signs each release’s checksum is a separate key and hasn’t changed.
The first launch warning
Section titled “The first launch warning”Next Term is not notarized by Apple, which is why macOS asks you to allow the first launch of a disk image downloaded in a browser. The source is public, and releases are built from it by GitHub Actions. Each release ships a .sha256 file so you can check the download yourself first; see Check the download. With the one-line installer, which checks the signed checksum for you, macOS does not ask.
Report a problem
Section titled “Report a problem”Found a security issue? Please report it through the repository’s Security page on GitHub rather than in a public issue, so it can be fixed before it is widely known.
