Skip to main content

Local-first AI agent platform with formal handoff protocol for regulated industries

Project description

Local Agent Foundry

CI Python 3.11+ License: MIT Tests NHS DTAC ISO 27001

Agents building agents. Offline. Auditable. Regulated-industry ready.

A desktop platform for running, managing, and orchestrating AI agents entirely offline. Agents build, test, and deploy other agents — with full audit trails and compliance documentation for NHS, finance, and government.

Dashboard Screenshot

CLI Demo

Dashboard Demo

Why

No existing platform combines:

  • Local-only operation (air-gapped, GDPR-compliant)
  • Agent orchestration (multi-agent with formal handoffs)
  • Observability (audit trail, cost tracking, health)
  • Quality gates (behavioural tests for agents)
  • Regulated industry readiness (compliance docs, model cards)

Quick Start

# Install
pip install agent-foundry-local

# Or from source
git clone https://github.com/vystartasv/agent-foundry.git
cd agent-foundry
pip install -e ".[dev]"

# Start an agent
foundry agent start builder --model qwen-8b --tools terminal,file

# Run a task
foundry agent run builder "Create a test file"

# Hand off to a reviewer
foundry agent start reviewer --model qwen-8b --tools terminal,file
foundry handoff create --from builder --to reviewer --task "Review the work"

# Check quality gates
foundry gate run --agent builder --file output.txt

# Export audit log
foundry audit export --output compliance-report.json

Architecture

Six layers, running entirely on your machine:

Desktop UI (Tauri) ·················· [Phase 2]
CLI (`foundry`) ····················· [MVP ✓]
Agent Engine · Handoff Protocol ★ · Quality Gates · Observability
Model Runtime (oMLX · llama.cpp · Ollama)
Tool Registry (MCP · Hermes skills)
Storage (SQLite)

The handoff protocol is the core differentiator — a formal standard for agents to pass work between each other with full state preservation and verification. Every handoff is auditable.

For Regulated Industries

Pre-built compliance documentation included in docs/compliance/:

  • DPIA Template — Data Protection Impact Assessment
  • Model Cards — Per-model capability and limitation documentation
  • GDPR Checklist — Article-by-article compliance verification
  • NHS DTAC Alignment — Digital Technology Assessment Criteria mapping
  • ISO 27001 Control Mapping — All 71 Annex A controls mapped
  • Deployment Architecture — On-prem deployment patterns, data flows

Zero cloud dependency. Air-gap capable. No data leaves your device.

Requirements

  • Python 3.11+
  • macOS (Apple Silicon), Linux, or Windows
  • 16GB+ RAM (32GB recommended for 8B+ models)
  • No network required (offline operation after model download)

Model Backends

Backend Status Notes
oMLX ✅ Supported Apple Silicon, local inference
llama.cpp ✅ Supported Cross-platform GGUF models
Ollama ✅ Supported Easy model management
Dummy ✅ Testing Simulated backend for tests

Commands

foundry agent start|stop|list|stats|run    Manage agents
foundry handoff create|accept|complete|list|show    Formal work transfer
foundry gate run                          Quality checks
foundry skill discover|list|show          Agent skills
foundry audit show|export|stats           Audit trail
foundry backend health|models|test        Backend management

Development

pip install -e ".[dev]"
pytest                    # 163 tests
foundry --help            # CLI reference

Documentation

Roadmap

  • CLI MVP — agent engine, handoff, gates, audit
  • Compliance pack — NHS, GDPR, ISO 27001
  • M365 Bridge — SharePoint, Teams, Graph API integration
  • Multi-machine orchestration
  • Cloud model fallback (opt-in)
  • Desktop UI (Tauri) — dashboard, logs, model management

License

MIT — 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

agent_foundry_local-0.1.10.tar.gz (77.2 kB view details)

Uploaded Source

Built Distribution

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

agent_foundry_local-0.1.10-py3-none-any.whl (52.2 kB view details)

Uploaded Python 3

File details

Details for the file agent_foundry_local-0.1.10.tar.gz.

File metadata

  • Download URL: agent_foundry_local-0.1.10.tar.gz
  • Upload date:
  • Size: 77.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agent_foundry_local-0.1.10.tar.gz
Algorithm Hash digest
SHA256 01e68f1ab3ccca8ad522f5811132571db747a7a2d6622a888ea39c68e9da5632
MD5 21a2636d2fc4c64561caa8af2ed47879
BLAKE2b-256 7a6fb6c254fb56293e0f91f091783e2f88276498f681317e2a9a9cc26bc03aa0

See more details on using hashes here.

File details

Details for the file agent_foundry_local-0.1.10-py3-none-any.whl.

File metadata

File hashes

Hashes for agent_foundry_local-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 ff3872d34c344d7aab5d6982a2d5553b63eb573e05b95871a127ac70fd726bf5
MD5 f11ac91091307a8d4fda967039fc55d0
BLAKE2b-256 f70580c96be5380d30df6d1dfb2f9aa0a970df045a05227119e02834b729cb67

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