Enterprise Bot & AI Code Factory • Ready for Autonomous AI Agents

Production Reusable Code for
Conversational AI & Messaging Bots

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.

Browse 24 Reusable Modules Download PDF Handbook View on GitHub
$ curl -sSL https://raw.githubusercontent.com/sh15aa/botserusable/main/registry/modules.json

AI agents can fetch the registry directly to discover all modules without cloning the repo.

Offline & Archival Reading

PDF Documentation Center

All specifications, architectural diagrams, security audits, and module definitions are compiled into portable, print-ready PDF publications.

114 KB PDF

AGENTS.md Specification

Standard protocol for AI agent consumption, "Reuse First, Build Second" policy, registry lookup rules, and multi-agent instructions.

123 KB PDF

Architecture & Security

Complete topology diagrams, zero-vulnerability security checklist, constant-time HMAC, Redis replay defense, and Docker Compose setup.

MASTER 284 KB

Complete Technical Manual

The full unified manual containing all 24 registered modules, classes, dependencies, environment variables, security audits, and agent guides.

Reusable Catalog

24 Ready-to-Use Modules

Filter, search, inspect code, or copy raw GitHub download URLs.

Protocol & Standard

AI Agent Consumption Guide

How to instruct autonomous coding agents (Claude Code, OpenAI Codex, Antigravity, Cursor) to use this repository from any different folder without rebuilding functionality.

1 The Priority Rule

Existing Reusable Module > Existing Project Implementation > New Implementation. Agents must first check the registry and reuse compatible code before writing any custom implementations.

2 Put AGENTS.md in Your New Project

When creating any new project folder (e.g. my-whatsapp-crm/), drop an AGENTS.md file in its root.

# PROJECT INSTRUCTIONS
## Reusable Code Library
Search https://github.com/sh15aa/botserusable first.
Inspect registry/modules.json before coding.
3 Fast Zero-Install Module Fetching

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
💬 Ready-to-Use Agent Prompt

Give this exact prompt to an AI agent working in a separate project directory:

Build a customer support bot application with WhatsApp integration, human handoff, and PII guardrails. IMPORTANT: Before writing any implementation code: 1. Inspect the reusable code registry at: https://raw.githubusercontent.com/sh15aa/botserusable/main/registry/modules.json 2. Identify all reusable modules that can satisfy these requirements. 3. List: - Requirement - Module ID - Library Path - Why it is compatible 4. Download and reuse those modules directly rather than recreating them from scratch.
Compatible with: Claude Code, Codex, Antigravity, Cursor, Copilot Zero-Vulnerability
Topology & Controls

Zero-Vulnerability Architecture

A high-throughput, channel-agnostic async pipeline with constant-time cryptographic validation and Redis atomic locking.

Security Mitigation Matrix

Production Verified
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
Copied to clipboard!