Stroq
Find known secrets in your AI coding agent sessions (Claude Code, Codex, Cursor), then guard the next one with local hooks that trace risky commands to the cont
What is Stroq?
Find known secrets in your AI coding agent sessions (Claude Code, Codex, Cursor), then guard the next one with local hooks that trace risky commands to the content that dictated them. Open source, no telemetry.
Overview of Stroq
What it is
Stroq is a local security platform for AI coding agents such as Claude Code, Cursor, and Codex CLI. It reads your own agent sessions to show how many commands came from text the agent read and which keys left your machine. It prints key names, never values, writes a small cache under ~/.stroq, and sends nothing. No account or telemetry is required.
Key features
- Reads the last 30 days of Claude Code and Codex sessions, key files, and folders the agent worked in.
- Hooks judge every tool call before it runs, denying
curl | shand outbound calls carrying a known secret, and asking when a command repeats text the agent read. - Provides a console on
127.0.0.1that shows recorded decisions, agent hook status, skills and MCP servers, and a rules interface with preview and test. replayreads agent transcripts from before Stroq was installed, applying today's policy.sentcompares sessions with credentials on the machine, reporting where each key went (sent to another company, maybe sent, seen by AI, used with own service, blocked).attackruns 36 known attacks against the policy in a sandbox; on version 0.30.0, 15 are denied, 21 are asked about, 0 pass through.- No outbound network calls from the hooks; no telemetry.
Use cases
- Auditing past AI coding agent sessions to see if secrets were exposed or commands originated from read content.
- Preventing future sessions from executing risky commands or leaking known secrets by installing local hooks.
- Testing a policy against a set of known attacks without affecting the real environment.
- Reviewing which skills and MCP servers are connected to each agent and what rules match them.
Getting started
npx @stroq/cli
This reads your last 30 days of sessions and prints a card. For hook installation, run:
npx @stroq/cli init
Requires Node.js 22 or newer. Other commands include inspect, why, attack, uninstall, console, replay, and sent. See the repository README for full details.
License and pricing
Licensed under Apache-2.0. Open source.
Based on the project's public README and repository metadata.