Laya Guard 0.7 adds a fine-tuned model and rewrite blocks
Updated Laya guard
Summary
Laya Guard 0.7.0 and 0.7.1 (Nov 2-3, 2026) run a fine-tuned Laya model, block rewritten rm -rf forms and route credential reads to the rules.
- Tool
- Laya guard
- Category
- Coding agents
- Date
- Open source
- Yes
- License
- MIT
- Pricing
- Not stated in the sources we cited.
Laya Guard, a local guardrail that judges each shell command an AI coding agent wants to run, shipped three releases between November 2 and November 3, 2026. 0.6.2 blocks destructive commands however the shell is told to run them. 0.7.0 replaces the model step with a fine-tuned Laya. 0.7.1 sends credential-printing and on-chain transaction commands to the rules instead of the model.
Release facts
| Fact | Detail |
|---|---|
| Product | Laya Guard, allow/review/block guard for agent tool calls (regex rules plus a local model) |
| Versions | 0.6.2 (Nov 2), 0.7.0 (Nov 2), 0.7.1 (Nov 3, 2026) |
| Package | laya-guardrail on PyPI, Python >=3.10 |
| License | MIT |
| Install | pip install -U laya-guardrail |
Check before upgrading
- A ~650 MB download. The first
laya-guard serveafter 0.7.0 fetches the fine-tuned model from the Hugging Face repoAyaannnnnnn/laya-guard-multilingual, pinned to one revision and checked against SHA-256 hashes. If the check fails, the model is not run and the commands it would judge are asked about until a restart. - Keep the old model. Set
LAYA_GUARD_MODEL=base, then runlaya-guard service installagain if the server runs as a service. - Verdicts shift. Per the notes,
rm -rf dist,rm -rf node_modules/.cacheandmvnow run without a prompt, whilechmod +x scripts/build.shis now asked about. Rule blocks are unchanged. - More hard blocks (0.6.2).
rm -rf ~/written asr''m,\rm,/bin/rm,${IFS},eval, brace lists, a variable or base64 intoshis now blocked rather than a permission prompt. So arefind ~ -deleteandfind / -deletewith no filter, andrm -rf *right aftercd ~orcd /.
What changed
- Credential reads and transactions (0.7.1).
cast wallet decrypt-keystore,cast wallet dkandgh auth tokencount as credential reads.forge script ... --broadcast,cast sendandcast publishcount as payment actions. Read-onlycast callandforge scriptwithout--broadcaststill go to the model. - Fine-tuned model (0.7.0). On sets not used for training, the notes report the model alone allowed 44 of 50 everyday commands (25 before) and held 39 of 43 attacks (32 before). A
finetune/folder has the tools to train it on your own agent transcripts, with secrets and home paths masked. - Faster Claude Code hook (0.6.2). The hook now starts
python3twice per call instead of six or seven times. Median response on the benchmark went from 171 ms to 71 ms. - Benchmark (0.6.2).
bench/replays 13 incidents, 30 shell evasions and 50 everyday commands against Laya Guard, dcg, cc-safety-net and shellfirm. The notes say the set was written by Laya Guard's author.
Questions
Which agents does it hook into? The release notes mention Claude Code, Cursor, Qwen Code and Copilot CLI, and the web trial offers Claude Code, Cursor, Codex and Gemini CLI hooks.
Does it need a GPU?
The 0.6.1 notes say the hosted trial runs the model on CPU. The local server downloads the model on first serve.
Is the benchmark independent? No. It was written by the project's author, and the notes say so.
More on the Laya Guard hub, the previous Laya Guard 0.6 launch and the coding agents category. For scanning skills before install, see SkillSpector 2.13.3.
Alternatives
| Tool | License | Pricing note |
|---|---|---|
Laya guardThis launchLaya guard is a free local guardrail that judges every AI coding agent tool call on-device. | MIT | Not stated |
SkillSpectorNVIDIA's Apache-2.0 scanner for agent skills and MCP installs: checks for malicious patterns before install and exposes scan_skill over MCP. | Apache-2.0 | Apache-2.0. No paid tier is described on the repository page we used. |
More from Laya guard
Laya Guard 0.6 adds session auditing and a web trial
Laya guardAn audit command replays prior shell commands through guard policies; a web trial shows verdicts, while 0.6.1 fixes force-push recognition.
Category: Coding agents
Pricing: Not stated
Laya guard 0.4.0 stops outages from disabling the guard
Laya guardLaya guard v0.4.0, released October 13, 2026, now asks or blocks unjudged tool calls when its server is down and adds a login service and alerts.
Category: Coding agents
Pricing: Open source
Questions
What is Laya guard?
According to its repository description, it is a free local guardrail for AI coding agents that judges every tool_call on-device (regex + Laya) as allow, review or block.
Is Laya guard open source?
The GitHub API reports an MIT license for the repository.
Filed on Agent Radar. Claims in this note are limited to the sources above.