← Tüm rehberler
guardhook & omp-laya-judge — Ajan Güvenliği ve System-1 MCP (README)
Kodlama ajanları için çevrimdışı araç öncesi politika kapısı (guardhook) ve milisaniyelik yerel MCP yargıcı (omp-laya-judge)
guardhook — 30 Saniyede Kurulum ve Claude Code Kancası
Kodlama ajanları bir komutu çalıştırmadan önce stdin üzerinden JSON etkinliğini okur, yıkıcı komutları gerekçesiyle engeller (exit 2) ve tüm kararları JSONL olarak kaydeder.
Kurulum ve ilk politika testi
pip install git+https://github.com/F0Rextasy/guardhook.gitguardhook initecho '{"tool":"exec","cmd":"rm -rf C:\\"}' | guardhook checkguardhook replay --last 2Claude Code PreToolUse Hook Yapılandırması
{ "hooks": { "PreToolUse": [ { "matcher": "Bash", "hooks": [{ "type": "command", "command": "guardhook check" }] } ] }}| Kural | Engellenen Desen | İzin Verilen Örnek |
|---|---|---|
| fs.destructive | rm -rf, rmdir /s, Remove-Item -Recurse -Force | rm file.txt |
| git.push_force | git push --force / -f | git push --force-with-lease |
| net.pipe_exec | (curl|wget) ... | (sh|bash|powershell|irm) | curl https://x.sh -o out |
omp-laya-judge — Sıfır Tokenli Yerel System-1 Karar Yargıcı
oh-my-pi için CPU üzerinde ortalama 402ms (p50 238ms) sürede sıfır LLM tokeni harcayarak tip güvenli (choice/bool/score) kararlar veren yerel MCP yan sunucusu.
Benchmark ve doğrulama komutları
git clone https://github.com/F0Rextasy/omp-laya-judge.gitcd omp-laya-judgepython benchmark/run.pypython benchmark/calibrate.py| Metrik | LLM judge() | omp-laya-judge (CPU) |
|---|---|---|
| Soru Başına Gecikme | 18.4s (16-25s) | Ortalama 402ms (p50 238ms) |
| Harcanan Token | 728 token / soru | 0 token |
| 12-Vaka Doğruluğu | Referans | 10/12 (%0 hatalı otomatik onay) |