Skip to content
@Diplomat-ai

Diplomat

Runtime safety for AI agents. Static scanning + runtime approval gates

Diplomat-ai

Governance and runtime safety for AI agents.

Three Apache 2.0 building blocks for teams shipping AI agents into production. Open source first. Deterministic. No LLM calls in the enforcement path.

Three products of the Diplomat-ai ecosystem: diplomat-agent (Know — static AST scan), diplomat-gate (Decide — runtime enforcement), diplomat.run (Prove — hosted audit and compliance)


The problem

LLM-driven agents are now wired to APIs that send email, charge cards, delete files, hit production databases, and call other agents. The agent decides which function to invoke and with what arguments — most popular frameworks treat hard enforcement as the operator's responsibility.

In practice, that means there is none.

76% of AI agent tool calls have zero deterministic guards: bar chart of PraisonAI 89%, CrewAI 78%, Skyvern 76%, Dify 75%, plus 12 more repos in the dataset

We scanned 16 popular open-source AI agent codebases with diplomat-agent. 76% of tool calls with real-world side effects had zero deterministic guards — no input validation, no rate limit, no auth check, no approval gate, no retry bound.

Full per-repo results and methodology →


The three products

Stage What it does Status
diplomat-agent Know Static AST scan. Maps every tool call with side effects. Pre-deploy. CI gate. OSS · v0.4.0 · PyPI
diplomat-gate Decide Deterministic runtime enforcement. CONTINUE / REVIEW / STOP in <1 ms. Hash-chained audit. Zero deps. OSS · v0.3.0 · PyPI
diplomat.run Prove Hosted Decision Control Plane. Cross-tenant immutable audit, real-time dashboard, managed approvals, EU AI Act Article 12 export. Hosted · early access
# Step 1 — find what your agent can do (static)
pip install diplomat-agent
diplomat-agent scan .

# Step 2 — gate what it should do at runtime (deterministic, <1 ms)
pip install "diplomat-gate[yaml]"

What we are not

diplomat-gate is a syntactic enforcement layer, not a semantic one. It is one layer in a defense-in-depth strategy, not a silver bullet.

  • It does not classify intent or detect prompt injection — combine it with LLM-based guardrails when you need that.
  • The hash-chained audit log resists accidental corruption — for strong tamper-evidence against a privileged local attacker, ship records to a write-once external store.
  • Rate-limit policies are accurate single-process — for distributed workloads, wrap with an external lock or store.

We say this in every README, every pitch, and every conversation with a prospect. Intentionally narrow. Compose with complementary tools.


Standards alignment

OWASP Agentic Top 10 · EU AI Act Article 12 · NIST AI RMF · DORA · SARIF 2.1.0 · CSAF 2.0


Get started

  • Try the scannerpip install diplomat-agent && diplomat-agent scan .
  • Run the OpenClaw demo — clone diplomat-gate, run python demos/openclaw/run.py. ~60 seconds. No API key.
  • Reach outjosselin@diplomat.run · diplomat.run

Diplomat-ai is built by Diplomat Services SASU, Cagnes-sur-Mer, France. SIREN 100 251 834.

Pinned Loading

  1. diplomat-agent diplomat-agent Public

    What can your AI agent do to the real world? Scan your code. See which tool calls have zero checks

    Python 7 2

  2. diplomat-gate diplomat-gate Public

    Runtime approval gates for AI agent tool calls. Intercept payments and emails before execution

    Python 2 2

Repositories

Showing 3 of 3 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…