agent-safety
Safety boundaries, policy enforcement and auditability for code that uses agent frameworks, tool-calling LLMs or multi-agent orchestration.
- Kind
- Rules
- Works with
- GitHub Copilot
- Source
- Awesome Copilot @ d85f762d6e52
- Path
- instructions/agent-safety.instructions.md
- License
- MIT
- Jobs
- Guardrails
InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
# Agent Safety & Governance ## Core Principles - **Fail closed**: If a governance check errors or is ambiguous, deny the action rather than allowing it - **Policy as configuration**: Define governance rules in YAML/JSON files, not hardcoded in application logic - **Least privilege**: Agents should have the minimum tool access needed for their task - **Append-only audit**: Never modify or delete audit trail entries — immutability enables compliance ## Tool Access Controls - Always define an explicit allowlist of tools an agent can use — never give unrestricted tool access - Separate tool registration from tool authorization — the framework knows what tools exist, the policy controls which are allowed - Use blocklists for known-dangerous operations (shell execution, file deletion, database DDL) - Require human-in-the-loop approval for high-impact tools (send email, deploy, delete records) - Enforce rate limits on tool calls per request to prevent infinite loops and resource exhaustion ## Content Safety - Scan all user inputs for threat signals before passing to the agent (data exfiltration, prompt injection, privilege escalation) …