Skip to main content

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

  1. Gate 1 (local): Regex denylist screens commands in <5ms. Free, no API key needed.
  2. Gate 2 (cloud): Set A2A_API_KEY env 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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tyga_crewai-0.1.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

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

Hashes for tyga_crewai-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ac4700613613e410645225e4699564dde1094bcf6b05f908042cc990e3a66831
MD5 1a68220311e74dc2404340437b0cb70c
BLAKE2b-256 670f51c222a407ee51393051b22df132b6836ee2b4162fbd43c8b4eddec315d0

See more details on using hashes here.

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

Hashes for tyga_crewai-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 07211b6c9bbd787c137b7a9bed45c7a22b6c85c21bb0f5d08a511929cdb0e771
MD5 29452afef0d5e8031a2d4405d21e114d
BLAKE2b-256 ee2415dc396a6a42ba5e6b3b889041598e2796f425e2d656cf33f588aaba4fab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page