r/crewai • • 1d ago

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

3 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 • • 2d 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 • • 2d ago

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

2 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 • • 2d ago

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

1 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 • • 3d ago

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

2 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 • • 4d 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)

2 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 • • 4d 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 • • 4d ago

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

Thumbnail interconnectd.com
3 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 • • 4d 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 • • 5d ago

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

2 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 • • 5d ago

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

2 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 • • 7d 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 • • 7d 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 • • 7d 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 • • 7d 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!


r/crewai • • 7d ago

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

2 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 • • 8d ago

Beginner Agent A workspace where agents carry out scientific work, evidence stays connected, and scientists can focus on insight.

Thumbnail app.lykeion.tech
1 Upvotes

For anyone using LLMs on a daily basis for research: I built Lykeion, an open-source research lab where agents carry out scientific work, evidence stays connected, and your lab can focus on discovery.

Research today asks people to coordinate an enormous amount of work: finding evidence, developing hypotheses, running experiments and checking results. AI agents can take on more of that work, but a collection of agents still needs a way to work together.

Lykeion is built around that idea. Researchers set the direction, and agents carry out studies within a shared workspace. Evidence and outputs stay connected to the work, while checks and reviews help decide when it is ready to move forward.

In Lykeion, each research question is a "study" that moves through Grounding, Hypotheses, Experimentation and Validation. Only Grounding was evaluated here.
- Agents search OpenAlex, Europe PMC and arXiv through a sources server, and every source they use is recorded.
- A stage advances only when its gate passes. The server runs mechanical checks, such as whether a cited source resolves.
- Review of each study is powered by Jev, which answers focused judgment questions, such as whether a source bears on the question.
- Failed items get a limited redo. If the redo fails, the study blocks and asks its owner.

Project is open to contributors. Let me know what you think!

GitHub: https://github.com/lykeion-tech/lykeion
Discord: https://discord.gg/ed3jsMTs3


r/crewai • • 8d ago

Beginner Agent StarNet OS — Has anyone fixed the “No computer in agent’s workspace” error?

2 Upvotes

I’m configuring a multi-agent system using StarNet on macOS and could use some help from anyone who has successfully configured agent delegation and automated workflows.

The setup includes a primary agent responsible for coordinating several specialized agents and managing task delegation between them.

The station layout, rooms, workstations, and workflow BAYs are configured, but I’ve encountered an issue preventing the agents from communicating and delegating tasks properly.

The problem:
Under Connect → Abilities → Tools, the primary agent shows:
Available: 0
Need a Prop: 8
Task Delegation: NEEDS PROP — Not Granted
Error: “No computer in this agent’s workspace”
I’ve assigned a Console to the agent’s room, verified placement, tried Console L, refreshed permissions, and checked workstation assignments.
Nothing seems to resolve the error.

What I’m trying to accomplish:
I want multiple agents to work together through a reliable workflow where a coordinating agent receives a task, delegates it to another agent, and routes the results back for review.
The goal is reliable agent-to-agent communication and task delegation while maintaining human approval for sensitive actions.

My questions:
What exactly counts as a computer or workstation in StarNet?
Does a Console need to be linked to an agent in a specific way?
Has anyone successfully enabled team.dispatch and the other delegation tools?
Can agents work across multiple rooms and BAYs?
Are additional permissions required beyond equipment placement?
Can anyone share a working configuration or explain how they got delegation functioning?
I’ve already tried several troubleshooting steps and would prefer to avoid rebuilding the existing station if possible.
I’d appreciate any guidance from people who have successfully configured agent workstations, delegation permissions, and multi-agent workflows.
Thanks!


r/crewai • • 8d ago

Beginner Agent 算力乘数:让每个 Token 干更多活 Spoiler

1 Upvotes

by SnowFox

如何把 Anthropic 的“算力乘数”原理,应用在 Agent 使用模型的效率上,从而减少 Token 的使用量?这个方向非常值得研究。我认为,Anthropic 所说的“算力乘数”如果应用到 Agent 系统中,真正有价值的地方不只是减少模型调用次数,而是改变 Agent 使用模型的工作方式。

可以把它转化成一个工程目标:让每一个 Token 都产生尽可能大的有效认知价值,让模型只在真正需要智能的地方消耗算力。

