Show HN: Stroq – a local audit of what your coding agent did and why
Stroq is a local security tool for AI coding agents that audits session transcripts, intercepts tool calls to block dangerous commands, and detects leaked secrets.
summary is enough The README clearly outlines the tool commands and architecture, making a full read unnecessary unless you plan to install and test it locally.
summary
Stroq reads local logs from coding agents like Claude Code and Cursor to audit past actions and secure future sessions. It relies on text-level matching rules rather than an LLM to intercept tool calls, flag known secrets sent over the network, and prompt users before executing risky commands. The entire platform operates locally with no account creation or external telemetry.
key points
- Hooks intercept tool calls before execution to block dangerous commands or outbound requests containing local secrets like API keys.
- The tool operates entirely offline with zero telemetry or account requirements, storing cache data locally under the home directory.
- Session replay features allow auditing past activity from the last 30 days even on transcripts created before Stroq was installed.
who should read it
Software developers who use AI coding assistants and want to audit or restrict their local machine access.
discussion positive
consensus
Commenters discuss the architectural limits of agent-harness filters, noting that tool-level auditing can arrive too late if a malicious command executes before being caught.
pushback
Some commenters argue that relying on auditing or application-level filters is insufficient, advocating instead for strict OS-level isolation like containers or gVisor.
I have been working on putting agents into full gVisor isolation with a default deny egress proxy that includes secret injections. When an agent tries to connect outbound, by default it suspends the gVisor, holds the proxy connection open, and lets the user choose.
I am adding external judges now. But, there is a hypervisor key you press to deny/allow hosts without switching terminals.
I just can't get behind relying on the harness tool boundry to protect me.
A commenter shares an alternative approach using full gVisor isolation and default-deny egress proxies to protect against agent risks.
Generated by an LLM from the article and thread. Check the sources before relying on it.