RepoGuards
github.com/yybd/repo-guards- Category
- Developer Tools
- Rank
- No. 4398Tools index
Previous survey · No. 4249 ·
- Pricing
- Open Source
- Type
- TOOL
- Use case
- Coding
- Interfaces
- Agent Skill / Plugin
- GitHub
- 2 stars
- Latest release
- v0.3.1
- Date
About
A Claude Code plugin marketplace of hooks that guard against an agent writing into a repository the session is not working in. It refuses blind commits and pushes there, injects the foreign repo's branch and open files so the agent can correct itself, honors file ownership declared in a JSON file, and includes a tool that commits only the files this session wrote.
At a glance
RepoGuards adds Claude Code hooks that inspect Git commands aimed at a different repository. It is worth trying if one session regularly crosses project boundaries and could stage files or push commits it never reviewed.
Good fit
Claude Code users coordinating changes across several local repositories with separate ownership.
Consider something else when
Skip it if you need policy enforcement for other clients or commands outside the hooked Claude Code session.
Start here
Use two throwaway Git repositories and the documented sample hook input. Check that a cross-repository push is denied and that a targeted add gets the other repository’s context.
Cost and requirements
MIT-licensed. Requires Git, Python 3.9 or later and Claude Code. Setup installs a Claude Code plugin and adds project path variables to its settings.
Limits to know
The hook checks recognized commands. A push issued from the target repository itself falls outside the cross-repository push check, so ordinary Git and hosting protections still matter.
Similar tools
Tags
Media
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.