terminal-commander
v0.5.7
Published
Terminal Commander: local MCP-operated terminal/file signal channel with native Linux and Windows packages.
Maintainers
Readme
terminal-commander
npm root wrapper for Terminal Commander, a local MCP control plane for coding agents.
Install
npm install -g terminal-commander@latestnpm install outside CI attempts guarded setup for detected harnesses.
CI and TC_NO_AUTO_SETUP=1 skip auto-setup.
Configure or repair harnesses explicitly:
terminal-commander setup harnessInteractive setup offers Code Mode, MCP full, and MCP compact. Enter selects
Code Mode. Use --surface to make scripts select a specific surface.
Or target one provider:
terminal-commander setup harness --provider cursor
terminal-commander setup harness --provider codex-cli
terminal-commander setup harness --provider omp
terminal-commander setup harness --provider claude-code
terminal-commander setup harness --provider claude-desktop
terminal-commander setup harness --provider gemini
terminal-commander setup harness --provider grok
terminal-commander setup harness --provider kilo-codeExplicit provider selection also works before the harness creates a config
file. Add --project <absolute-project-path> for project scope; Claude Desktop
supports global configuration only. Grok Bot installations using Cursor should
select cursor; grok selects Grok CLI.
Setup refreshes the complete launch command and arguments while retaining
existing policy fields, custom environment values, and unrelated servers.
Native launches use an absolute executable path and empty arguments. If no
usable native adapter resolves, bootstrap defers registration without changing
the configuration. Changed configs receive
timestamped backups. Kilo uses its modern mcp/argv-array format; JSONC writes
normalize formatting and remove comments.
See the harness configuration reference for Windows, Linux, WSL, and cloud-host paths, discovery, and reload steps.
Update
terminal-commander updateThis runs npm install -g terminal-commander@latest.
At a terminal, update offers the same surface picker and Enter selects Code
Mode. Agents and scripts can pass --surface code|mcp-full|mcp-compact.
Unattended update with no flag keeps the configured surface. The command
prints the installed version and reminds you to restart agent sessions, whose
adapters the update stops.
If only the daemon restarts and the package version stays the same, an
already-open Code Mode adapter can serve the next call on its existing
connection. This was verified with v0.5.6 on Windows x64 and Linux x64
under WSL. A previous job can return a reconstructed status if its exit
receipt survived. A job whose exit was never recorded returns JobLost.
A running v0.5.5 adapter rejects work with daemon_version_skew after
the daemon is replaced by v0.5.6, even when both negotiate the same MCP
revision. Restart the agent session so it launches the v0.5.6 adapter
alongside the v0.5.6 daemon. In the same check, the old adapter made zero
writes and the fresh adapter completed one write.
On Windows, update first runs a native scoped lock preflight. It asks matching
daemons to exit, then terminates Terminal Commander binaries still running from
the installed package. If one cannot be stopped, update stops and the installed
version is unchanged. It does not invoke cmd.exe, PowerShell, taskkill, or
downloaded scripts.
Commands
| Binary | Role |
| --- | --- |
| terminal-commander | Admin CLI: version, update, setup, doctor, native diagnostics |
| terminal-commander-mcp | MCP stdio adapter launched by the LLM harness |
| terminal-commanderd | Local daemon for IPC, probes, policy, buckets, and audit |
LLM Trust Contract
Code Mode is the default MCP surface. It exposes code_search, code_execute,
and status. Use terminal-commander setup harness --surface code to refresh
detected clients with an explicit Code Mode setting.
In Code Mode, code_search lists operation signatures without a live daemon.
Call status to check daemon reachability, then invoke system_discover
through code_execute for live capabilities and execution routes.
The admin CLI also refuses fake offline success. Daemon-backed inspection
commands that are not wired to live daemon IPC exit 69 with an unavailable
message instead of returning empty or not-found success.
Platform Packages
Optional platform dependencies:
@terminal-commander/linux-x64@terminal-commander/linux-arm64@terminal-commander/windows-x64
Windows uses the native @terminal-commander/windows-x64 package by default.
The legacy Windows-to-WSL bridge is opt-in with TC_USE_LEGACY_WSL_BRIDGE=1.
Build Provenance
The platform packages supply prebuilt binaries. Source builds use the workspace toolchain pin.
Documentation
When a harness provides both native tools and Terminal Commander, the MCP adapter guides agents to run known fast, local work directly and use TC for supervision or bounded output. See the tool steering guide for the project routing table and Windows and WSL benchmark results.
Full README, architecture diagrams, and integration guides:
https://github.com/special-place-ai-heaven/terminal-commander/blob/main/README.md
License
PolyForm-Noncommercial-1.0.0
