Skip to main content

Connect AI agents like code — compose any agents into teams with a tiny algebra, all topologies, a programmable message state machine, and a proven-team library. CAVE = Coding Agent Virtualization Environment.

Project description

cave-teams

Connect AI agents like code. Wire your whole team of AI agents with one line instead of hundreds of lines of glue — add one, swap one, or reuse a whole team just by changing a word.

cave-teams is the programmable, provider-agnostic version of Claude Code Teams. The agents underneath can be anything (Claude Code, Codex, MiniMax, a model call, a shell command, a Python function); you control the flow with code. CAVE = Coding Agent Virtualization Environment.

pip install cave-teams        # zero-dependency core

The one idea

Everything is the same shape — a building block. An agent is one, a team is one, a whole world is one. A composition of building blocks is a building block, so teams nest inside teams forever (agent = team = world). That is why two operators wire anything:

import cave_teams
from cave_teams import AgentLink

research = AgentLink("research", "Find 3 key facts.")
writer   = AgentLink("writer",   "Turn the facts into a paragraph.")

team = research >> writer                      # >>  run in order
flow = research >> (security | perf | tests) >> ship   # |  run at the same time

result = await flow.execute({"goal": "ship the feature"})

What it does

  • Program any control flow — agents fire on conditions you write (when_flag, after, any predicate). The message state machine, not a markdown to-do list.
  • Any agentsAgentLink (Claude Code / MiniMax), HeavenMiniMaxLink (a real coding agent with bash + file-edit), or lift() any function / callable.
  • Every topology — sequential, parallel, branch, loop-until-approved, join (DAG), typed hand-off, shared-workspace arena, tournament, evolve, season — and they nest.
  • Provable wiring — termination, gate-soundness, and distribution are mechanically tested.
  • A whole world of agentsGameWorld, an economic crafter sim, agents that compete and evolve.
  • Build once, reuse forever — save a proven team to your golden library and drop it into any project as one building block.

Two layers

  • The native API is how you program — the >> / | DSL and the pattern functions.
  • cave() is the metacontrol function on top: it drives the whole API from a data spec, in any sequence — serialize a team, run it from JSON, save/reuse a proven team, federate caves.

Claude Code plugin

This repo is also a Claude Code plugin (plugin/). It ships a skill per pattern — the language (cave-teams), the metacontrol (cave), and one each for sequential / parallel / branch / gate / conditions / dovetail / dag / blackboard / tournament / evolve / season / world / sim / metacog. .claude/skills, .codex/skills, and .agent/skills symlink to the same plugin/skills, so any coding agent that clones the repo picks them up.

MIT.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cave_teams-0.1.0.tar.gz (68.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cave_teams-0.1.0-py3-none-any.whl (82.2 kB view details)

Uploaded Python 3

File details

Details for the file cave_teams-0.1.0.tar.gz.

File metadata

  • Download URL: cave_teams-0.1.0.tar.gz
  • Upload date:
  • Size: 68.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.6

File hashes

Hashes for cave_teams-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4db7e9d1d29433e8fcdbe870d5e20df210c8aea7a492bbce99163aeb94f47254
MD5 28f08e6512a02531721cb7de970fe9d7
BLAKE2b-256 46aea51f49982db526104e5bbdef94cd04de71549d3b9505067f848337d7a4b3

See more details on using hashes here.

File details

Details for the file cave_teams-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: cave_teams-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 82.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.6

File hashes

Hashes for cave_teams-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 62c5abea1ef9d65b3ccf1197ee87bc75185d74318a660a2cf43f8a1964fcff2a
MD5 d44fdc92f7640a52d736d66330c8b099
BLAKE2b-256 a4aabb91e4aacdd593672fab249d53ebd8d80d30dfbc0eb309dc9bc794dbdc74

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page