r/crewai • • 4h ago

Beginner Agent Open-Source ToolGate: Adding Allow/Ask/Block Governance & Audit Trails to CrewAI Agents

2 Upvotes

Hey everyone!

One challenge we kept hitting when moving multi-agent workflows toward production was tool safety—giving agents real API or database tools is powerful, but teams often need strict guardrails before letting them execute unsupervised.

We built ToolGate (part of the open-source OLO project) to act as a dedicated governance layer between your agents and their tools:

• Policy Enforcement: Set Allow, Ask, or Block rules per tool and identity.

• Human-in-the-Loop Approvals: Pause high-risk tool executions for human review before they run.

• Audit Trails: Keep a full execution log of every tool call and approval decision.

• Self-Hosted: Open-source and deployable locally via Docker or Kubernetes (Helm).

You can explore the project at ololabs.org or jump straight into our GitHub repo (https://github.com/olo-labs/olo-toolgate). If you find it useful, please drop a star on GitHub—it really helps the project grow! Feedback and PRs for tighter CrewAI integrations are super welcome.


r/crewai • • 2d ago

Beginner Agent How much extra infrastructure do you need around CrewAI?

2 Upvotes

For those running CrewAI agents in production, what did you end up building yourself that you thought the framework would handle?

Is there anything you're still struggling with today?


r/crewai • • 2d ago

Beginner Agent I built an offline, deterministic state-space agent runtime & 9-stage benchmark lab entirely on my Android phone in Termux (Python + NumPy + pytest)

1 Upvotes

GitHub: https://github.com/probablyapigeon/society_art_xembra_termux

I don't have a computer science degree or a desktop workstation right now, so I challenged myself to build and test a complete, self-contained Python systems project natively on my Android phone using Termux.

Instead of wrapping an external LLM API, XEMBRA + XC Runtime is a deterministic, "glass-box" state-space runtime that compiles human-readable .xc agent specifications into live dynamical systems where every state transition, policy score, and memory update is inspectable in real time.

What it does (python run_xembra.py):

• Custom .xc Spec Interpreter (xc_engine.py): Compiles agent state coordinates (Ψ = \[trust, fear, loyalty, curiosity, resentment\]) and coupled matrix operators (Focus, Volition) into an offline runtime loop.

• Real-Time Causal Observability (/decode & /why): Prints a 4-layer live translation table mapping raw floating-point coordinates and operator-order discrepancy (DN) to symbolic affective regimes, policy arbitration scores (HELP vs. ASK_QUESTION), spiral geometry, and musical chords.

• Cross-Modal Sensorimotor Loop (/hear, /duet, /art, /triad): Captures ambient audio from the phone mic (RMS energy & spectral brightness) to perturb internal state vectors, projects state trajectories onto 2D ASCII/ANSI morphogenesis lattices, and synthesizes modal chord progressions (Fmaj7, Cmaj9, G9) locally.

• 9-Stage Automated Telemetry & Benchmarks (/research): Logs structured .jsonl traces across:

• Operator-Order Commutator Sweeps (/commutator): Empirically measuring non-commuting operator paths (Focus -> Volition vs. Volition -> Focus, mean ||\\\[A,B\\\]|| = 0.15668).

• Counterfactual Memory Ablation (/ablate): Running identical twin seeds (with\\_memory vs. no\\_memory) to measure how token/episodic familiarity alters state trajectories.

• Perturbation & Homeostatic Recovery (/perturb): Injecting geometric obstacle masks (wall) and stochastic state shocks (noise) into the 2D lattice and measuring bilateral symmetry recovery (67.1%–91.1%).

• Two- & Three-Body Peer Coupling (/society, /triad): Coupling multiple .xc agents (Mara, XembraCore, Solis) into shared interference lattices.

• Automated Verification (pytest + GitHub Actions CI): Includes a 5-test verification suite (tests/test_xembra.py, runs in 0.15s) wired to GitHub Actions.

Quickstart

git clone https://github.com

cd society_art_xembra_termux

pip install numpy pytest

pytest -v

python run_xembra.py

Building and debugging a 70+ file Python project on a phone keyboard taught me a ton about modular architecture, numerical stability, and writing clean tests. Feedback, code reviews, or ideas for where to take it next are very welcome!


r/crewai • • 3d ago

Skilled Agent Give your agent a full machine, sandbox, and secret hiding

1 Upvotes

Yesterday I created this. It's pretty easy to setup and works well for my specific tool stack.

It's much simpler and feature-less than similar projects (e.g. coi) but it is also much simpler to setup and prepare.

Any feedback is appreciated!

https://github.com/00sapo/apptainer4agents


r/crewai • • 3d ago

Beginner Agent What makes a useful benchmark for coding agents on repository questions?

4 Upvotes

A recent post here compared key-fact coverage, time and cost on structural questions about a codebase. Seeing all three together makes the result more informative than speed alone, but how do you keep the questions representative of real repo work?


r/crewai • • 4d ago

Skilled Agent Claude max for $29 instead of $200 ... seriously how are they doing this?

Thumbnail
pnypo.shop
0 Upvotes

i got a Claude max account from a reseller for essentially nothing compared to what I used to pay . It works flawless. since 3 months No issues yet i paid only for 1 month . Now I can't stop thinking about their business model. If resellers can sell it this cheap and still profit, how are they acquiring these accounts at scale?


r/crewai • • 4d ago

Beginner Agent what's the smallest multi-agent setup you've actually got running day to day

1 Upvotes

curious what the minimum viable version looks like for people here. like two or three agents passing stuff back and forth, or is even that overkill for most tasks? what are yours actually doing?


r/crewai • • 5d ago

Beginner Agent what makes you re-review an MCP server youve already opened ??

2 Upvotes

devs want a few MCP servers for GitHub, Jira and our internal wiki. security said fine, someone just needs to write the approval process. guess who.

the first review is easy enough to write down. who maintains it, what it can read or write, where the creds live and who can turn it off. updates are the bit i'm stuck on. a patch release probably doesn't need another meeting, but i'd want another look if it starts sending requests somewhere new, even if the tool list stays the same.

half the team uses Cursor and the rest use Claude Code, so we've got two sets of settings to keep in sync. security brought up Bay and Zenity for visibility on the laptops. i'd like to know what we're asking people to re-review before we buy anything.

what change is enough to send an approved server back through review for you?


r/crewai • • 7d ago

Beginner Agent ARK - oAuth OIDC Identity Provider - Why Your AI Agents Need Their Own Identity Provider (And How to Spin One Up in 2 Lines of Code)

1 Upvotes

Why Your AI Agents Need Their Own Identity Provider (And How to Spin One Up in 2 Lines of Code)

Modern software architecture has hit an inflection point. We are no longer just authenticating humans logging into web dashboards; we are orchestrating autonomous AI agents calling other agents (Agent-to-Agent / A2A), querying Model Context Protocol (MCP) servers, and acting on behalf of users across multi-tenant environments.

Yet, most identity providers (IdPs) treat AI agents like an afterthought—forcing developers into fragile workarounds, static API keys, or bloated enterprise IAM suites that take weeks to configure and cost a fortune as active users scale.

Enter ARK Identity Server (Ark.oAuth.Oidc): an open-source, MIT-licensed, self-hosted OAuth 2.1 and OpenID Connect (OIDC) provider built specifically for ASP.NET Core, engineered from the ground up with AI-first agent security and zero-friction developer ergonomics.

[IMAGE 1: Hero Architecture Banner]
Insert Image 1 here: A high-level architectural diagram titled "ARK Identity Server: AI-First Security." It shows a central glowing shield ("ARK Identity Server — 2 Lines of Code") issuing three distinct types of short-lived, audience-scoped JWTs. The top path goes to an "AI Agent (A2A)" for agent-to-agent calls. The middle path goes to an "MCP Tool Server." The bottom path goes to a "Human User" for standard web apps. The core message is "1 Ticket per Call. Good at one Door."

The USP: Built-In Agentic Security (A2A & MCP Flows)

The biggest security blind spot in modern AI engineering is impersonation and over-privileged tokens. When an agent calls a downstream sub-agent or an MCP tool server using a broad user token, any compromise along the chain exposes the user's entire permission boundary.

ARK solves this natively with a strict security philosophy: "One ticket per call. Good at one door."

How ARK Secures Agent-to-Agent (A2A) & MCP Interactions

  • **Audience-Locked Delegation (**aud Enforcement): When an orchestrator agent (acting for a user like Alice) needs to invoke a downstream ledger agent (aud: ledger) or an MCP orders tool server (aud: orders), ARK issues discrete, audience-bound tokens. A token minted for the MCP orders server is cryptographically rejected at the ledger agent's door.
  • Identity Gateway via MCP (aud: idp-mcp): Agents don't just consume tokens—authorized administrative agents can interact with the IdP itself through an MCP-compatible gateway to provision clients, inspect audit logs, or manage tenant access safely.
  • Battle-Tested Hardening: ARK enforces PKCE S256 across the board and validates against 24 distinct refusal vectors (token replay, audience mismatch, inactive principals, and unmapped clients) out of the box.
  • AI-Agent-Assisted Setup: Because ARK exposes clean discovery documents, deterministic REST provisioning APIs, and predictable schemas, your coding agent (Cursor, Claude Code, GitHub Copilot) can configure, wire, and test authentication across your microservices without human intervention.

Why Developers and Small Businesses Love ARK

For startups, indie hackers, and lean engineering teams, third-party SaaS auth providers create a hidden tax: vendor lock-in, per-MAU pricing cliffs, and complex Terraform setups. ARK flips the script:

  1. Zero Licensing Cost (MIT License): Self-host on your existing infrastructure—from a $5 VPS running SQLite to a multi-node Kubernetes cluster backed by PostgreSQL or MySQL.
  2. 2 Lines of Code to Production: No XML manifests, no YAML labyrinth, and no external Docker dependencies required just to boot.
  3. True Multi-Tenancy Out of the Box: Every tenant gets its own isolated issuer ({BaseUrl}/{tenant_id}/), its own RSA signing keys in JWKS, custom branding, and independent user-to-app mappings—all governed from a single operator console (ark_idp).
  4. Instant Kill-Switch Revocation: Deactivating a compromised agent, user, or app immediately invalidates active sessions and refresh tokens without deleting audit history.
  5. Self-Applying Upgrades & Encrypted Backups: Database migrations run automatically on startup, and full environment snapshots (including private keys) export as AES-256-GCM encrypted, checksummed archives.

[IMAGE 2: The "3-Step Zero-to-Signed-In" Developer Workflow]
Insert Image 2 here: A three-column infographic illustrating the development lifecycle. Column 1, "1. Run the Provider," shows the two lines of C# code in Program.cs and the dotnet CLI command. Column 2, "2. Onboard the App," shows a single POST request with a JSON payload for provisioning a client (e.g., "Nexus Grid Portal") and user. Column 3, "3. Sign Users In," shows a dual-branded login screen and a final verified user profile with a billing.admin claim.

Architecture Breakdown: Every Section & Feature Extracted

ARK is organized into clean, modular primitives that cover the entire identity lifecycle:

1. Zero-Restart Interactive Setup Wizard (/ark-idp/setup)

When booted without a database or tenant configuration, ARK automatically routes traffic to a browser-based setup wizard. Answer eight questions—choosing SQLite, PostgreSQL, or MySQL, generating RSA 2048/3072/4096 keys (or importing your own PEM)—and click Install. The running process seeds the database, stores private keys securely in the DB (never in plaintext config files), and transitions live into your IdP with zero restart. For CI/CD pipelines, AddArkOidcServer bypasses the wizard entirely via environment variables or Key Vault overrides.

2. Atomic One-Call App Onboarding (POST /api/oauth/v1/provision/client)

In standard OIDC setups, onboarding an app requires four separate steps—and forgetting to map the user to the client causes silent login failures. ARK's provisioning endpoint executes all four atomically in a single API call:

  • Creates the OAuth client
  • Registers sign-in and post-logout redirect URIs
  • Creates the user account
  • Maps the user to the application (returning 409 client_exists on collisions so scripts never overwrite live configs)

3. Single-Operator Multi-Tenant Governance

The root operator tenant (ark_idp) governs all downstream tenants via /ark_idp/admin or automated CI/CD pipelines using a vault-backed {tenant}_machine client token:

  • Fine-Grained Ark Claims: Instead of wrestling with coarse OAuth scopes, permissions like billing.admin are granted per user and per app.
  • Dual-Logo Trust UI: Sign-in screens display both the host identity logo and the target app's client_logo, preventing phishing while letting users customize theme and font size.

4. Real-Time Signed Webhooks (AddArkWebhooks())

Opt in with one line of code to stream sign-ins, failed attempts, lockouts, token issuances, and principal mutations as signed JSON payloads (Standard Webhooks spec) with built-in retries, a dead-letter queue (DLQ), and event replay.

5. Runtime Discovery & Zero-Downtime Key Rotation

Client applications only need two settings: Authority and ClientId. Endpoints, jwks.json signing keys, and capabilities are resolved dynamically at runtime—meaning key rotations never require redeploying downstream services.

Supported Libraries & Multi-Stack SDKs

ARK ships official, version-synchronized client libraries across major backend and frontend ecosystems. Because they are direct ports of one another, integrating one stack translates line-for-line into the others:

Ecosystem / StackPackage / LibraryKey Capabilities & Features
IdP Server (.NET / ASP.NET Core)Ark.oAuth.Oidc (NuGet)Core OAuth 2.1 / OIDC server, setup wizard, multi-tenant engine, A2A/MCP token flows, and AddArkWebhooks().
.NET / ASP.NET Core ClientArk.oAuth.Client (NuGet)Native OIDC handler registration (AddArkOidcClient), maps Ark claims directly to [Authorize(Roles = ...)], per-request token helpers.
Python / Flask (& Core)ark-oauth-client / ark-oauth-client[flask] (PyPI)Mounts /login, /signin-oidc, and /logout in one call; u/auth.require_claims() decorator; ArkClientCredentials for M2M/agents; framework-agnostic core included.
Node.js / Express & Connectark-oauth-client (npm)Single middleware for auth routes and claim guards; enforced PKCE; AES-256-GCM sealed session cookies compatible with the Python client.
Browser / Single-Page AppsARK Browser / SPA ClientPublic client OAuth 2.1 + PKCE S256 flow with automatic runtime OIDC discovery and token lifecycle management.
Database ProvidersSQLite · PostgreSQL · MySQLBuilt-in connection testing, automatic schema bootstrapping, and self-applying migrations across single-node and multi-writer clusters.

Quickstart: Spin It Up in 60 Seconds

Step 1: Launch the Identity Server

Install the NuGet package and add two lines to your Program.cs:

C#

var builder = WebApplication.CreateBuilder(args);
builder.AddArkIdp();     // Registers ARK OAuth 2.1 / OIDC services

var app = builder.Build();
app.UseArkIdp();         // Serves setup wizard -> live IdP with zero restart
app.Run();

Or test directly from the repository:

Bash

git clone https://github.com/ir-dev/ark-oauth-oidc
cd ark-oauth-oidc
dotnet run --project Ark.oAuth.Oidc/Ark.oAuth.Oidc.QuickStart
# Open https://localhost:7300 to launch the setup wizard

Step 2: Protect a Python / Flask App or Agent Endpoint

Python

import os
from flask import Flask
from ark_oauth_client.flask import add_ark_oidc_client, current_ark

app = Flask(__name__)
app.secret_key = os.environ["ARK_SESSION_SECRET"]

auth = add_ark_oidc_client(app, {
    "authority": "https://idp.example.com/my_idp",
    "client_id": "my-app",
})

.get("/billing")
u/auth.require_claims("billing.admin")
def billing():
    return f"Authorized: {current_ark.user['name']}"

Author

ARK Identity Server is crafted by Immanuel R, a faith-led developer, solution architect, and open-source builder behind immanuel.co and the ARK ecosystem.

Rooted in Christian faith and guided by the principle of stewardship through engineering, Immanuel R builds software with a clear conviction: foundational security, privacy, and developer infrastructure should be honest, transparent, and freely accessible—never locked behind artificial paywalls or invasive tracking. That same ethos drives both his open-source developer tools and his decade-long social-impact work connecting surplus food to communities in need.


r/crewai • • 9d ago

Skilled Agent REQL update: better agent coordination, more complete handoffs, and measured token savings

2 Upvotes

Hey everyone!

I’ve updated REQL, my open source tool that helps AI coding agents navigate repositories and preserve working context across sessions.

This update focuses on reducing repeated work when a task spans multiple agents or conversations: recovering the decisions behind a change, giving the next agent enough context, and coordinating implementation and verification.

If you’re new to REQL, it builds a local graph of your code, tests, and documentation. Agents can retrieve relevant symbols, relationships, and source excerpts, alongside saved tasks, decisions, failed approaches, and next steps.

What’s improved?

  • More complete task recovery: context now follows the full chain of prerequisites, parent goals, conflicts, and replacement decisions. Shared work also retains previous revisions, so another session can recover what changed and why.
  • More useful source briefs: task context can include more complete verified source, relevant tests, and linked documentation. This gives agents more of the code they need to continue an assigned task.
  • Clearer coordination between agents: workers can explicitly wait for prerequisites after completing independent work. Task claims also identify the other active tasks that reference overlapping files.
  • Explicit verification plans: agents can run an ordered plan using the project’s own check commands. Passing results can be reused when the source revision, command, execution environment, and declared inputs match. Execution stops at the first failed check.

The coordination guide covers these workflows.

There are now concrete token comparisons in the README.

Three paired Codex comparisons reported:

  • 51% fewer total tokens for a test coverage import change.
  • 78% fewer total tokens for JavaScript and TypeScript test modifier indexing.
  • 38% fewer total tokens across both workers for a task coordinating Python, CLI, and MCP changes.

Each result comes from one paired comparison using the same frozen source tree and acceptance checks. Both runs in each pair passed. Totals count all input tokens, including cached input, plus output tokens. Results vary by task and run.

Results and measurement details

REQL still runs locally. Compilation and retrieval require no model calls, API keys, hosted service, or external graph database. It provides a CLI, Python API, and MCP server, with installable instructions for Codex, Claude Code, Cursor, and other supported assistants.

I’d like feedback from people using agents for larger changes: where do they repeat the most work in your setup—finding code, recovering earlier decisions, coordinating with another agent, or running checks? Concrete examples would help me choose what to improve next.


r/crewai • • 11d ago

Beginner Agent How do you actually manage your agent orchestration workflow without losing your mind? (Show me your setup)

5 Upvotes

I am pretty new to agent orchestration and trying to move away from messy, manual chatting into a cleaner workflow. Right now, I feel like I spend more time managing the AI than actually building.
For those of you running multi-agent setups or using different models for different tasks, how do you structure your daily workflow?

  1. Chat Hygiene: Do you keep one main "standing" chat that you constantly clear/archive, or do you start a fresh session for every single task?
  2. Task & Memory Management: How do you keep track of everything? Do you keep all context inside the chat/project files, or do you use an external second brain like Obsidian to feed context in and out?
  3. Model Routing: Do you pre-define your sub-agent models upfront (e.g., hardcoding a cheap/fast model for simple tasks and a heavy model for logic), or do you decide on the fly inside the prompt?

Would love to see how you guys set this up—drop your stack and workflow, screen shot of your side bar chat, etc. below so I can learn what actually works in practice.

I am using Claude code for the orchestrator and various opencode models to do the tasks. All commands started in claude code that commands opencode cli for delegating the tasks.
I am no coder so I dont really know the proper jargon 😂


r/crewai • • 11d ago

Skilled Agent Your CrewAI checkpoint is working. It still dispatched the order twice.

1 Upvotes

CrewAI 1.14 added checkpointing, and it closes a gap people had been working around by hand. Pass checkpoint=True to a crew and it saves a snapshot of the run to .checkpoints/. Restore it with Crew.from_checkpoint(), call kickoff(), and the run picks up where it stopped instead of starting over. Agent memory, task progress, intermediate outputs and the kickoff inputs all come back. For a long crew that died nine tasks in, that is the difference between resuming and paying for the whole thing again.

All of which is true right up until a task does something you can't undo.

The window

The checkpoint is written after the task finishes.

That isn't a criticism, it's the default and it's in the source. CheckpointConfig.on_events is ["task_completed"] (checkpoint_config.py:172), and a listener turns that event into a write. So the unit of durability is the task.

A tool call lives inside the task.

Take a dispatch agent with two tools. It looks an order up, then hands the parcel to a courier. The pod gets rescheduled in the middle.

run 1
  │
  ├─ task "verify"   ───►  order looked up, checkpoint written
  │
  ├─ task "dispatch"
  │     │
  │     └─ dispatch_order()    ───►  courier API       the parcel is moving
  │
  ╳  process dies here
  │
  └─ no checkpoint for "dispatch" was ever written


run 2   Crew.from_checkpoint(...).kickoff()
  │
  ├─ task "verify"   ───►  skipped. its checkpoint exists.
  │
  └─ task "dispatch" ───►  runs again, because nothing says it ran
        │
        └─ dispatch_order()    ───►  courier API       dispatched a second time

Re-running the task is the only correct thing the checkpoint could do with what it knows. As far as the durable record goes, that task never happened. The courier has the parcel and the process died before the checkpoint was written, so now one order is on two vans.

Worth noticing how much re-runs. LangGraph's checkpointer writes after a node, and a node is usually one step. A CrewAI task is a whole agent loop: several model turns, and every tool call the agent decided to make along the way. The resumed task starts at the top of that loop. Everything the agent already did to the outside world during it happens again.

A checkpoint records what your agent decided. It can't record what your agent did to the outside world, because it never saw it happen. Every checkpointing system in every agent framework has this window. None of them sit in the call path of your HTTP client.

Two things to check before you trust it

The first is the obvious objection, and it's a good one. task_completed is only the default. The event list is long and tool_usage_finished is on it, so you can checkpoint after every tool call instead:

Crew(
    agents=[...],
    tasks=[...],
    checkpoint=CheckpointConfig(on_events=["tool_usage_finished"]),
)

That narrows the window. It doesn't close it, because the event fires when the tool returns and the write happens after that. The courier already has the parcel by the time anything durable hears about it. You've moved the window from "the whole task" to "the gap between the call returning and the record landing", which is better and is still a window.

The second is worth checking before any of this matters: whether your checkpoints are being written at all.

An agent holding a tool written as a decorated function can't be checkpointed. CrewAI serialises the run with state.model_dump(mode="json"), a function isn't serialisable, and the listener catches its own failure and logs a warning rather than stopping:

except Exception:
    logger.warning("Auto-checkpoint failed for event %s", event.type, exc_info=True)

That's checkpoint_listener.py:243. The run carries on looking healthy and no file is written. Same crew each time, the agent's tools the only variable:

the agent's toolscheckpoint files written
none1
one @tool function0
one BaseTool subclass1

Measured on 1.15.41 and on 1.15.45. If your tools are the decorated-function kind, which is the form most of the documentation uses, checkpoint=True is doing nothing and saying nothing, and the resume you think you have is a directory that stays empty. Subclassing BaseTool is the form that works today.

The same swallowing applies to any serialisation failure, so it's worth grepping your logs for that warning before relying on a resume.

That one is a bug and it will be fixed. The window above is not a bug and will not.

It isn't only restarts

Three other shapes it takes.

Two workers arrive at the same job. A checkpoint id is a storage key. It doesn't claim anything. Nothing stops two processes restoring the same checkpoint and kicking off at once, and that happens more than people expect: a retry that fires while the first attempt is still running, a queue that redelivers, two replicas picking up the same message. Five identical restores of one checkpoint and the courier gets five parcels.

An advisory lock doesn't fix this, which surprises people. Mutual exclusion and idempotency get treated as the same property. A lock means one worker runs the task at a time. It says nothing about how many times the dispatch happens across all of them, and the measured answer there is also five.

The worker holding the job dies and doesn't come back. Not a crash loop, where the pod restarts and retries. The process is gone: the node was killed, the container was evicted, the host went away. Whatever marked that work as in-progress is now held by something that no longer exists.

Several agents reach the same conclusion independently. CrewAI is a multi-agent framework, so this one is closer to home than it is elsewhere. Five agents working one support ticket, each deciding a refund is owed. They aren't retrying each other, they reasoned separately, and the customer is owed one refund. Nothing in the checkpoint model connects them, because they're five different runs.

What people already do about it

If the API provider supports an idempotency key, use that. Stripe has one. If it doesn't and it's an internal API you own, add one. The receiver dedupes on its own side, which beats anything the caller can do about it.

It buys less than it sounds, because nobody hands you the key. Stripe dedupes a retry only if the retry presents the same key, and your agent has to produce that key twice across a process that died in between. Generate it inside the tool and the resumed run generates a different one. Derive it from the model's arguments and two agents that reasoned differently derive two keys, which is a measured result rather than a worry: in a harness where two agents each decided a refund was owed and disagreed on the amount, putting the amount in the key let both of them through. Stripe also retains keys for at least 24 hours and may drop them after that, so reuse past the window executes a new request. Fine for a retry loop, no use for a crew somebody resumes on Tuesday.

What's left is the calls with no such header, which for an agent is most of them. A courier endpoint, a Slack message, an internal service another team owns, a tool someone wrote last quarter.

For those the usual answer is a claims table, the Stripe-style idempotency key written by hand. Insert a row keyed on the operation before you do the work. A second caller's insert conflicts, so it knows someone else owns the operation and waits for their answer, and you store the response against the key when you're done. It's a good answer, it's what teams actually write, and it handles both the restart and the concurrent workers.

It's the dead holder that breaks it. The row says in-progress and it's held by a process that no longer exists, so nobody else can finish the operation without a human clearing it. The usual next move is a TTL on the claim, and the instinct is right, but a TTL whose expiry is the only thing authorising takeover can't tell a dead holder from a slow one. It takes over from both. From the dead one that's correct. From the paused one you get two workers who each believe they own the operation.

Making it safe takes a heartbeat, so the holder can say it's still alive, and a fencing token, so a superseded holder's late write gets refused instead of applied. At which point you've written a lease, and you own it.

This is also where the workflow engines sit, and it's worth being clear that they don't remove the problem. Temporal makes the orchestration durable: the workflow survives, the step re-runs on replay, and you get timers and retries and history for free. Its own documentation says activities execute at least once and that you should make them idempotent, because an activity can run more than once and can partially complete more than once. Run Temporal and you still write something like the claims table inside your activity, since an activity retry is exactly the thing that dispatches the order twice.

None of this catches the independent agents. Five agents on five runs derive five different keys, so every guard sees five unrelated operations and lets all of them through. Catching that means deriving the key from the ticket rather than from the run, which you have to decide on purpose whatever you're using.

Which is what I built

I wrote Cellaflow for this, so weigh the rest accordingly. It's an engine that holds the leases. A tool call takes one before it runs, and if a later call derives the same key it's answered from the record of the first attempt instead of executing. If the holder dies the lease expires and the work gets reclaimed by whoever takes it, which is the case a claims table can't reach.

For CrewAI the integration is two things: a lease on the tool you can't take back, and a context manager around the kickoff.

from cellaflow import durable_tools
from cellaflow import tool as leased

leased_dispatch = leased(tool_name="dispatch_order")(dispatch_order)


class DispatchOrder(BaseTool):
    name: str = "dispatch_order"
    description: str = "Hands order_id to courier for delivery. Cannot be recalled."

    def _run(self, order_id: str, courier: str = "DHL") -> str:
        return leased_dispatch(order_id, courier)

leased is cellaflow.tool, renamed on import so it doesn't collide with CrewAI's decorator of the same name. Keep the leased function at module level rather than storing it on the tool: a BaseTool is a pydantic model, and a function held on one is the thing that stops the crew being checkpointed.

If you aren't checkpointing, the decorator form works and reads better:

@crewai_tool("dispatch_order")
@leased(tool_name="dispatch_order")
def dispatch_order(order_id: str, courier: str) -> str:
    """Hands `order_id` to `courier` for delivery. Cannot be recalled."""

Read that one bottom-up. Cellaflow leases the call, then CrewAI builds the schema the agent sees from the signature and the docstring.

The agent's other tool isn't leased either way, because repeating a read costs nothing and a lease on it would buy nothing.

Then the run:

thread_id = f"dispatch-{uuid.uuid4().hex[:8]}"

with durable_tools(thread_id, target=ENGINE):
    result = crew.kickoff()

CrewAI has no config object to carry an id the way LangGraph's configurable does, so whatever id your application already uses for the conversation is passed straight in. The same id always derives the same session, so the resumed run derives the same key. That's what survives the restart.

kickoff() runs a tool on the caller's context, so the tool body reaches the session opened around it with nothing further required. A leased tool called with no session open raises rather than running unguarded, which is what you want, and is worth knowing if you move work onto the asynchronous path.

Does it hold up

There's a runnable version of that dispatch crew in the repo. Two arms, the same crew, the same checkpoint=True, the same crash at the same instant, and the only variable is whether the tool call holds a lease.

armorders looked upparcels dispatched
checkpoint=True alone12
the same crew, leased tool call11

The left column is the control, and it's what makes the right one mean anything. One lookup in both arms, because task one's checkpoint was written before the crash and the resumed run skipped it. The checkpoint is working. The lease isn't fixing it. It's covering the call that was still in flight when the process died.

docker run -d --name cellaflow -p 50051:50051 \
  -e CELLAFLOW_ALLOW_UNAUTHENTICATED=true ghcr.io/cellaflow/cellaflow:latest

git clone https://github.com/cellaflow/cellaflow-sdks
cd cellaflow-sdks/examples/at_most_once_proof_crewai

pip install -r requirements.txt
python proof.py

No API key and no database. The model is a local endpoint in the directory returning the same two tool calls every time, so the run is deterministic and offline. Point it at a real model instead and it behaves the same. There's a reason it's an endpoint rather than a scripted class: CrewAI stores a model's name and rebuilds it through its provider factory on restore, so a custom model class doesn't survive from_checkpoint.

The arms differ by one line, whether the dispatch function is wrapped in cellaflow.tool. Both arms assert their own number and the script exits non-zero if either stops behaving. A proof that cannot fail is not a proof.

The counters live inside the tool bodies, so a suppressed call can't be counted as a success: if the lease works, the body is never entered and nothing is appended.

Some things it doesn't measure. No throughput, no latency, no storage engine comparison; it's a correctness demonstration, and a deterministic one, in that the dispatch either repeated or it didn't on any hardware. It runs one writer, one crew, one crash, so the concurrent scenarios above come from a separate harness. It kills a process rather than cutting power to the host. And the engine is a single node today.

It also tests one crash point, after the tool returns and before the task completes. A kill inside the tool body, after the courier accepts and before the result is recorded, is a different window, and nothing on the caller's side closes that one.

One thing I'd like to know

If you've turned checkpoint=True on in anger, I'd like to hear what happened the first time a run resumed into a tool that had already fired. Specifically whether you noticed from the duplicate or from the logs, or whether it just never came up.

I'll be in the comments answering any questions or thoughts. My DMs are also open.

Live demo: https://cellaflow.com/#live-demo

Github: https://github.com/cellaflow/cellaflow-sdks


r/crewai • • 12d ago

Beginner Agent How I isolated credentials in a multi-tenant custom agent platform using per-chat MCP subprocesses

4 Upvotes

I've been building a no-code platform at work where customers create their own AI agents (support bot over their docs, sales agent reading their CRM, etc.). The hardest part wasn't the LLM, it was the plumbing. Sharing what worked in case it helps anyone building something similar.

\\1. Credentials belong to the chat, not the agent\\

The obvious design attaches integrations to the agent. But then every chat using that agent holds every credential, and one prompt injection could reach another user's data.

What I did instead:

\- Agents are created with zero credentials

\- Each chat picks which integrations it's allowed to use

\- Every enabled tool runs as an isolated MCP server subprocess that only gets a connection ID, and looks up its own OAuth token

So chat A can have Gmail and chat B can have Postgres, and neither process can see the other's secrets.

\\2. Show the model fewer tools\\

With 50 tools available, tool selection got noticeably worse and the descriptions ate context. A cheap routing step before each turn scores tools against the user's message and only exposes the top few. Big improvement in picking the right tool.

\\3. Hybrid retrieval\\

Pure embeddings missed exact strings (error codes, product SKUs). I combined OpenAI embeddings with BM25, reranked the merged results, then compressed chunks down to the relevant sentences. The reranker was the step that made the biggest difference.

\\4. Validate everything before it executes\\

Every tool call and final answer goes through strict Pydantic schemas, with LangGraph state machines for multi-step flows. If an agent can write to a CRM, "mostly valid JSON" isn't good enough.

Main takeaway: agent quality turned out to be mostly a systems problem, not a prompt problem.

Curious how others handle this. If your agents call real tools with user credentials, how are you isolating them? Per-session processes, a proxy that injects tokens, something else?


r/crewai • • 12d ago

Beginner Agent ARIA-X – A local-first AI agent for security research, built with Python and zero runtime dependencies

4 Upvotes

Hey everyone!

I built ARIA-X, an open-source security research agent inspired by ARTEX, Cairn, and PentAGI.

It features state-space reasoning, persistent memory, evidence tracking, and a local web dashboard.

\* Python 3.11+ with zero third-party runtime dependencies

\* Offline demo without API keys

\* Support for multiple LLM providers

\* Auditable execution and structured reports

It's still an early-stage project, and I'd love to hear your feedback!

GitHub: https://github.com/01NGVI-QINGYI/ARIA-X


r/crewai • • 12d ago

Beginner Agent which coding agent approvals do yall still make people read?

3 Upvotes

after the fifth prompt to run another test, i'm usually just trying to get Claude Code or Codex to finish. then a prompt about pushing to a remote shows up in the same flow and gets about as much attention as the last one.

security has mentioned Pillar and Bay a couple times. it hasn't gone further than that. i'd start by letting tests run in a restricted workspace and keeping a separate approval for anything that publishes code.

for teams who've changed the defaults, which action did you keep behind an actual approval?


r/crewai • • 13d ago

Skilled Agent How we cut coding-agent cloud token burn by 98% (84,947 -> 724 tokens/loop) using 0-token AST graph pre-fetching + local Ollama diff audits (Open Source)

3 Upvotes

While building our production Next.js + Prisma app (1,465 source files, 10,893 AST nodes, 60 API routes), our multi-agent coding loops kept hitting the 5-hour Claude/Gemini usage cliff after just two tickets.

When we instrumented the exact token payloads per subagent loop, three culprits accounted for 98% of the token burn:

  1. Blank-Slate File & Rule Crawling (\~74,600 tokens/loop): Every spawned subagent ran \`find src\`, \`grep\`, and read thousands of lines of markdown rules before touching a single line of code.
  2. Verbose Test Log Bloat (\~6,816 tokens/run): Running \`vitest\` / \`tsc\` / \`eslint\` dumped 250+ lines of passing logs into context—which gets re-billed on every turn.
  3. Frontier Models on Mechanical Diff Checks: Spawning cloud Pro/Opus subagents just to check modularity, \`any\` types, or missing server-side auth guards.

So we built and open-sourced ZeroBurn (v2.5.0):

- 0-Token Knowledge Graph Pre-Fetch (codebase-memory-mcp) + 5-line REPO_MAP_DIGEST (\~512 tokens)

- 1-Line Quiet CLI + Local Ollama Judgment Kernel (17 tokens on green runs; 3-line local Gemma/Qwen root-cause digest on failures)

- 0-Cloud-Token Diff Audit via Python AST + local Ollama (\`qwen2.5-coder\`, auto-starts \`ollama serve\` if stopped)

Try it live on your own repo in 10 seconds (zero install):

\`curl -fsSL https://raw.githubusercontent.com/thoufeeque22/zeroburn/main/benchmarks/try-now.mjs | node\`

GitHub (MIT): https://github.com/thoufeeque22/zeroburn


r/crewai • • 13d ago

Beginner Agent Run Hermes’s terminal and file tools on your own sandbox cloud with Flame

2 Upvotes

We’ve updated hermes-flamepy so Hermes can use remote Flame sandboxes through its standard terminal and file tools. Set terminal.backend: flamepy—there’s no separate toolset for the model to learn.

Hermes stays on your laptop or controller, while commands execute in gVisor sandboxes on Linux workers you operate. While a sandbox stays open, files, installed packages, working directories, and exported shell variables remain available across tool calls.

flame-cluster handles deployment, worker enrollment, and a console for inspecting workers, sessions, executors, and task progress.

A few reasons we built this on Flame:

  • Shared worker capacity: Run independent agent environments across a pool of machines.
  • Low execution latency: Earlier in-cluster SDK tests measured 8.56 ms median for trivial shell commands in a warm sandbox.
  • Small worker footprint: FEM, the worker manager, used about 17.3 MiB RSS on each of two idle workers.
  • Support for other agents: Flame’s APIs and language support also make it possible to build integrations beyond Hermes.

One limitation to know: suspend/resume currently preserves the session ID but starts with fresh files and shell state. Local project files also need to be transferred explicitly.

We’ve written a walkthrough with setup instructions, architecture, live console screenshots, and measurement details:

https://xflops.io/blog/build-your-own-sandbox-cloud-with-flame/

Would this fit your Hermes workflow? We’d be interested in which capabilities matter most—project sync, durable workspaces, or something else.


r/crewai • • 14d ago

Beginner Agent RAG implementation tutorial: A technical cheat sheet to stop AI hallucinations

Thumbnail interconnectd.com
4 Upvotes

Most Retrieval-Augmented Generation tutorials skip the production bottlenecks that actually cause LLM hallucinations. When building a RAG pipeline from scratch, basic vector similarity search often retrieves noisy context, leading to confident but wrong answers.

​I put together a practical RAG implementation tutorial and technical cheat sheet covering the exact architecture adjustments needed to ground your outputs:

  • ​Chunking strategies: Moving beyond fixed-size splits to semantic and recursive chunking so context stays intact.
  • ​Hybrid search: Combining dense vector embeddings with BM25 keyword matching to catch exact technical terms.
  • ​Reranking: Adding a cross-encoder step before passing context to the LLM to filter out irrelevant chunks.
  • ​Prompt grounding: Structuring system prompts to enforce strict citation and fallback behavior when data is missing.

​If you are debugging retrieval accuracy or setting up your first pipeline, check out the full breakdown here: https://interconnectd.com/forum/thread/31/rag-for-beginners-the-technical-cheat-sheet-that-stops-ai-hallucinations/


r/crewai • • 14d ago

Skilled Agent Giving a crew a memory that outlives the run: one library every agent reads and writes over MCP

2 Upvotes

Your agents can share one memory that outlives each run.

I'm the developer of Zenod, so weigh this. Every run of my agents used to start from zero. One agent saves a note, and the next agent reads it over MCP, even days later.

It is one cloud address. You sign in with Google or GitHub, and there is no key to paste. The notes are plain Markdown in your own Drive or GitHub.

What does your crew forget between runs?

Your first 30 memories are free, no card: https://zenod.dev/testers?s=P-0567


r/crewai • • 15d ago

Beginner Agent I built ContextDuty - an open-source, local-first security layer for AI coding tools, MCP and developer workflows

3 Upvotes

I have been working on ContextDuty, an open-source project focused on preventing sensitive information from leaking into AI tools.

The motivation was simple - developers are increasingly using AI coding assistants, agents, MCP servers and LLM APIs that interact with local repositories, configuration files, credentials and proprietary data.

Scanning Git repositories alone isn't enough. A secret can reach an AI model before it ever gets committed.

ContextDuty currently provides:

  • Local PII and secret detection using Microsoft Presidio and deterministic detectors.
  • IDE protection through AI-tool-specific ignore files.
  • Git pre-commit scanning.
  • A local HTTPS proxy for supported AI API traffic.
  • An MCP server that sanitizes tool results before they enter model context.
  • Policy-based blocking, warning and redaction.
  • CI/CD scanning.

The project is MIT-licensed, and the core scanning and enforcement run locally.

GitHub: https://github.com/SHUBHAGYTA24/contextduty

I would particularly appreciate feedback from people working on AI infrastructure, MCP, agent frameworks, DevSecOps and enterprise security.

What security gaps are you seeing in your own agentic workflows? What would make a tool like this useful enough to deploy across an engineering organization?

Contributions, issues and technical criticism are welcome!


r/crewai • • 15d ago

Beginner Agent I built ContextDuty - an open-source, local-first security layer for AI coding tools, MCP and developer workflows

3 Upvotes

I've been working on ContextDuty, an open-source project focused on preventing sensitive information from leaking into AI tools.

The motivation was simple - developers are increasingly using AI coding assistants, agents, MCP servers and LLM APIs that interact with local repositories, configuration files, credentials and proprietary data.

Scanning Git repositories alone isn't enough. A secret can reach an AI model before it ever gets committed.

ContextDuty currently provides:

  • Local PII and secret detection using Microsoft Presidio and deterministic detectors.
  • IDE protection through AI-tool-specific ignore files.
  • Git pre-commit scanning.
  • A local HTTPS proxy for supported AI API traffic.
  • An MCP server that sanitizes tool results before they enter model context.
  • Policy-based blocking, warning and redaction.
  • CI/CD scanning.

The project is MIT-licensed, and the core scanning and enforcement run locally.

GitHub: https://github.com/SHUBHAGYTA24/contextduty

I would particularly appreciate feedback from people working on AI infrastructure, MCP, agent frameworks, DevSecOps and enterprise security.

What security gaps are you seeing in your own agentic workflows? What would make a tool like this useful enough to deploy across an engineering organization?

Contributions, issues and technical criticism are welcome!


r/crewai • • 16d ago

Beginner Agent Crash-Test Guard v1.0.0 — CI/CD reliability gate for stateful AI agents (Go, single binary, protocol-first)

3 Upvotes

​

Hey everyone,

I've been working on this for a few months and just released v1.0.0.

The problem: Your AI agent crashes mid-workflow (payment processed, email sent, etc.). After restart, does it resume correctly? Charge twice? Send duplicates? Is the checkpoint even readable?

The solution: Crash-Test Guard — a single static Go binary that drops into any CI pipeline.

How it works:

Starts your agent (any language, any framework)

Waits for a specific workflow event (e.g., "step_completed: process_payment")

Crashes it (SIGKILL, docker kill, docker rm -f + fresh run)

Restarts it, sends the checkpoint to /resume

Verifies: checkpoint consistency, monotonic progress, no duplicate side effects (via idempotency keys), workflow completion, output equivalence vs baseline

Key design decisions:

Protocol-first: 6 HTTP endpoints, agent implements them, guard calls them. Zero framework coupling.

Event-based triggers: deterministic, not sleep-based.

Opaque checkpoint envelope: agent uses any serialization (pickle, JSON, msgpack, custom).

Operation ledger: verifies committed business effects, not just intent.

Baseline comparison: runs normal + crash-injected, compares final business state.

Install:

macOS/Linux: brew tap crash-test-guard/tap && brew install crash-test-guard

Windows: scoop bucket add crash-test-guard https://github.com/crash-test-guard/scoop-crash-test-guard && scoop install crash-test-guard

Binary: GitHub Releases (Linux/macOS/Windows, amd64/arm64)

Example config (crash-test.yaml):

version: "1.0"

agent:

command: \["python", "my_agent.py"\]

endpoint: "http://localhost:8080"

crash_scenarios:

\- type: process_kill

trigger:

event: step_completed

step_id: process_payment

timing: after_event

verification:

checkpoint_consistency: true

duplicate_side_effects: true

workflow_completion: true

baseline_comparison: true

Repo: https://github.com/adirwt852-cloud/crash-test-guard

Protocol spec: https://github.com/adirwt852-cloud/crash-test-guard/blob/main/docs/protocol.md

Reference adapter (LangGraph + FastAPI + PostgreSQL): examples/langgraph-agent/

Looking for:

People to try it against their agents

Missing crash scenarios for your use cases

Adapter contributions (AutoGen, CrewAI, custom frameworks)

CI integration feedback

Happy to answer questions!


r/crewai • • 16d ago

Skilled Agent Sandboxed-Agent-Tools: Per-Tool Call Sandboxes for AI Agents

1 Upvotes

I've built a sandbox approach for agents that works on a per-tool call basis.

You can install this as one binary (named sat) on Linux currently.

The idea is that you or your agent provide specific grants to each tool call (or let your agent do that) like:

sat python "$PWD/untrusted_script.py" -- --read "$PWD/untrusted_script.py" --read "$PWD/input.txt"

This makes sure that the python interpreter only sees the granted resources and can only read these. Currently there are 5 tools you can easily install from the repo:
- jaq
- a python 3.14 interpreter
- code (a treesitter plugin to retrieve abstract code symbols, e.g. all function that contain a certain variable)
- ripgrep
- markitdown (microsofts popular tool to convert pdfs and office docs to markdown)

This should help with two things:

  1. apply tools to untrusted inputs. Even in a traditional sandbox, data could be leaked through http calls, if the sandbox can access the web.
  2. run tools you only partly trust. Maybe there are amazing tools out there but you simply don't want to let them touch your project, even within a sandbox.

This is built on top of the fantastic wasmtime and uses the Webassembly System Interface Preview 2 for sandboxing.

Check the repo: https://github.com/CloseChoice/sandboxed-agent-tools


r/crewai • • 17d ago

Beginner Agent Auryn: an open-source code graph your coding agents query over MCP

1 Upvotes

Auryn parses your repos into one FalkorDB graph of calls, imports and dependencies, and serves it to coding agents over MCP. Instead of grepping and reading files to work out who calls what, the agent queries the graph.

**What it does**

- One graph for many repos. Add them in any order and cross-repo calls connect as each one arrives.

- Stays current. Each commit re-parses only the files it touched and the code they affect, so a typical commit syncs in milliseconds. Angular (5,256 TypeScript files) moves to its next release in under 8 seconds.

- Cited answers. The agent points to the node, file and edge behind each answer.

- Semantic search when you want it. Turn it on at install and the agent can find code by what it does. The embedding model runs on your machine.

- Runs locally. The graph lives on your machine or on a FalkorDB server you run.

**Benchmark** (Claude Code on Django, hard structural questions, with and without Auryn)

- Key facts covered: 22% to 92%

- Time per task: 208s to 70s

- Cost per task: $0.72 to $0.38

- Tokens per task: 466k to 355k

**Install**

```

pip install falkordb-auryn

auryn install

```

The second command connects it to Claude Code, Codex, Cursor, Windsurf, Copilot, Gemini CLI, Antigravity or Aider. Any agent that reads AGENTS.md or connects over MCP works too. Needs Python 3.12+. On native Windows or older Linux, point it at a FalkorDB server you run.

MIT licensed. Repo: github.com/FalkorDB/Auryn. Happy to answer questions about how the graph is built.


r/crewai • • 17d ago

Skilled Agent I built a sub-2ms CPU "reflex copilot" for AI agents that cuts token bills by ~40% and stops destructive commands before they run

2 Upvotes

Hey everyone,

If you’ve been running autonomous coding agents (Claude Code, SWE-agent, Codex, or custom LangChain/MCP loops), you’ve probably noticed two painful, expensive problems:

  1. Massive Context Bloat: Dumping 30+ tools and schemas into the system prompt burns thousands of tokens on every single turn, confuses the model, and drives API bills through the roof.
  2. Broken Trial-and-Error Loops: An agent makes a dumb syntax typo in a patch or runs a destructive shell command (rm -rf, leaking an API key, or malformed diff). It crashes, and then wastes 3 to 5 expensive LLM calls just diagnosing its own mistake.

I wanted something that acts like an onboard reflex system—handling micro-decisions instantly on your machine so the heavy LLM doesn't have to waste time and money guessing.

So I built Aetheris Microbrains: an open-source, pure-NumPy runtime that runs locally on your CPU in under 2 milliseconds. No GPU required. No cloud API calls.

👉 Repo: https://github.com/drtikov/microbrainsforagents

💡 What does it actually do?

Think of it as a pre-flight air traffic controller between your agent and your computer:

  • ✂️ Smart Tool Trimming (~40% Token Savings): Instead of stuffing 50 tools into the prompt, Microbrains uses a fast local routing engine to pick only the top 3–4 tools needed for that exact step. Fewer tokens in, faster responses, less distraction.
  • 🛡️ Instant Pre-Flight Safety (<2ms): Before a tool runs, Microbrains reconstructs the code patch AST and tokenizes the shell command. If it spots a syntax error, leaked secret (.env, Stripe/OpenAI keys), or a dangerous command (curl | sh, rm -rf), it intercepts it immediately—zero wasted LLM roundtrips and zero damage to your laptop.
  • 🛑 Conformal Escalation (No Blind Guessing): Instead of hallucinating when uncertain, it uses mathematical conformal prediction. If confidence drops below 95%, it safely halts and asks the human before touching anything irreversible.
  • 🔌 Drop-in for Claude Code & MCP: Comes with native hooks. Just point your agent's PreToolUse hook to it and it works out of the box.

🌐 Where else can this be used?

Because it’s completely offline, tiny (2-bit weights, <15 MB RAM), and runs in pure Python + NumPy, it works anywhere you can't or shouldn't run a 70B parameter model:

  1. 🤖 Robotics & Drones: High-level Vision-Language-Action (VLA) models are too slow (~5–10 Hz) to prevent a physical collision. Microbrains acts as a sub-ms "reflex barrier" (Control Barrier Functions) running directly on edge robot CPUs to stop arm crashes before low-level motors engage.
  2. 🛡️ DevSecOps & CI/CD: A sub-2ms pre-commit gate that scans PR diffs and shell scripts for AST exfiltration sinks and credential leaks before git push.
  3. 📱 Edge & Air-Gapped Systems: Autonomous decision-making on low-power devices, industrial sensors, or isolated networks with zero internet access.
  4. 💳 Fintech & Transaction Gates: Ultra-low latency circuit breaker checking transaction rules without adding cloud lag.
  5. 🌐 MCP Firewalls: Scans third-party Model Context Protocol tools for indirect prompt injections and rug-pull schema tampering.

The code is fully open-source and comes with benchmarks and unit tests.

Check it out, run the tests on your laptop, and let me know what you think:
🔗 https://github.com/drtikov/microbrainsforagents

Would love your feedback, feature ideas, or PRs!