Loading repository dataโฆ
Loading repository dataโฆ
calf-ai / repository
๐ฎ Build decentralized multi-agent systems with dynamic agent-to-agent messaging and collaboration
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
Calfkit agents find each other and choreograph work over a mesh โ a highly-connected data streaming network they auto-discover and communicate on. Each agent runs as an independent, event-driven service, so you can build free-flowing multi-agent workflows that collaborate and react to live data streams.
# Recommended for getting started, includes a zero-setup in-memory dev mesh:
pip install 'calfkit[mesh]'
With the [mesh] extra, ck dev spins up a local in-memory mesh for you โ no Docker, no CALFKIT_MESH_URL required.
Save as general.py:
from calfkit import Agent, Handoff, Messaging, OpenAIResponsesModelClient
general = Agent(
name="general",
description="Answers simple questions and routes requests to whoever can handle it.",
system_prompt="You are a general assistant. Defer technical questions to other agents.",
model_client=OpenAIResponsesModelClient(model_name="gpt-5.4"),
peers=[
Messaging(discover=True), # discover and delegate to any agent at runtime
Handoff(discover=True), # discover and hand off to any agent at runtime
],
)
# Starts the agent (and a local mesh if one isn't running):
# ck dev run <file>:<agent>
ck dev run general:general
# In a second terminal, chat with the agent:
ck dev chat
Save as finance.py:
from calfkit import Agent, OpenAIResponsesModelClient
finance = Agent(
name="finance",
description="Answers the user's personal finance questions.",
system_prompt="You are the personal finance specialist. Answer finance-related questions.",
model_client=OpenAIResponsesModelClient(model_name="gpt-5.4"),
)
ck dev run finance:finance
Now ask a finance question in ck dev chat โ general discovers finance at runtime and hands off automatically. No wiring, no orchestrator.
Calfkit agents discover and communicate over a mesh.
For local dev, the bundled in-memory broker (via [mesh] extra) is zero-setup โ see How to run a local mesh with ck dev.
In production, the mesh is Kafka-compatible so you can drop your agent swarms into production-ready Kafka streaming infrastructure you already use.
Want a fully-managed mesh your agents can join from anywhere? Join the beta
docs/.examples/ โ multi-agent team and general framework API examples.Issues and pull requests are welcome. Please open an issue to discuss substantial changes before sending a PR.
See CONTRIBUTING.md.
This project is licensed under the Apache License 2.0. See the LICENSE file for details.