Skip to main content

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

Release files for agent-foundry-local 0.1.10

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

Source distribution (sdist)

Source distribution for agent-foundry-local 0.1.10
File Size Uploaded
agent_foundry_local-0.1.10.tar.gz 77.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agent-foundry-local 0.1.10
File Interpreter ABI Platform
agent_foundry_local-0.1.10-py3-none-any.whl Python 3 none any Details

Total release size: 129.4 kB

Release files / agent_foundry_local-0.1.10.tar.gz

Download URL agent_foundry_local-0.1.10.tar.gz
Size 77.2 kB
Tags Source
SHA-256 checksum
How to use checksums
01e68f1ab3ccca8ad522f5811132571db747a7a2d6622a888ea39c68e9da5632
BLAKE2b-256 checksum
How to use checksums
7a6fb6c254fb56293e0f91f091783e2f88276498f681317e2a9a9cc26bc03aa0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / agent_foundry_local-0.1.10-py3-none-any.whl

Download URL agent_foundry_local-0.1.10-py3-none-any.whl
Size 52.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ff3872d34c344d7aab5d6982a2d5553b63eb573e05b95871a127ac70fd726bf5
BLAKE2b-256 checksum
How to use checksums
f70580c96be5380d30df6d1dfb2f9aa0a970df045a05227119e02834b729cb67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

0.1.10 This release

2 release files

0.1.8

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