feat: add CrewAI + SidClaw governance integration#359
Open
VladUZH wants to merge 1 commit intocrewAIInc:mainfrom
Open
feat: add CrewAI + SidClaw governance integration#359VladUZH wants to merge 1 commit intocrewAIInc:mainfrom
VladUZH wants to merge 1 commit intocrewAIInc:mainfrom
Conversation
Adds a self-contained example showing how to wrap CrewAI tools with SidClaw — an open-source approval and audit layer for AI agents. The DevOps crew demonstrates three governance outcomes: - check_service_health → allow (runs immediately, outcome traced) - deploy_to_production → approval_required (waits for human sign-off) - run_db_migration → deny (blocked by policy, never executes) govern_crewai_tool() is a one-line wrapper around any BaseTool that evaluates SidClaw policies before execution and records outcomes to a hash-chain audit trail. sidclaw (PyPI) is Apache 2.0. Platform self-hostable via Docker.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a self-contained integration example showing how to wrap CrewAI agents with SidClaw — an open-source approval and audit layer for AI agents (Apache 2.0 SDK, PyPI:
sidclaw).The example is a DevOps crew with three governed tools, each demonstrating a different policy outcome:
check_service_healthinternaldeploy_to_productionconfidentialrun_db_migrationrestrictedWhat's included
integrations/CrewAI-SidClaw/README.md— setup guide, expected output, how it workscrew.py— governed DevOps crew with three tools and different risk profilesmain.py— runnable entry pointrequirements.txt— crewai, sidclaw, python-dotenv.env.example— environment variable templateIntegration pattern
govern_crewai_tool()wrapsBaseTool._run. Before execution: SidClaw policy engine evaluates the action (< 50ms). After: outcome is recorded to a hash-chain audit trace.Why this is useful for CrewAI users
CrewAI agents that call
deploy_to_productionorrun_db_migrationtake irreversible actions. This integration adds:The SDK is Apache 2.0. No credential changes required — SidClaw wraps existing tools in one line.
Testing
pip install -r requirements.txt cp .env.example .env # add your keys python main.pyRequires a SidClaw API key (free tier at app.sidclaw.com covers 5 agents).