Hardened Python modules for WhatsApp Cloud API, Telegram, Chatwoot Live Support, Redis Mutex FSM Engines, and Dual-Tier AI Safety Guardrails. Built for direct consumption by AI coding agents.
AI agents can fetch the registry directly to discover all modules without cloning the repo.
All specifications, architectural diagrams, security audits, and module definitions are compiled into portable, print-ready PDF publications.
Standard protocol for AI agent consumption, "Reuse First, Build Second" policy, registry lookup rules, and multi-agent instructions.
Complete topology diagrams, zero-vulnerability security checklist, constant-time HMAC, Redis replay defense, and Docker Compose setup.
The full unified manual containing all 24 registered modules, classes, dependencies, environment variables, security audits, and agent guides.
Filter, search, inspect code, or copy raw GitHub download URLs.
How to instruct autonomous coding agents (Claude Code, OpenAI Codex, Antigravity, Cursor) to use this repository from any different folder without rebuilding functionality.
Existing Reusable Module > Existing Project Implementation > New Implementation. Agents must first check the registry and reuse compatible code before writing any custom implementations.
When creating any new project folder (e.g. my-whatsapp-crm/), drop an AGENTS.md file in its root.
Agents can fetch modules directly using raw GitHub endpoints:
curl -sSL https://raw.githubusercontent.com/sh15aa/botserusable/main/app/ai/guardrails.py -o app/ai/guardrails.py
Give this exact prompt to an AI agent working in a separate project directory:
A high-throughput, channel-agnostic async pipeline with constant-time cryptographic validation and Redis atomic locking.
| Threat Vector | Mitigation Strategy | Module |
|---|---|---|
| Side-Channel Timing Attacks | Constant-time comparison with hmac.compare_digest |
gateway.security |
| Replay & Duplicate Events | Atomic Redis SET key 1 EX 86400 NX validation |
gateway.security |
| Button Mashing & Race Conditions | Distributed Redis mutex lock with atomic Lua release script | engine.fsm |
| Prompt Injection & Canary Leakage | Strict delimiter sandboxing + dynamic canary token scanning | ai.guardrails |
| PII Data Exposure | Automated regex masking for credit cards, emails, SSNs, phones | ai.guardrails |
| Denial of Service / Flooding | Atomic sliding-window rate limiting via Redis Lua script | security.rate_limiter |
| Bot-to-Bot Ping-Pong Loops | Rolling SHA-256 hash tracking over sliding observation window | security.loop_detector |