r/devtools • u/samc621 • 3h ago
We built open-source guardrails for coding agents. Looking for feedback from devs using Claude Code, Cursor or Codex.
Hey folks, I’m Sam, founder of AgentTrail.
We built AgentTrail Guard to catch risky actions before a coding agent runs them. I’d love some feedback from people using these agents day to day.
The tricky part is deciding when to get in the way. A destructive database command might be exactly what you intended in one project and a terrible idea in another. If a guardrail keeps interrupting legitimate work, you’re probably going to turn it off.
Guard hooks into Claude Code, Cursor and Codex CLI and checks supported commands and file paths against rules you can inspect and change. Depending on the rule and agent, it can block, ask for approval, or log a warning. It’s free, open source and runs locally. No account needed.
It only checks actions that reach its hooks, and it doesn’t inspect file contents, so it has blind spots.
A few things I’d like to hear:
- What has your coding agent done that you wish you’d caught earlier?
- Do your existing permissions or custom hooks already handle this well?
- If you try Guard, where does it get in your way or miss something?
You can scan your past sessions before setting up enforcement:
Swap claude for cursor or codex. It generates a local report of what the rules would have flagged.
Repo: https://github.com/agenttrailhq/guard
Happy to discuss the tradeoffs here. A specific “this would annoy me because…” is useful feedback too.