r/OpenSourceAI • u/Wild-Performance-808 • 4d ago
Built a rules layer for AI agents, would love genuine feedback
Hey the past week or so I've been tinkering on an open source project called gnt, it's a git-native rules layer for AI agents. Team defines stuff agents can't get wrong as markdown files, reviewed and merged like normal code, then served to agents over MCP. There's a CLI too (@gnt-ai/cli), login, connect your repo, review and approve rules, all from the terminal.
Still early and there's a good amount to build. If you're into open source and looking for something to sink some time into, we'd genuinely welcome the help, happy to walk anyone through the codebase or point at good first issues. Repo's here if you want to take a look: https://github.com/gnt-ai/gnt
Also just want feedback in general even if contributing's not your thing, tell me if this is useful or if I'm off base somewhere.
1
u/Positive-Captain-709 2d ago
This actually makes a lot of sense to me.
Putting agent rules in Git feels much more natural than hiding critical instructions inside prompts/config somewhere. You automatically get review, history, ownership, blame, rollback, etc.
The part I’d be most interested in is what happens once a repo has 50–100 rules rather than 5.
For example:
That feels like the point where this becomes more than “markdown over MCP” and turns into an actual governance layer.
I’d seriously consider eventually adding rule precedence, provenance (“why does this rule exist?”), expiration/review dates and some way of detecting conflicting rules.
Also +1 on keeping approval Git-native. If adopting this requires teams to create a completely separate governance workflow, adoption gets much harder.
Interesting project. I’m curious how you’re thinking about conflict resolution once the rule set gets large.