Show HN: Stroq – a local audit of what your coding agent did and why github.com ...

@show

Show HN: Stroq – a local audit of what your coding agent did and why github.com · 17 points · 3 comments · HN thread

TL;DR Stroq is an open-source (Apache-2.0) local security tool for AI coding agents such as Claude Code, Codex CLI and Cursor. Its CLI reads your last 30 days of agent sessions and key files to show which commands came from text the agent read and which API keys may have left your machine, while its hooks can block or ask about risky tool calls before they run. The project was submitted as Show HN and got little attention: 17 points and 3 comments.

  • npx @stroq/cli prints a card of your own sessions, reporting key names (never values) and which actions trace back to text the agent read; it sends nothing and needs no account.
  • npx @stroq/cli init installs hooks into the agent so it denies curl | sh and outbound calls carrying a known secret, and asks before commands that repeat text the agent read.
  • stroq sent classifies each credential found in sessions as sent to another company, maybe sent, seen by the AI, used with its own service, or blocked before it ran.
  • stroq replay checks past Claude Code sessions against the current policy, including sessions from before Stroq was installed; verdicts reflect today's policy, not what happened at the time.
  • stroq attack runs 36 known attacks in a sandbox; on version 0.30.0, 15 are denied, 21 are asked about and none pass through.
  • Limits stated by the project: matching is text-level, hooks see only what each host sends, and Stroq is a filter rather than a sandbox. The console listens only on 127.0.0.1 and changes settings only after confirmed previews.

Discussion The thread is small and mostly the author promoting the tool, with one feature suggestion from another commenter. The mood is friendly and low-key, with little critical scrutiny of the security claims.

  • Agents often run commands without anyone checking them (some): The author argues that developers rarely inspect what their AI agents execute, which motivated building Stroq as a guard against dangerous commands.
  • Wants a background menubar alert with redact and repair actions (a few): One commenter suggests a daemon that continuously scans sessions and shows a menubar alert, letting users redact, delete, repair or mark matches as false positives. The author called it a good idea.

#AIagents #security #claudeCode #codingTools #showHN #privacy