import { useState } from 'react' import { Check, Copy, Terminal, ShieldCheck, Zap, CheckCircle2, ChevronDown, ChevronUp, Sparkles, ArrowRight, ExternalLink } from 'lucide-react' type ConsoleTab = 'quickstart' | 'crewai' | 'langgraph' | 'autogen' | 'openai' | 'docker' interface ConsoleItem { tab: ConsoleTab label: string pill: string filename: string command?: string code: string explanation: string latency: string } const CONSOLE_ITEMS: Record = { quickstart: { tab: 'quickstart', label: '10s Quickstart', pill: 'Auto-Detect', filename: 'terminal — btp-guard init', command: 'pip install btp-guard', code: `❯ pip install btp-guard ❯ btp-guard init [BTP v5.4] Scanning project environment... [+] Detected Agent Framework : CrewAI & LangGraph [+] Sovereign Ed25519 Keypair : Generated (pubkey: 3d2b0e...7fabc5) [+] Multi-Tenant Workspace : acme-corp / prod-workers (btp_live_94a7e...) [+] Local AST Security Policy: .btp/policy.yaml initialized (12 rules) [+] Fast Framework Guard : Generated src/guards/agent_guard.py ====================================================================== 100% In-Memory Guardrails Verified • Zero External Prompt Leakage`, explanation: 'Interactive 10-second developer wizard. Automatically detects your agent framework and scaffolds sovereign credentials, AST policies, and drop-in guards.', latency: 'Instant Local Memory Gate' }, crewai: { tab: 'crewai', label: 'CrewAI Guard', pill: 'Python SDK', filename: 'crewai_agent_guard.py', command: 'pip install btp-guard', code: `from crewai import Agent, Task, Crew from btp_guard.adapters.crewai import BTPTaskGuard # Fastest and most reliable local AST safety inspection guard = BTPTaskGuard(tenant_id="acme-corp", spend_cap=150.0) auditor = Agent( role="Autonomous Code Auditor", goal="Refactor backend services and run test suites", tools=guard.wrap_tools([execute_shell_command, query_postgres_db]) ) # Destructive syscalls (rm -rf, DROP TABLE) and secret leaks are blocked locally crew = Crew(agents=[auditor], tasks=[refactor_task]) crew.kickoff()`, explanation: 'Native CrewAI task and tool interceptor. Enforces deterministic AST safety and secret scrubbing before execution crosses the OS syscall boundary.', latency: 'Fastest & Most Reliable AST Gate' }, langgraph: { tab: 'langgraph', label: 'LangGraph Node', pill: 'StateGraph Gate', filename: 'langgraph_guard.py', command: 'pip install btp-guard', code: `from langgraph.graph import StateGraph from btp_guard.adapters.langgraph import BTPLangGraphGuard guard = BTPLangGraphGuard(workspace_id="antigravity-dev") def tool_execution_node(state): # Pre-execution AST invariant verification decision = guard.evaluate_node_state(state["current_tool_call"]) if not decision.allowed: return {"error": decision.reason, "veto": True} return execute_safe_tool(state["current_tool_call"]) graph = StateGraph(AgentState) graph.add_node("tool_node", tool_execution_node)`, explanation: 'In-flight LangGraph state graph validator. Traps runaway loops, spend spikes, and malicious mutations between agent state transitions.', latency: 'In-Process State Gate' }, autogen: { tab: 'autogen', label: 'AutoGen Mesh', pill: 'Swarm Interceptor', filename: 'autogen_interceptor.py', command: 'pip install btp-guard', code: `from autogen import ConversableAgent from btp_guard.adapters.autogen import BTPConversableInterceptor interceptor = BTPConversableInterceptor(org="bartholomew-core") agent = ConversableAgent( name="DevOpsAssistant", system_message="Autonomous infrastructure deployer" ) # Hooks outgoing tool calls and peer messages with zero prompt leakage interceptor.attach(agent) agent.initiate_chat(recipient, message="Deploy k8s cluster")`, explanation: 'Wire-level interceptor for Microsoft AutoGen agents. Guarantees zero sensitive prompt exfiltration and drops adversarial syscalls in caller memory.', latency: 'Zero Syscall Wire Gate' }, openai: { tab: 'openai', label: 'OpenAI Tools', pill: 'Function Calling', filename: 'openai_tool_guard.py', command: 'pip install btp-guard', code: `from btp_guard import BTPGuard guard = BTPGuard(workspace_id="prod-finance", spend_cap=250.0) # Pre-execution validation for OpenAI function / tool calling def dispatch_safe_tool(tool_call): decision = guard.verify_tool_call( tool_name=tool_call.function.name, arguments_json=tool_call.function.arguments ) if not decision.allowed: raise PermissionError(f"BTP Veto: {decision.violations}") return execute_internal_tool(tool_call)`, explanation: 'Pre-dispatch validation for OpenAI function calling. Verifies JSON arguments and drops destructive SQL, shell, or file mutations in memory.', latency: 'In-Process Gate' }, docker: { tab: 'docker', label: 'Sandbox Defense', pill: 'Defense-in-Depth', filename: 'container_defense.py', command: 'pip install btp-guard', code: `from btp_guard.sandbox import ContainerGuardPolicy # Layer-7 Invariant Gating paired with OS Container Sandboxing policy = ContainerGuardPolicy( container_runtime="docker", block_dynamic_exec=True, # Vetoes eval, exec, base64 decoding sinks allowed_egress_domains=["api.github.com", "pypi.org"] ) # AST gating intercepts tool dispatches inside isolated container namespaces`, explanation: 'Production defense-in-depth model. Pairs Layer-7 semantic AST invariant gating with OS-level Docker / gVisor container sandboxing.', latency: 'Container Safe' } } export default function Hero() { const [activeTab, setActiveTab] = useState('quickstart') const [copiedCode, setCopiedCode] = useState(false) const [copiedCmd, setCopiedCmd] = useState(false) const [showChecksums, setShowChecksums] = useState(false) const current = CONSOLE_ITEMS[activeTab] const handleCopyCode = () => { navigator.clipboard.writeText(current.code) setCopiedCode(true) setTimeout(() => setCopiedCode(false), 2000) } return (
{/* Dynamic Background Glow Radial */}
{/* Protocol Version Badge */}
Bartholomew Trust Protocol v5.4.0 SOVEREIGN AGENT PROTOCOL
{/* Impactful Headline */}

The Sovereign Security Runtime & Firewall for AI Agents.

{/* Subtitle */}

Zero cloud lag. Zero prompt leakage. The fastest and most reliable local AST safety gating stops catastrophic tool calls (rm -rf, DROP TABLE) in memory before reaching the OS. Multi-tenant workspace isolation, OWASP LLM02 credential scrubbing, and verifiable cryptographic execution audit receipts.

{/* Minimalist Action & Quick-Start Pill */}
{/* Quick Terminal Copy Pill */}
❯ pip install btp-guard
{/* Jump to Interactive Swarm Arena Button */} ENTER LIVE SWARM ARENA
{/* The 3 Core Answers Every Engineering Lead Asks */}
[+] Integration Time
10 Seconds (1 Line)

Add @secure_tool above your tool function. Zero proxy configs or cloud rewrites.

[>] Latency Added
< 15 Microseconds

Evaluates AST in 0.015ms. 10,000x faster than cloud filters with 100% deterministic command blocking.

[#] Framework Support
CrewAI • AutoGen • LangGraph

Tested drop-in support for CrewAI, LangChain, AutoGen, and Cursor/Claude

{/* Trust & Performance Metrics Bar */}
Fastest & Most Reliable AST Gating • Zero Prompt Leakage • Multi-Tenant AST Gating • 2,791 Passing Tests (100%)
{/* Unified Frontier Console Showcase */}
{/* Top Ambient Glow line */}
{/* Console Header Chrome */}
{/* MacOS Window Dots */}
{current.filename}
{/* Latency & Quick Action */}
{current.latency}
{/* Unified Clean Tab Bar */}
{(Object.keys(CONSOLE_ITEMS) as ConsoleTab[]).map((tabKey) => { const item = CONSOLE_ITEMS[tabKey] const isActive = activeTab === tabKey return ( ) })}
{/* Console Code Body */}
              {current.code}
            
{/* Console Description & Expandable Checksum Footer */}
{current.explanation}
PyPI Hashes
{/* Checksum Drawer */} {showChecksums && (
Official Package Channel btp-guard on PyPI (FIPS 186-5 Ed25519)
Verifiable Checksums Verify SHA-256 hashes on PyPI
)}
) }