trs

Supported AI agents

Eighteen AI coding agents are supported end-to-end. Each row lists the install method, which sides of the loop trs touches (input / output), how trs stats --by-agent labels runs from that agent, and the install scope.

Agent Install method Input hook (rewrite) Output-saver Attribution label Scope
Claude Code programmatic hook ✓ ✓ (@import) claude global + project
Gemini CLI programmatic hook ✓ ✓ (@import) gemini global + project
Cursor programmatic hook ✓ ✓ (local plugin) cursor global + project
OpenCode plugin template ✓ ✓ (inline block) opencode global
Kilo Code plugin template ✓ ✓ (inline block) kilo global
Pi Coding Agent programmatic hook (extension) ✓ — pi global + project
Factory Droid programmatic hook ✓ ✓ (inline block) droid global + project
Antigravity IDE rules file only (see research notes) — ✓ (@import) antigravity (env fallback) global
Antigravity CLI (agy) rules file only (see research notes) — ✓ (@import) antigravity (env fallback) global
Codex CLI programmatic hook (codex-cli ≥ 0.134), rules fallback ✓ (≥ 0.134) ✓ (inline block) codex (fallback (untagged)) global + project
Devin Desktop rules file only — ✓ (inline block) (untagged) global + project
Devin CLI programmatic hook ✓ — devin-cli global + project
VS Code Copilot / Copilot CLI programmatic hook ✓ ✓ vscode / copilot-cli global + project
OpenClaw plugin template ✓ ✓ (unverified) openclaw global
Hermes plugin template ✓ — hermes global
Trae programmatic hook (unverified) ✓ — trae global + project
Mistral Vibe programmatic hook (unverified) ✓ — vibe global
Zed (Agent Panel) rules file only (AGENTS.md) — — (untagged); ACP external agents show their own label project

Column legend

Per-agent detail

Claude Code

Gemini CLI

Cursor

OpenCode

Kilo Code

Pi Coding Agent

Factory Droid

Antigravity IDE + Antigravity CLI (agy)

Codex CLI

Devin Desktop (ex-Windsurf)

Devin CLI

VS Code Copilot

GitHub Copilot CLI

Trae and Mistral Vibe

Both follow each agent’s published hook contract and are tested against its payload shape, but not on real binaries, so treat them as unverified.

Risk: the hook rewrites the command and leaves approval to the agent. If the agent matches its deny rules against the rewritten command, a deny rule on the original won’t fire. That is what happened on Grok Build, which is why trs never rewrites there. Check your deny rules before relying on them with these two.

Grok Build and Kiro

Output-saver only, with no trs init entry.

OpenClaw

Hermes

Zed (Agent Panel)

Install commands

trs init --show                       # who has what installed
trs init --all --global               # install for every detected agent
trs init claude --global              # single agent
trs init claude --global --replace    # migrate from rtk / token-optimizer
trs output-saver --install            # output-saver block on every detected agent
trs output-saver --remove             # clean uninstall

Before any write, trs init runs a pre-install collision check: it scans the target config (following @imports for Claude/Gemini) for existing competing compressor hooks and aborts by default. --replace scrubs the previous compressor’s hook cleanly before installing trs; --force installs alongside (risky, double-compression).

See also: