Stroq - Local audit and guard for AI coding agent sessions
Show HN: Stroq – a local audit of what your coding agent did and why

Stroq is an open-source local security platform for AI coding agents like Claude Code, Cursor, and Codex CLI. It reads your last 30 days of sessions to show how many commands came from text your agent read and which keys left your machine—printing key names, never values. Hooks then judge every tool call before it runs, denying curl | sh and outbound calls carrying known secrets, and asking first when a command repeats text the agent read. No account, no telemetry, nothing sent. Run npx @stroq/cli to get your own session card, or replay old sessions without installing anything.
Stroq reads your own Claude Code and Codex sessions and shows how many commands came from text your agent read, and which keys left your machine.
- chanux
Could this be used with Agent Safe house? https://agent-safehouse.dev/
- maven29
You could cover a lot more adversarial scenarios with an ebpf backend. It needs linux, but with all the patches going around, you should be doing all your dev in a VM anyway.
- philips
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.
- lhk931122
Doing it with a high-performance LLM would be best, but I think the token and time cost would be big, and just doing it code-based seems like it could work to some extent. But later, if LLM alignment gets good, it might not even be needed.
- bill10
Interesting. How does it know: rule based, small model, or LLM? Anyway, like the mascot