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

# Or from source
git clone <repo-url>
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.8.tar.gz (71.8 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.8-py3-none-any.whl (52.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agent_foundry_local-0.1.8.tar.gz
  • Upload date:
  • Size: 71.8 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.8.tar.gz
Algorithm Hash digest
SHA256 60da8e527bae9f5fe0a52c356637f9dd3542d82859cd522efeccfd7347ec56cc
MD5 8689bc6a36706319838925089982f9c4
BLAKE2b-256 5192c582a9924944013b14df480b57845fa54fc7ca29354014164efcce5960f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agent_foundry_local-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 9b93095f431c6972dde089645dc1ea3b9c682b2d2edddc97330a5a7a77a32628
MD5 6e9a889665ff20e05907b5e31ebd98e9
BLAKE2b-256 004e44b5d74119f19b5ae31ed7fe374d0eab5e83a8cab3978a53982fe8051686

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