Skip to main content

Code Agent Virtualization Environment - Virtualize any terminal-based code agent

Project description

CAVE — Code Agent Virtualization Environment

Package: cave-harness

CAVE virtualizes any terminal-based code agent (e.g. Claude Code) behind an HTTP server, so it can be driven, observed, and orchestrated as a service instead of an interactive terminal. It is the agent runtime that PromptWorld and the other *Worlds are built on.

What it gives you

  • An HTTP server around a code agent — start a long-lived agent process and talk to it over HTTP instead of a TTY: inject prompts, stream output, and run it inside a loop.
  • A hook harness — a registry + dispatch layer for Claude Code hooks (session-start / per-turn / stop), so behavior can be layered onto the agent from outside.
  • Loop infrastructure — the autopoiesis / guru loops that keep an agent working across turns.

Install

pip install cave-harness

Optional extras:

pip install "cave-harness[sdna]"   # + sanctuary-dna integration
pip install "cave-harness[dev]"    # + pytest / pytest-asyncio

Run the server

cave-server

This launches the HTTP server (cave.server.http_server:run_server, FastAPI + uvicorn). Point your client at it to register hooks, inject prompts, and drive the virtualized agent.

Where it sits

CAVE is the runtime layer of the SANCREV / GNOSYS stack: the *Worlds (PromptWorld, …) compile their agents and run them on top of the CAVE harness. See the ecosystem docs for the full picture.

Docs

Full documentation and the ecosystem map: https://sancovp.github.io/aisaac/

License

GPBL-1.0 — see LICENSE.

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_harness-0.1.0.tar.gz (174.4 kB view details)

Uploaded Source

Built Distribution

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

cave_harness-0.1.0-py3-none-any.whl (206.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for cave_harness-0.1.0.tar.gz
Algorithm Hash digest
SHA256 64018da4ce10edd11bc977866841c5912b0dc87f062e4f1cf521f7aede35badc
MD5 8716bf93a1dbfed4ea7d0be682b6637d
BLAKE2b-256 12e282d50506855df931007f2f8016848318a6101ea432d66499beeaa49e246f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for cave_harness-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8a8c5fe372e9252c84151664336e9bdf5450b329b658df4b69f2c7acac40963a
MD5 de482614203d1aea2bc56664acc92572
BLAKE2b-256 e440d56cf0885c25a02015cf86d710df0cce04551a3403b7ab9ffb7b2a7ac364

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