Laya guard
github.com/scs0209/laya-guard- Category
- Cybersecurity
- Rank
- No. 3982Tools index
Previous survey · No. 3853 ·
- Type
- TOOL
- Use case
- Security & Identity
- GitHub
- 41 stars
- Latest release
- v0.8.0
- Date
About
laya-guard checks each coding agent tool call locally and decides whether to approve it, send it for review, or block it. Regex policies catch known dangerous patterns first, simple commands like ls and git status skip the model, and everything else goes to a small local model that runs on a laptop CPU. Because the check is local, commands, directories, and tokens are not sent to third parties, and hooks exist for 11 agents including Claude Code, Codex, and Cursor.
At a glance
Laya Guard checks supported coding-agent tool calls using rules and a small local model. It is worth evaluating if you already use approval hooks and want to inspect how they handle commands outside an obvious deny list.
Good fit
Teams that can test the hooks in their own agent host and review what gets blocked or sent for approval.
Consider something else when
Skip it as your only containment layer or if your agent can act outside the covered hooks.
Start here
Use the documented rules-only mode on a synthetic command that should be held. Check the decision without executing the command, then test the configured hook path separately.
Cost and requirements
The MIT-licensed package requires Python 3.10 or later. Model mode adds local inference dependencies and a model download. Rules-only checks have a smaller footprint.
Limits to know
Coverage varies by host. The project documents file-tool guarding for Claude Code and separate shell coverage. Treat published examples as regression cases.
Related work
- Paveo (complement)
Sources checked 2026-11-05. Source-based assessment.
Similar tools
Tags
Tech Stack
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.