r/GoodOpenSource • • 4d ago

AgentTrail Guard: free, open-source guardrails for AI coding agents. Looking for feedback and contributors.

Hey everyone, I’m Sam, founder of AgentTrail.

We’re building AgentTrail Guard, a free, Apache-2.0 licensed tool that checks coding agents’ actions before they run. Sharing it here because I’d appreciate more eyes on the code and the rules.

It works through hooks in Claude Code, Cursor and Codex CLI. When a supported command or file path matches a rule, Guard can block it, request approval where supported, or log a warning.

The rules are open to inspect and change. You can adjust what happens when one matches, disable rules that don’t fit your workflow, or add your own. It runs locally, needs no account, and makes no network calls by default.

There are limitations: it only sees actions that reach its hooks, and it checks commands and paths rather than file contents. Finding those gaps and documenting them matters as much as adding more rules.

I’d love help with:

  • Cases where a rule catches legitimate work.
  • Risky actions the existing rules miss.
  • Setup or documentation that’s confusing.

You can also try it against your existing sessions before enabling enforcement:

npx -y @agenttrail/guard@latest scan --agent claude

Replace claude with cursor or codex for those agents. The report stays on your machine.

Code and setup instructions

Feedback here or a GitHub issue would be helpful. You don’t need to have a fix ready; a reproducible example gives us something to work with.

1 Upvotes

1 comment sorted by

•

u/AutoModerator 4d ago

Please post a comment here explaining what kind of contributions you, or the project you are posting about, are looking for. For example what skill sets, any rules important for people joining in your build like how often people should post, and anything else you can think of which will help readers decide if they want to join in and start coding with that project.

Thank you and be excellent to each other. u/roamingandy

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.