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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64018da4ce10edd11bc977866841c5912b0dc87f062e4f1cf521f7aede35badc
|
|
| MD5 |
8716bf93a1dbfed4ea7d0be682b6637d
|
|
| BLAKE2b-256 |
12e282d50506855df931007f2f8016848318a6101ea432d66499beeaa49e246f
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a8c5fe372e9252c84151664336e9bdf5450b329b658df4b69f2c7acac40963a
|
|
| MD5 |
de482614203d1aea2bc56664acc92572
|
|
| BLAKE2b-256 |
e440d56cf0885c25a02015cf86d710df0cce04551a3403b7ab9ffb7b2a7ac364
|