这里有一个关键区别:传统优化是让模型少说话、缩短 Prompt、减少输出 Token;算力乘数优化是通过系统架构、任务分解、状态管理、缓存、模型分工,让一次模型调用完成过去多次调用才能完成的工作。后者的潜力更大——它甚至可能在不降低任务质量的情况下,大幅降低 Agent 的 Token 成本。

01 · 先分清:算力乘数到底是什么

Anthropic 在其 2026 年公开的公司材料中,将 Compute Multipliers 定义为:通过算法和方法改进,提高单位算力所能产生的有效产出。它的算力效率主要包括三个方向——训练效率(用更少的训练计算获得相同甚至更强的模型能力)、推理效率(用更少的推理计算获得相同水平的模型表现)、多芯片计算调度(根据工作负载、价格和性能灵活分配计算资源)。

还有一个很重要的思想:这些乘数可以叠加。模型帮助研究人员发现新的效率改进,改进后的模型又能加速下一轮改进。

有效智能产出 = 模型能力 × 调用效率 × 上下文效率 × 工具效率

把 Anthropic 的概念迁移到 Agent 领域,就得到这个公式。它表达的是:不能只追求模型更便宜,而要让同样的模型预算完成更多有效工作。

02 · 六种乘数:Agent 效率的六个旋钮

M1 · 上下文乘数:减少重复阅读

不让 Agent 每次启动都重新读取全部历史、规则、记忆和知识。HMR 提供相关记忆,而不是整个记忆库;HKC 按任务提供知识片段;当前任务只保留必要状态;长期上下文转化为可复用的结构化摘要。目标是减少重复输入 Token,同时保留任务连续性。

M2 · 模型能力乘数:让合适的模型做合适的事

不要所有任务都交给最强模型。分类、提取、格式转换交给小模型;普通分析用中等模型;复杂推理、重大决策才上强模型,高难度问题再升级。主管负责任务协调,模型路由器负责选择模型,两者不能混为一谈。

M3 · 调用乘数:一次调用完成更多工作

多个独立的简单任务合并处理;结构化输出替代多轮问答;批量提取、批量分类、批量分析;工具能够确定性完成的事情,不再让模型反复推理。

M4 · 工具乘数:让程序代替模型做机械工作

财务 Agent 要分析 100 条交易记录:低效做法是模型逐条阅读、计算、汇总;高效做法是 Python 完成计算和聚合,模型只分析异常与原因。模型负责认知,程序负责确定性计算。

M5 · 记忆乘数:让过去的工作成果成为下一次的起点

保存成功任务的执行路径、已经验证的判断和结论、常用工具调用模板、失败案例及其修正方法。下次遇到相似任务,优先复用已有成果,而不是重新推理。

M6 · 经验乘数:让 Agent 越用越省

统计哪些任务不需要强模型;发现哪些 Prompt 可以缩短;发现哪些工具调用经常重复;识别哪些任务可以直接走历史成功路径;根据真实执行结果调整路由策略。这使效率优化从人工配置变成持续学习。

这六种里最值得重视的是 M5 和 M6:它们让效率收益能够跨任务积累,而不只是优化单次请求。

03 · 最关键的设计:别让模型干所有计算

我认为这是整个方案最有价值的一点。把 Agent 的工作划分成三类: 工作类型

执行主体

是否需要 LLM 确定性计算

Python / Runtime

不需要 已知规则判断

Rule Engine

通常不需要 不确定性认知

LLM

需要

举个财务 Agent 的例子。用户说:“帮我统计本月的支出,并找出异常消费。”

传统模式:LLM 阅读交易数据 → LLM 计算每笔金额 → LLM 分类和汇总 → LLM 再次分析异常。四步全在烧 Token。

算力乘数模式:LLM 理解用户意图、生成分析任务 → Runtime / Python 完成数据清洗、分类统计、金额计算、异常筛选 → LLM 只分析异常原因、生成结论 → Harness 检查结果和执行证据。

这里不是简单地减少模型调用,而是把原本由 LLM 消耗的计算工作转移给更合适的执行主体。这才是 Agent 层面的算力乘数。

04 · ACM:一套 Runtime 底座,不拆成六个 Agent

我不建议把这六种能力分别做成六个 Agent。它们应该属于 Agent Runtime 的底层效率基础设施,所有 Agent 共用。暂时命名为 ACM — Agent Compute Multiplier(智能体算力乘数引擎):位于 Agent Harness 与模型路由层之间,负责优化任务执行过程中的认知资源分配。

