Examples & Templates
Integration examples
15 copy-pasteable loops. Each one evaluates before a side effect, then audits the outcome. Fork one that matches your stack and adapt from there.
Recommended setups
GitHub Actions + Copilot CI Gate
Twelve Copilot PRs can share a job with configure-cloud-credentials. @limetry/ci evaluates ci_privilege vs deploy before production credentials load: allow tests, deny untrusted deploys, approval_required on main. Resource is owner/repo@sha.
View exampleShopify Support / Ops Agent
Built after a support agent batch-refunded $3,200 in two minutes with no approval. Mutation firewall in the runtime (not a Shopify App): allow $10 refunds, deny inventory wipes, approval_required at $25. Admin token stays in the firewall.
View exampleCursor / Claude SQL DB Tool
Created after a Cursor user lost 1,847 production accounts to a DELETE with a bad regex. The gate owns DATABASE_URL so the agent never holds write credentials. Allow SELECT, deny DROP, approval_required for INSERT against SQL databases.
View exampleOpenAI Agent Governance
Intercepts tool calls and runs Limetry policy before side effects. Includes action intent helpers with auditMode minimal and redactDetails.
View exampleAnthropic Claude Tool Governance
Intercept Anthropic tool_use blocks with the limetry Python SDK before side effects. Allow search, deny shell, approval_required on charges.
View exampleFastAPI Action Middleware Gate
FastAPI dependency evaluates mutating routes with limetry before handlers run. Deny → 403; approval_required → 202.
View exampleStripe Payment Authorization
Authorize Stripe charges and refunds with limetry before the Stripe API call. Deny payouts; approval_required above cost threshold.
View exampleFramework Integrations & Workflows
Slack Cost Control
Slack slash-command handler that evaluates cloud cost intents with Limetry (mocked unit tests).
View exampleLlamaIndex Agent Tool Firewall
Wrap FunctionTool-style callables with limetry so retrieve allows and delete_index denies before the tool body runs.
View exampleBedrock Converse Tool Gate
After Bedrock Converse returns toolUse blocks, evaluate each tool with limetry before execution.
View exampleLangGraph Action Governance
LangGraph StateGraph using the limetry Python SDK: upsert policy → evaluate intent → record allow/deny.
View exampleLangChain-style Governance
LangChain-style provision simulation using the limetry Python SDK (no LangChain SDK dependency).
View exampleCrewAI-style Multi-Agent Governance
Researcher/Auditor/Purchaser roles evaluating purchases with the limetry Python SDK (no CrewAI SDK).
View exampleAutoGen-style renewal broker
Broker simulation using limetry to check renewal intents (cost ceiling + merchant allowlist).
View exampleChatGPT Custom GPT Actions
OpenAPI schema for upsert/evaluate/record/audit. Minimal audit; does not put secrets in metadata.
View example