Skip to main content

AI agent orchestration and token-optimisation system

Project description

Helm

AI agent orchestration and token-optimisation system.

A routing layer dispatches tasks to the cheapest capable worker — local Ollama, MCP expert, Playwright, or Claude Orchestrator — based on confidence scoring. A SENTINEL knowledge file accumulates lessons per-pod so routing improves over time. At the org level, a CEO orchestrator aggregates across pods into exec summaries and a risk register.


Stack

  • Python 3.11+ — core orchestration package (helm/)
  • Pydantic v2 — all schema validation
  • TypeScript — MCP bridge (Sprint 3B)
  • HTML — report output (Sprint 3B)

Project Structure

helm/                   # Python package
tests/
  fixtures/             # Canonical test fixtures — never modified during test runs
  mocks/
    claude_responses/   # Mock Claude API responses for unit tests
    ollama_responses/   # Mock Ollama responses for unit tests
docs/
  tasks/
    worker.md           # helm-builder task queue
    mcp.md              # mcp-builder task queue
  messages/             # Async inter-agent comms
  tracking/
    sprint.md           # Sprint board (source of truth)
  decisions/            # Architecture decision records
  lessons-learned.md    # Known failure patterns — read before every task
  guidelines/
    workflow.md         # Task sizing and completion protocol
CLAUDE.md               # Project rules — read every session via /go
AGENT_SYSTEM.md         # Operating manual for multi-agent coordination

Development Setup

Requires Python 3.11+. The codebase uses datetime.UTC and other 3.11 stdlib additions throughout. Running on an older Python will fail at import time.

Mac (first time)

brew install python@3.11          # install if not present
python3.11 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
pip install fastapi "uvicorn[standard]" httpx
pytest --co -q                    # verify test discovery

Windows / home PC

# Install Python 3.11+ from python.org or winget install Python.Python.3.11
python -m venv .venv
.venv\Scripts\activate
pip install -e ".[dev]"
pip install fastapi "uvicorn[standard]" httpx
pytest --co -q

Cross-machine notes

  • .python-version (repo root) is set to 3.11 — pyenv and most tooling will respect it.
  • pyproject.toml enforces requires-python = ">=3.11"pip install will fail loudly on older Pythons rather than silently producing broken installs.
  • The .[dev] extras install pytest, pytest-timeout, and pytest-cov. FastAPI, uvicorn, and httpx are runtime/test dependencies for the web layer but not yet in [dev] extras (pending S25 dep review).

Run the test suite

pytest                             # all tests
pytest -m sprint25_gate -v        # current sprint gate only
pytest --co -q                    # discovery check (no execution)

Sprint Plan

Sprint Focus Gate
1 Foundation: schemas, briefing, routing, SENTINEL 37 tests green
2 Integration: Ollama worker, circuit breaker, pool queue, quota monitor GP-001/002/003 pass
3A Optimisation: real confidence scoring, shadow testing Shadow tester live
3B Report generator + MCP bridge HTML output from real data
4 Hardening: security audit, 100-task baseline ≥74% token savings
5 Org layer: CEO orchestrator, Org-SENTINEL GP-004 passes
6 Org hardening + optional live viewer 200-task baseline ≥74%

See docs/tracking/sprint.md for current status.


Contributing

Read CLAUDE.md and AGENT_SYSTEM.md before contributing. Branch from develop. PR to develop. Managing Director reviews all merges.

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

helm_ai-0.1.0.tar.gz (446.4 kB view details)

Uploaded Source

Built Distribution

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

helm_ai-0.1.0-py3-none-any.whl (255.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for helm_ai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 733e0510e62e753bcb4f6d4e4418e49c18ad3e4f8c60be6498ee8e1b7d4f962d
MD5 17cc8ab19c2496a76218ec59b2416463
BLAKE2b-256 663fcdd1f55468bea558fb348f1210b30aa823ae895d2aeb8ec61dc216729945

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for helm_ai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8488c7fe0cc21c6cf841890faba6954e2e5bcd36fe91b0ec79dbcfdf1ffdae89
MD5 b1a2433ab42228e072b7fe61463534c0
BLAKE2b-256 4de3c7f1916328c36128435c181e4ef29ca33193025e42deb981900fa3631be8

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