它的位置夹在中间:上面是业务 Agent 与 Harness(行为约束、权限、执行契约、预算、验收),下面是模型执行层(强模型、中模型、小模型、本地模型)和 HMR / HKC / VecRecall(记忆、知识、检索与经验资产)。核心优化层装六个模块:Context Optimizer(上下文优化)、Model Router(模型调度)、Call Optimizer(调用优化)、Tool Executor(工具执行)、Memory Reuse(记忆复用)、Experience Learner(经验学习)。 模块

核心职责 Harness 能不能执行、是否符合规则 ACM 怎样用最少的资源完成任务 Model Router 哪个模型最适合当前子任务 HMR 过去有哪些相关记忆 HKC 有哪些可复用知识 Agent 要完成什么业务目标 ACM 运行时闭环流程图

ACM 运行时闭环:从任务提交、经验复用到质量验收与策略沉淀

尤其要避免 ACM 自己决定是否可以绕过 Harness。它只能优化合法执行路径,不能修改安全边界。

05 · 直接抄作业:Anthropic 已验证的七种手段

Anthropic 的 Claude 平台在 2026 年公布了一份成本与智能优化指南,其中有几项与 Agent Runtime 高度相关的技术,非常值得直接采用: 技术

对 Agent 的价值 Prompt Caching 重复上下文不必每次按完整输入价格付费 Tool Search 不需要的工具定义不进入上下文 Programmatic Tool Calling 多个工具操作由程序执行,减少中间结果进入模型上下文 Context Compaction 清理过期上下文,保留必要状态 Model Selection 根据任务难度选择不同模型 Effort Control 根据任务难度控制推理投入 Output Limits 防止模型产生不必要的长输出

几个公开测试结果很有参考价值:Prompt Caching 在特定研究 Agent 测试中带来约 4.8~7.2 倍的成本效率改善;工具定义延迟加载在 500 个工具定义的测试场景中减少了约 45% 成本;程序化工具调用在特定 Agent 搜索基准中减少了约 24% 输入 Token;对特定数据分析任务,通过代码执行处理数据,Token 成本减少了约 92%。

注意口径:这些是特定测试场景的数据,不是所有 Agent 都能获得相同收益。我的建议是不要重新发明这些已经成熟的技术,应该把它们纳入 ACM 的基础能力,再建立自己的经验乘数机制。

06 · 最有潜力的一步:让 Agent 自己学会省 Token

这才是我认为最有潜力的部分。让 ACM 对每一次任务建立执行成本记录:

执行成本记录示例

task_id: finance.monthly_report model_calls: 5 input_tokens: 12000 output_tokens: 1800 cached_input_tokens: 0 tool_calls: 8 retry_count: 1 result_quality: 0.96 task_success: true

下一次执行相同类型任务时,ACM 分析:哪些上下文重复读取了?哪些模型调用可以合并?哪些计算可以交给 Python?哪些工具结果可以缓存?是否使用了过高规格的模型?哪些推理步骤可以复用?然后产生新的执行策略。

但必须有一个原则:效率优化不能以牺牲任务正确性为代价。所以不能只比较 Token 数量,要同时衡量任务成功率、结果质量、执行成本和延迟。

我建议 ACM 使用核心指标 E = Q × S / C,其中 Q 是结果质量,S 是任务成功率,C 是实际模型成本(这是我们拟定的工程效率指标,没有官方出处)。另外要分别统计输入 Token、输出 Token、缓存读取 Token、模型调用次数和工具执行次数——因为缓存可能降低费用,却不一定减少模型实际读取的 Token。

07 · 落地顺序:P0 到 P5,先建基线

我不建议一开始就开发完整 ACM。先把最有收益、风险最低的能力做出来: 阶段

建设内容

目的 P0

Token 成本统计与执行追踪

建立真实基线 P1

上下文优化、Prompt Cache、工具延迟加载

消除重复消耗 P2

模型动态路由、难度分级

减少强模型使用 P3

程序化工具调用、批量任务执行

减少模型中间推理 P4

HMR / HKC 记忆知识复用

减少重复认知 P5

经验学习与自动策略优化

建立持续增长的乘数

每个阶段都需要基准测试,不能只看 Token 降低比例,还要检查任务质量有没有下降。更深一层,可以把 ACM 分成两个层次:第一层是静态效率优化——工程师预先设计的规则,比如缓存、上下文过滤、模型路由、程序化执行;第二层是动态效率进化——Agent 从历史任务中发现新的优化方法,经过独立测试后,将有效策略加入 ACM。

两者结合形成一个循环:执行任务 → 记录 Token、成本、质量和执行路径 → 发现低效率环节 → 生成优化策略候选 → 独立评估与回归测试 → 批准晋级,更新 ACM 策略 → 进入下一轮执行。这也符合之前提出的 AI 自我改进思路:模型可以提出改进,但必须经过独立评估闸门才能晋级。

同样的 Token,完成更多任务。 每一次任务执行,都为下一次执行积累效率。

我的最终判断:这项研究不应该停留在“Agent Token 优化”层面,它值得发展成一个独立的 Runtime 基础能力——ACM 引擎。它追求的三个“同样”:同样的模型预算,获得更高质量的结果;同样的模型能力,支持更多 Agent 并发工作;每一次任务执行,都能为下一次执行积累效率。这就是把 Anthropic 的算力乘数思想,从模型训练与推理领域迁移到 Agent 系统架构中的价值。

来源说明:Anthropic 2026 年公开的公司材料(Compute Multipliers 定义与三个效率方向);Anthropic — Optimizing for Cost and Intelligence(Claude 平台成本与智能优化指南,Prompt Caching 4.8~7.2 倍、工具延迟加载约 45%、程序化工具调用约 24%、代码执行处理数据约 92% 均为该指南公布的特定测试场景数据)。文中“有效智能产出”公式与 E = Q × S / C 为作者为 Agent Runtime 建立的工程模型,无官方出处;ACM 架构与 P0–P5 路线图为作者自己的设计方案。


r/crewai • • 8d ago

Beginner Agent I built a shared memory for coding agents (Claude Code, Cursor, Codex and more). 1.6 just shipped: no Node needed, daily backups, 7 default tools

1 Upvotes

Tell one agent something once and the others can find it. That is Monomem: one SQLite file on your own computer, shared by every MCP app you connect. No cloud, no API keys, no hidden model calls. MIT licensed.

Each note says which app wrote it and keeps its earlier versions, so you can replace, archive or roll back. If a write looks like a planted instruction or contains a secret, it is held for you to approve, and other agents never see it until you do.

What’s new in 1.6:

One download, nothing else to install. It carries its own Node. Windows, Mac and Linux, with checksums and a build attestation.

Tool list cut from 37 to 16, with 7 shown by default. Default tool descriptions are about 1,540 tokens, down from about 5,300 for 1.5’s defaults.

Daily automatic backups while it runs, and a one-command restore.

Sync between your own computers with a shared folder or private git repo. Files are encrypted, and there is no server.

Redesigned dashboard: Notes, Review, Held and Activity tabs, dark and light, works as an installable web app.

monomem update checks the checksum before it swaps anything.

Setup now handles 17 apps (Claude Code, Claude Desktop, Cursor, Codex CLI, Gemini CLI, VS Code, Zed, Windsurf, Kiro, Cline, Copilot CLI, OpenCode and others). It shows what it will change, makes a backup, and asks first.

monomem rollback --note <id> undoes a note and what was built on it.

What it does not do (please read this before relying on it):

The write check is pattern matching. A reworded attack can get through. 2 of the 26 attacks it replays are known misses.

Agents that can run shell commands or open the database file can bypass it.

The download isn’t code-signed yet, and I haven’t tested it on a Mac.

Search is keyword-based unless you run a local embedding model.

claude.ai and ChatGPT support (OAuth) is a preview and off by default.

Try it without touching your notes: monomem demo runs a short tour on a throwaway store.

After upgrading from 1.5, run monomem setup again. Your apps keep running the old pinned version until you do.

Repo: https://github.com/calasdan-sketch/monomem

Happy to answer questions, and I want bug reports, especially from Mac users.


r/crewai • • 10d ago

Beginner Agent CodingDude v0.4.0 — an AGPL coding agent that won't push code it hasn't reviewed

4 Upvotes

I've been building CodingDude for a while and just published v0.4.0. It's a single-user coding agent that runs against your own repo: reads and edits code, runs your gates (pytest/ruff/mypy, builds, frontend tests), plans non-trivial work, and reports back with evidence before claiming anything is done.

The parts I haven't seen much elsewhere:

* Review is a gate, not a habit. Pushing requires a recorded two-axis review (Standards + Spec) of the exact diff. The record is content-addressed, so if you fix a finding after reviewing, the record is void and you re-review.

* Spend ceilings are enforced, not reported. `max_cost_usd` / `max_total_tokens` are checked before each model request and stop the run. No $40 surprise at the end.

* Planning is first-class — PRDs, tech designs, roadmap items and tickets are stored artifacts with their own lifecycles and per-step evidence, not a diary in the system prompt.

* Tiered approvals — safe actions run automatically; pushes, installs and main-tree mutations gate behind an approval card in the UI.

* Per-request context guarding + caching on every agent (main loop, retries, graders), so long sessions compact instead of dying on a context-limit error.

Python 3.12, needs a model key (DeepSeek by default; any OpenAI-compatible provider via config), Windows is the verified CI platform, web UI on localhost.

Honest limits: single-user, self-hosted, no SaaS, no multi-tenant anything. AGPL-3.0-or-later (commercial licence available if AGPL doesn't fit).

Repo: https://github.com/cybersenses/codingdude

Wiki (20 pages on the architecture and the design decisions): https://github.com/cybersenses/codingdude/wiki

Disclosure: I'm the author. Happy to hear where the gates would just annoy you — that's the design tension I keep hitting.


r/crewai • • 11d ago

Beginner Agent MindGate – local-first MCP memory so your AI coding agents stop starting from zero

1 Upvotes
If you use more than one AI coding agent on the same repo (looking at you, Cursor + Claude Code + Codex), you've felt this: every agent is amnesiac. MindGate fixes that with one shared local memory file.


- 
**Local-first**
: SQLite + FTS5 BM25, `chmod 600`, zero network code
- 
**Shared across agents**
: any MCP stdio client plugs in (Antigravity, Cursor, Claude Desktop, OpenCode, Codex, Windsurf, Cline)
- 
**Handoffs**
: structured session summaries so session #2 starts where session #1 ended
- 
**Safe file writes**
: atomic, `.bak` backups, hand-written AGENTS.md protected unless `force: true`
- 
**Secret redaction**
 on write (pattern-based, best-effort — documented as such)
- MIT, v1.2.0, 29 passing tests


Repo & docs (EN/AR): https://github.com/aaserag1/mindgate-mcp


Not affiliated with any model vendor. Feedback welcome — especially from people running multi-agent workflows.

r/crewai • • 12d ago

Skilled Agent RayTrace - "Eye of Sauron" for your AI agents

1 Upvotes

I keep shipping more with Claude Code and Codex, but a day later I often can't tell which prompt caused which change — and I got tired of taking the agent's recap at face value.

So we built RayTrace, a free MIT-licensed sandbox that sits outside the agent. It records every command and its real exit code, the file diffs, and any outbound network, and puts that next to the tool calls the agent reported. It runs locally: a Docker container under gVisor, inside a Linux VM made with Lima. Your own files aren't touched, and nothing is uploaded. The dashboard is at http://127.0.0.1:8797.

It's at v0.12 on npm (@raytrace-cli/cli) and PyPI (raytrace-cli). Windows is still experimental.

If you don't want to install anything, there's a no-account interactive demo: https://app.raytracer.si/demo

Repo: https://github.com/Godcreatebugs/raytrace-cli
Site: https://www.raytracer.si/

For people who already use Claude Code or Codex: what's the first thing you'd want to check in a session recording — a file you asked the agent to leave alone, a failing test it said passed, or an unexpected network call?


r/crewai • • 14d ago

Beginner Agent what do u guys let an agent do in a signed work browser?

1 Upvotes

Claude in Chrome and Tasklet got me thinking about this. i'd be fine with an agent opening our ticketing app to summarize a ticket. closing the ticket feels like something i'd want a person to approve. same site, same login.

we've had calls with LayerX and Bay and haven't decided on anything. the question i keep coming back to is where that restriction would live. a site allowlist can get us as far as the ticketing app. we still need to decide what the agent can do once it's there.

if you've rolled this out, where do you enforce the difference between letting an agent read something and letting it change it?