Skip to content

About

Standalone cartridge agent for fleet orchestration - handles cartridge building, scene management, and bridge communications

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

cartridge-agent — Standalone Cartridge Agent

A standalone agent powered by swappable behavior cartridges. Load capabilities, not code.

What This Gives You

  • Cartridge loading — dynamically load behavior modules (debugging, profiling, docs, testing)
  • Slot management — multiple cartridge slots with priority ordering
  • Scene-based behavior — switch cartridge sets based on the current "scene" (development, production, debugging)
  • Bridge interface — communicate with fleet services and other cartridge agents
  • CLI — cartridge-agent load <name>, cartridge-agent swap <old> <new>

Quick Start

pip install cartridge-agent
from cartridge_agent import CartridgeAgent

agent = CartridgeAgent(id="worker-3")

# Load cartridges
agent.load("rust-builder")
agent.load("docs-writer")
agent.load("benchmark-runner")

# Run a task — auto-selects the right cartridge
result = agent.execute("Build the Rust library")
print(result.cartridge_used)  # "rust-builder"

# Swap cartridges at runtime
agent.swap("docs-writer", "api-docs-writer")

# Scene-based switching
agent.set_scene("debugging")
# Automatically loads: debugging-cartridge, logging-cartridge

API Reference

CartridgeAgent(id) — load(cartridge), swap(old, new), execute(task), set_scene(scene)

Slot(priority, cartridge) — Ordered cartridge slots

Scene(name, cartridges) — Named set of cartridges

Bridge — Fleet communication interface

How It Fits

A standalone agent that uses cartridge-mcp for cartridge management in the SuperInstance fleet.

Testing

pytest tests/

Installation

pip install cartridge-agent

Python 3.10+. MIT license.

About

Standalone cartridge agent for fleet orchestration - handles cartridge building, scene management, and bridge communications

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages