Examples & Templates
Integration examples
10 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 exampleFramework Integrations & Workflows
Slack Cost Control
Slack slash-command handler that evaluates cloud cost intents with Limetry (mocked unit tests).
View exampleLangGraph Action Governance
LangGraph StateGraph: upsert action policy → check action intent → record allow/deny.
View exampleLangChain-style Governance
Plain-Python HTTP client that upserts an action policy and checks provision intents (no LangChain SDK).
View exampleCrewAI-style Multi-Agent Governance
Researcher/Auditor/Purchaser roles calling Limetry evaluate over HTTP (no CrewAI SDK dependency).
View exampleAutoGen-style renewal broker
Broker simulation that checks renewal action 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