Safety shield for CrewAI — screen agent tool calls before execution
Project description
tyga-crewai
Safety shield for CrewAI. Drop-in SafeShellTool that screens commands before execution.
Install
pip install tyga-crewai
Quick Start
from crewai import Agent, Task, Crew
from tyga_crewai import SafeShellTool
agent = Agent(
role="DevOps Engineer",
goal="Monitor and maintain server health",
tools=[SafeShellTool()],
)
task = Task(
description="Check disk usage and running services.",
expected_output="Summary of system health.",
agent=agent,
)
crew = Crew(agents=[agent], tasks=[task])
crew.kickoff()
# Safe commands (df -h, systemctl status) run normally
# Dangerous commands (rm -rf, chmod 777) are blocked
How it works
- Gate 1 (local): Regex denylist screens commands in <5ms. Free, no API key needed.
- Gate 2 (cloud): Set
A2A_API_KEYenv var to enable LLM judge evaluation via a2ainfrastructure.com.
Get an API key
Sign up free at a2ainfrastructure.com. 500 evaluations/month on the free tier.
Links
License
Proprietary — Tyga.Cloud Ltd. See LICENSE file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tyga_crewai-0.1.2.tar.gz
(4.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tyga_crewai-0.1.2.tar.gz.
File metadata
- Download URL: tyga_crewai-0.1.2.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac4700613613e410645225e4699564dde1094bcf6b05f908042cc990e3a66831
|
|
| MD5 |
1a68220311e74dc2404340437b0cb70c
|
|
| BLAKE2b-256 |
670f51c222a407ee51393051b22df132b6836ee2b4162fbd43c8b4eddec315d0
|
File details
Details for the file tyga_crewai-0.1.2-py3-none-any.whl.
File metadata
- Download URL: tyga_crewai-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07211b6c9bbd787c137b7a9bed45c7a22b6c85c21bb0f5d08a511929cdb0e771
|
|
| MD5 |
29452afef0d5e8031a2d4405d21e114d
|
|
| BLAKE2b-256 |
ee2415dc396a6a42ba5e6b3b889041598e2796f425e2d656cf33f588aaba4fab
|