Skip to main content

CampfireValley

CampfireValley is a Campfires-based multi-agent workspace with a LiteGraph web UI, dock-based valley discovery, and a Docker stack that runs a local valley alongside a remote demo valley.

The workflow actively maintained in this repository is the web UI and Docker stack:

  • Local valley UI on http://localhost:8000
  • Remote demo valley UI on http://localhost:8001
  • Redis-backed dock discovery and service catalog exchange
  • Auditor-driven campfire management, including natural-language camper creation
  • Visual graph links between valley, campfire, auditor, and campers

What Is Available Now

Web UI

  • Local and remote valleys rendered on a LiteGraph canvas
  • Left sidebar cards for the local valley, dock state, and discovered remote valleys
  • Stable valley IDs shown in the sidebar and remote discovery cards
  • Local and remote campfire detail panels with chat and action controls
  • Snapshots, rounds, import/export, logs, tools, and model selection

Local Campfire Management

  • Chat directly with local campfires and campers
  • Use the Auditor as the orchestrator for a campfire team
  • Ask deterministic read-only questions about workflow, settings, tools, and execution order
  • Create campers with natural language, for example:
Create a new camper called summary-bot for this campfire.
  • Reorder workflow steps with natural language
  • Run self audit and self audit cid:<correlation_id>
  • Clean up older legacy backend auditor campfires from the valley details panel

Watch Workflow Improvements

  • Watch planning now prefers specialist non-auditor campers for discover and execute when a suitable worker is available
  • Auditor verification and improvement rounds can feed learning back into future watch runs through the runtime learning bucket
  • Generated watch reports are saved as HTML files and can be opened directly from emitted file:///... links in demo output
  • Final watch answers can include a Role Contributions appendix so verification can confirm how specialist steps contributed to the result

Legal Contract Demo

  • examples/legal_team_demo.py provisions a real Legal Team, Legal Team Auditor, Contract Researcher, Contract Analyst, and Legal Reporter
  • The demo extracts text from inspiration/Software Development Agreement - Hibbert IT Solutions (1).pdf with pypdf
  • Full runs execute the normal watch flow: discover -> plan -> execute -> verify -> improve
  • Demo output now includes direct file links for the reports directory, watch report HTML, and saved JSON result

Remote Valley and Campfire Discovery

  • Discover remote valleys through Dock broadcasts
  • Inspect remote valley route addresses, stable IDs, exposed campfires, and exposed services
  • Open a remote campfire and inspect:
    • visible campfires
    • visible services
    • advertised remote campers
    • task types, capabilities, exposure, and rounds support
  • Message remote campfires and add them to rounds
  • Remote admin controls remain disabled by design

Service Catalog and Addressing

  • Local services are described through service manifests
  • Discovery payloads include stable valley IDs, public addresses, and exposed service summaries
  • Campfires can be resolved by identifier as well as by display name
  • Remote service manifests include capabilities, task types, summaries, and valley-scoped addresses

Quick Start

Docker Compose

  1. Clone the repository:
git clone https://github.com/MikeHibbert/pyCampfireValley.git
cd CampfireValley
  1. Copy the environment file:
cp .env.example .env
  1. Update .env if needed:
  • OPENROUTER_API_KEY
  • OLLAMA_HOST
  • VALLEY_IDENTIFIER
  • CAMPFIRE_IDENTIFIER
  • DISCORD_BOT_TOKEN
  • DISCORD_CHANNEL
  1. Start the stack:
docker compose up -d --build
  1. Open the running services:
  • Local valley UI: http://localhost:8000
  • Remote demo valley UI: http://localhost:8001
  • Prometheus: http://localhost:9090

Default Compose Services

Service Container Host Port Purpose
Local valley web app campfire-valley-web 8000 Main UI and local valley
Remote demo valley campfire-valley-remote 8001 Remote discovery target
Redis campfire-redis internal MCP broker and shared state
Prometheus campfire-prometheus 9090 Metrics
Optional Discord bot campfire-discord-bot none Routes Discord requests into the valley

Common UI Workflows

Create a Camper

  1. Open http://localhost:8000
  2. Select the local campfire or its Auditor
  3. Send a message such as:
Create a new camper called research-assistant for this campfire.
  1. Wait for the graph to refresh
  2. The new camper should appear with a single structural link from the parent campfire

Inspect a Remote Campfire

  1. Select a discovered remote valley
  2. Select one of its visible campfires
  3. Use the remote detail actions:
    • Message This Campfire
    • Use In Rounds
    • Open Remote Valley
    • Show Visible Services

Work With Snapshots and Rounds

  • Save Valley and Load Valley save and restore graph snapshots
  • Import Campfire and export actions move campfire configs across valleys
  • Rounds builds ordered local or remote service chains when those services are advertised

Useful REST Endpoints

These endpoints are available from either web server instance:

  • GET /api/campfires
  • GET /api/services
  • GET /api/dock/status
  • GET /api/dock/valleys
  • GET /api/valley/details
  • GET /api/campfire/details
  • POST /api/voice/ingest
  • POST /api/auditors/cleanup
  • GET /api/rounds/catalog
  • POST /api/rounds/run
  • GET /api/valley/snapshots
  • POST /api/valley/save

Voice Ingestion

POST /api/voice/ingest accepts text directly and can also operate in auditor mode.

Typical payload fields:

  • text
  • campfire
  • role_prompt
  • auditor_mode
  • admin_token for admin-only actions

Development

Run Tests

pip install -e ".[dev]"
pytest

Focused watch and legal checks:

pytest tests/test_watch_mode.py tests/test_legal_e2e.py -q
python examples/legal_team_demo.py --setup-only --workspace demo_workspace/legal_team_smoke
python examples/legal_team_demo.py --workspace demo_workspace/legal_team_full_tuned --watch-max-retries 1

Rebuild the UI Stack

docker compose up -d --build campfire-valley campfire-valley-remote

Documentation

License

MIT License. See LICENSE.

Release files for campfirevalley 1.2.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for campfirevalley 1.2.6
File Size Uploaded
campfirevalley-1.2.6.tar.gz 538.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for campfirevalley 1.2.6
File Interpreter ABI Platform
campfirevalley-1.2.6-py3-none-any.whl Python 3 none any Details

Total release size: 1.1 MB

Release files / campfirevalley-1.2.6.tar.gz

Download URL campfirevalley-1.2.6.tar.gz
Size 538.7 kB
Tags Source
SHA-256 checksum
How to use checksums
28b94a7fd3df45530d3f5ac865f9a91dabb81d2236a0d9a3b788934ef1d76aac
BLAKE2b-256 checksum
How to use checksums
0b9ac234c1ce20f7fed476365ed5febb04e8736ece40a41dd67a1fa50f877c47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.8

Release files / campfirevalley-1.2.6-py3-none-any.whl

Download URL campfirevalley-1.2.6-py3-none-any.whl
Size 531.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
22e2e90ccf4995b0b8d4e197d5d42a0bbd1bd2d403f3d4ee028cba60e361f6c2
BLAKE2b-256 checksum
How to use checksums
bb48c94f22f1a6683aaf19856684ae45b3589b0a7b0670b5364892fda524ee3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.8

Release history Release notifications | RSS feed

1.2.8

2 release files

1.2.7

2 release files

This release

1.2.6 This release

2 release files

1.2.5

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page