تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

vigil

بواسطة robinoppenstam

Git & GitHub
729التنزيلات وفق ما يذكره clawskills.sh
0المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

AI agent safety guardrails for tool calls.

الوصف

ما الذي تفعله هذه المهارة

Vigil validates AI agent tool calls before they execute, blocking operations like destructive shell commands, SSRF, SQL injection, path traversal, and credential leaks. It runs as a drop-in npm package with 22 rules, zero runtime dependencies, and under 2ms latency per check.

Zero runtime dependencies and sub-2ms latency mean it can run inline on every tool call without adding measurable overhead to the agent pipeline.

متى تستخدمها

  • Blocking rm -rf commands issued by autonomous agents
  • Preventing SSRF in agent-driven API and HTTP calls
  • Catching SQL injection before a database tool executes
  • Auditing all tool calls made by a shell-executing agent
  • Adding a safety layer to an existing MCP server

مثال على سير العمل

الإدخال

User asks: validate a shell command before my agent runs it

الوكيل
  1. 1

    Import checkAction from vigil-agent-safety

  2. 2

    Pass the tool name and params object to checkAction

  3. 3

    Receive a decision (ALLOW, BLOCK, or ESCALATE) with a reason string

  4. 4

    Block execution or proceed based on the returned decision

الإخراج

BLOCK: Destructive command pattern — the rm -rf / call is rejected before execution

المتطلبات

  • vigil-agent-safety npm package

التثبيت

clawhub install robinoppenstam/vigil

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط