Skip to main content
πŸ‘₯
CrewAI+Stompy

A crew that works from one shared record

Each agent has its own role. The record of what was decided is shared.

The Problem

A crew divides work between roles. What one agent works out is, by default, available to the others only if it is passed along in a task output.

Between runs, the next crew starts from the task description and nothing else.

How Stompy Helps

Stompy gives the crew one project that every agent can read. A researcher locks what was found, with where it came from. A writer searches it. A reviewer checks a draft against what was agreed.

Wrap the two REST functions as CrewAI tools and give each role the tools it should have: read for most, write for one or two. That keeps the record curated rather than a log of everything every agent said.

The same project is readable from outside the crew, by you in a terminal or by another tool, which is how you stay in charge of what it holds.

In our own six-agent benchmark (one full-stack feature, built by six agents, run on 7 March with Sonnet 4.6 and Opus 4.6), the swarm working from a shared record cost 43% less than the same swarm without one. That is one run of one workload, not a saving to expect on yours. Haiku 4.5 went from 0 of 40 tasks to 39 of 40. The full tables are on the deep dive page.

Integration Walkthrough

1

Give each role two plain functions

Two plain functions over the project's REST API. A project API key is minted by the project's owner while signed in, and works for that one project only. Read the project's own contexts and search with it; managing the project still needs a signed-in user.

import os
import httpx
BASE = "https://api.stompy.ai/api/v1/projects/my-project"
HEADERS = {"Authorization": f"Bearer {os.environ['STOMPY_PROJECT_KEY']}"}
def lock(topic: str, content: str) -> dict:
"""Keep a decision. Only called when the person asked for it."""
r = httpx.post(f"{BASE}/contexts", headers=HEADERS,
json={"topic": topic, "content": content})
r.raise_for_status()
return r.json()
def search(query: str) -> dict:
"""Find what the project already holds, by meaning."""
r = httpx.get(f"{BASE}/search", headers=HEADERS, params={"query": query})
r.raise_for_status()
return r.json()
2

Hand them to the roles that need them

CrewAI's tool decorator turns a function into a tool. Give search to every role; give lock to the role you want writing.

from crewai import Agent
from crewai.tools import tool
search_tool = tool("Search the project record")(search)
lock_tool = tool("Keep a decision in the project record")(lock)
researcher = Agent(role="Researcher", goal="...", backstory="...", tools=[search_tool, lock_tool])
writer = Agent(role="Writer", goal="...", backstory="...", tools=[search_tool])
3

Start from the brief

project_brief compiles the project's locked contexts and ticket summary into a short overview a new session can read. It is a summary of what you chose to keep, not a transcript.

project_brief(project="my-project")

What You Get

  • One project every role can read, so findings do not have to be passed along by hand
  • Read and write are granted per role, which keeps the record curated
  • You can read and correct the same record from outside the crew
  • Entries are versioned, so a revised decision keeps its history

Start your own record

Join the waitlist and we will tell you when your place is ready.