@mattersec/matt
v0.1.65
Published
matt — AI agent telemetry for developer machines
Readme
@mattersec/matt
AI agent telemetry collector for developer machines. Monitors Claude Code, Cursor, and Codex hooks, captures events, forwards to the Mattersec security intelligence dashboard.
Install
npm install -g @mattersec/mattInstallation notes
On POSIX platforms the postinstall step replaces the JS shim with a direct symlink to the native binary so matt invocations skip Node cold-start entirely. If you install with npm install -g --ignore-scripts (common in locked-down corporate npm environments), the optimize step is skipped and every invocation pays ~30 ms of Node startup overhead. Functionally correct, just slower. To apply the optimization after an --ignore-scripts install:
node "$(npm root -g)/@mattersec/matt/install.js"Quickstart
Easiest path: visit app.mattersec.com, sign up, and follow the install wizard. It hands you a one-time npx @mattersec/matt link --token=… command that authenticates this machine and then asks before it does anything else: whether to install hooks for the AI tools it finds, which repositories should report, and whether to import history from before you installed it (default: no).
If you'd rather drive each step manually:
matt auth login # device-code flow
matt install-hooks claude-code # install hooks
matt start # register background service + start daemon
matt statusUninstall
Because npm has no preuninstall hook, run the service cleanup explicitly before removing the package:
matt uninstall-service
npm uninstall -g @mattersec/mattCommands
| Command | Purpose |
|---|---|
| matt start | Register service + start daemon |
| matt stop | Stop daemon (service registration stays) |
| matt status | Print daemon / auth / events status |
| matt auth login/logout/status/whoami | Auth subcommands |
| matt install-hooks <tool> | Install hooks for claude-code, cursor, or codex |
| matt uninstall-hooks <tool> | Remove hooks |
| matt check | Hook installation status |
| matt buffer list/flush/clear | Manage the encrypted event buffer |
| matt backfill --dry-run | Preview which past sessions would be imported — writes nothing |
| matt backfill | Import past sessions. Never runs on its own; you have to ask |
| matt allow <path> | Report activity from a repository (the default; also undoes a matt deny). --under covers every repo beneath a directory; --tier t0\|t1\|t2 sets how much content leaves |
| matt deny <path> | Stop reporting a repository or path — for every checkout and worktree, in every session, from the moment you type it. Guard keeps running there |
| matt policy reset | Empty the consent store and start over — every repository reports by default again |
| matt quiet <path> | Hide Guard advisories for a path without changing what is reported. --off to undo |
| matt receipts | Every consent change on record |
| matt telemetry off\|on | Switch PostHog error reports off or on for this machine. Mattersec reporting is unaffected. Reaches a service-launched daemon, which MATT_NO_TELEMETRY / DO_NOT_TRACK do not |
| matt dashboard | Open Mattersec dashboard in browser |
| matt update | Update via npm registry |
| matt uninstall-service | Remove service registration |
Stopping reporting for one session
It is not a terminal command — the verb still exists, hidden from --help, because /matt off shells out to it, but nothing here teaches you to type it in a shell. Type matt off in your agent, as an ordinary chat message — matt's prompt-submit hook sees it in Claude Code, Codex, Cursor and Windsurf alike and stops that session reporting. On Claude Code, /matt off does the same thing. matt on (or /matt on) turns it back on.
It covers that one session and nothing else: a second editor window in the same checkout is never affected. It outlives the editor — closing the editor does not turn it back on, and claude --resume or --continue keeps the session id, so it comes back still off. /clear, /rewind or picking another conversation in the editor starts a new session that reports until you type matt off there too.
For a repository that should never report, use matt deny <path> — that one is a terminal command, directory-scoped and durable: every repository reports by default, and matt deny stops one immediately, for every checkout, worktree and session, until matt allow reverses it. Either way only reporting changes; local checks, where they run, are untouched.
License
Proprietary — © Mattersec Labs.
