DEV Community

Cover image for Huh?
ivegotahunnitonit
ivegotahunnitonit

Posted on

Huh?

Most agent safety systems today operate as post-execution audit loggers or external HTTP reverse proxies. That creates two big problems:

  1. Post-execution alerts are too late: if an agent executes DROP TABLE users; or rm -rf /, knowing about it 2 seconds later in a Slack webhook doesn't save your database.
  2. HTTP proxy hops add 50ms–200ms of latency per tool call, which kills throughput when orchestrating multi-agent swarms. Bartholomew runs inline within the agent process (Python/Go/Rust). Every tool call, database query, and shell dispatch is intercepted before it reaches the OS or database seam. It evaluates local AST syntax trees, masks credentials, checks spend caps, and produces signed Ed25519 Merkle audit receipts—with an average latency of 29.44 microseconds (<0.03 milliseconds). What's New in v5.4.5:
  3. Frontier Model Wire Support: Native tool normalization for OpenAI GPT-Astra / Agents SDK, Anthropic Claude 3.7 (with hybrid reasoning scratchpad isolation so blocks don't cause false positives), Google Gemini 3.8 / 2.0 multimodal thought parts, and DeepSeek-R1.
  4. The Sentinel Companion: Bartholomew is designed not as a cold HTTP 403 error, but as your swarm's digital steward. If an LLM hallucination attempts an unconstrained delete, Bartholomew holds the line and prints empathetic, constructive guidance explaining what went wrong and how the agent can safely achieve its goal.
  5. 1-Line Multi-Agent Adapters: Drop-in guards for CrewAI, LangGraph, Microsoft AutoGen, and LlamaIndex. 5-Second Test Drive: pip install --upgrade btp-guard Test a simulated runaway table drop right in your terminal: python -m cli companion --simulate drop Or converse directly with the sentinel companion in real-time: python -m cli companion Architecture & Benchmarks:
  6. Source: https://github.com/ivegotahunnitonit/bartholomew
  7. Benchmark report: https://github.com/ivegotahunnitonit/bartholomew/blob/main/BENCHMARK_FRONTIER_MODELS.md (tested across 4,000 iterations at 33,900+ evals/sec)
  8. Web & Docs: https://bartholomew.info We would love your honest feedback, critique of our AST parsing heuristics, and thoughts on agent execution security!

Top comments (0)