agent-foundry-local 0.1.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- agent_foundry_local-0.1.8/CHANGELOG.md +116 -0
- agent_foundry_local-0.1.8/LICENSE +21 -0
- agent_foundry_local-0.1.8/MANIFEST.in +12 -0
- agent_foundry_local-0.1.8/PKG-INFO +177 -0
- agent_foundry_local-0.1.8/README.md +136 -0
- agent_foundry_local-0.1.8/docs/README.md +11 -0
- agent_foundry_local-0.1.8/docs/architecture.md +230 -0
- agent_foundry_local-0.1.8/docs/comms-kit.md +203 -0
- agent_foundry_local-0.1.8/docs/compliance/README.md +52 -0
- agent_foundry_local-0.1.8/docs/compliance/deployment-architecture.md +242 -0
- agent_foundry_local-0.1.8/docs/compliance/dpia-template.md +135 -0
- agent_foundry_local-0.1.8/docs/compliance/gdpr-checklist.md +117 -0
- agent_foundry_local-0.1.8/docs/compliance/iso27001-control-mapping.md +123 -0
- agent_foundry_local-0.1.8/docs/compliance/model-card-template.md +112 -0
- agent_foundry_local-0.1.8/docs/compliance/nhs-dtac-alignment.md +179 -0
- agent_foundry_local-0.1.8/docs/getting-started.md +220 -0
- agent_foundry_local-0.1.8/pyproject.toml +82 -0
- agent_foundry_local-0.1.8/setup.cfg +4 -0
- agent_foundry_local-0.1.8/skills/code-review/SKILL.md +36 -0
- agent_foundry_local-0.1.8/skills/compliance-review/SKILL.md +47 -0
- agent_foundry_local-0.1.8/skills/debugging/SKILL.md +45 -0
- agent_foundry_local-0.1.8/src/agent_foundry_local.egg-info/PKG-INFO +177 -0
- agent_foundry_local-0.1.8/src/agent_foundry_local.egg-info/SOURCES.txt +44 -0
- agent_foundry_local-0.1.8/src/agent_foundry_local.egg-info/dependency_links.txt +1 -0
- agent_foundry_local-0.1.8/src/agent_foundry_local.egg-info/entry_points.txt +2 -0
- agent_foundry_local-0.1.8/src/agent_foundry_local.egg-info/requires.txt +10 -0
- agent_foundry_local-0.1.8/src/agent_foundry_local.egg-info/top_level.txt +1 -0
- agent_foundry_local-0.1.8/src/foundry/__init__.py +3 -0
- agent_foundry_local-0.1.8/src/foundry/cli.py +1151 -0
- agent_foundry_local-0.1.8/src/foundry/engine.py +447 -0
- agent_foundry_local-0.1.8/src/foundry/gates.py +260 -0
- agent_foundry_local-0.1.8/src/foundry/handoff.py +322 -0
- agent_foundry_local-0.1.8/src/foundry/m365/__init__.py +17 -0
- agent_foundry_local-0.1.8/src/foundry/m365/auth.py +156 -0
- agent_foundry_local-0.1.8/src/foundry/m365/graph_client.py +257 -0
- agent_foundry_local-0.1.8/src/foundry/m365/power_platform.py +135 -0
- agent_foundry_local-0.1.8/src/foundry/m365/sharepoint.py +190 -0
- agent_foundry_local-0.1.8/src/foundry/m365/teams.py +92 -0
- agent_foundry_local-0.1.8/src/foundry/observability.py +219 -0
- agent_foundry_local-0.1.8/src/foundry/orchestration/__init__.py +20 -0
- agent_foundry_local-0.1.8/src/foundry/orchestration/discovery.py +221 -0
- agent_foundry_local-0.1.8/src/foundry/orchestration/node.py +250 -0
- agent_foundry_local-0.1.8/src/foundry/orchestration/transport.py +181 -0
- agent_foundry_local-0.1.8/src/foundry/py.typed +1 -0
- agent_foundry_local-0.1.8/src/foundry/registry.py +372 -0
- agent_foundry_local-0.1.8/src/foundry/runtime.py +483 -0
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to Local Agent Foundry.
|
|
4
|
+
|
|
5
|
+
## [0.1.8] — 2026-05-04
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [0.1.7] — 2026-05-04
|
|
10
|
+
|
|
11
|
+
- 🐛 fix: invalid PyPI classifier + sync pyproject.toml version in release script
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.1.6] — 2026-05-04
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## [0.1.5] — 2026-05-04
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [0.1.4] — 2026-05-04
|
|
23
|
+
|
|
24
|
+
- ✨ feat: dashboard demo GIF with live randomness — values jitter ±5%, agent states flip, timestamps tick
|
|
25
|
+
- ✨ feat: working dashboard navigation — 7 tab panels with real content switching
|
|
26
|
+
- 🐛 fix: dashboard demo stays light theme throughout (no dark toggle)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
## [0.1.3] — 2026-05-04
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
## [0.1.2] — 2026-05-04
|
|
34
|
+
|
|
35
|
+
- 🐛 fix: dashboard demo starts light-first (user preference)
|
|
36
|
+
- ✨ feat: dynamic dashboard demo GIF — nav clicks, gate check, theme toggle
|
|
37
|
+
- ✨ feat: dashboard UI demo GIF + Playwright capture script
|
|
38
|
+
- 🐛 fix: resolve 86 lint errors + slow demo GIF to human speed
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
## [0.1.1] — 2026-05-04
|
|
42
|
+
|
|
43
|
+
- 🐛 fix: animated demo GIF, updated changelog, roadmap sync
|
|
44
|
+
- ✨ feat: animated CLI demo, light mode screenshot, pyproject fixes, demo script
|
|
45
|
+
- ✨ feat: light/dark theme + screenshots for README
|
|
46
|
+
- ✨ feat: dashboard mockup + comms kit + README badges
|
|
47
|
+
- ✨ feat: CI/CD release pipeline — GitHub Actions, PyPI publishing
|
|
48
|
+
- ✨ feat: Desktop UI scaffold — Tauri + React
|
|
49
|
+
- ✨ feat: Multi-machine orchestration — peer discovery + cross-machine handoffs
|
|
50
|
+
- ✨ feat: Cloud model fallback — opt-in cloud backend
|
|
51
|
+
- ✨ feat: M365 Bridge — SharePoint, Teams, Graph API, Power Platform
|
|
52
|
+
- ✨ feat: compliance pack + docs — project complete
|
|
53
|
+
- v0.2: Real tool execution + skill registry + live model support
|
|
54
|
+
- Initial commit: Local Agent Foundry MVP
|
|
55
|
+
- 📝 docs: architecture for Local Agent Foundry
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
## [0.1.1] — 2026-05-04
|
|
59
|
+
|
|
60
|
+
### ✨ Features
|
|
61
|
+
|
|
62
|
+
- **M365 Bridge**: 4 modules (auth, Graph, SharePoint, Teams, Power Platform) with 14 CLI commands
|
|
63
|
+
- **Multi-machine Orchestration**: P2P node registry, mDNS discovery, HTTPS handoff transport
|
|
64
|
+
- **Cloud Fallback**: Opt-in OpenAI-compatible backend with `FOUNDRY_CLOUD_CONSENT` gate
|
|
65
|
+
- **Desktop UI Scaffold**: Tauri + React 19 with 6-panel dashboard, light/dark theme
|
|
66
|
+
- **Release Pipeline**: GitHub Actions CI + PyPI publish on tag push, `scripts/release.py`
|
|
67
|
+
|
|
68
|
+
### 📝 Documentation
|
|
69
|
+
|
|
70
|
+
- Animated CLI demo GIF showing 9-step workflow
|
|
71
|
+
- Comms kit (LinkedIn, Twitter, blog, pitch deck) in `docs/comms-kit.md`
|
|
72
|
+
- Dashboard mockups with realistic NHS M365 data (light + dark)
|
|
73
|
+
- Screenshots captured via Playwright/Chromium
|
|
74
|
+
|
|
75
|
+
### 🧪 Testing
|
|
76
|
+
|
|
77
|
+
- 163 tests, all passing (up from 103)
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## [0.1.0] — 2026-05-04
|
|
82
|
+
|
|
83
|
+
### ✨ Features
|
|
84
|
+
|
|
85
|
+
- **MVP CLI**: Full agent lifecycle management — start, stop, list, run agents
|
|
86
|
+
- **Handoff Protocol**: Formal agent-to-agent work transfer with state preservation, definition of done, and verification
|
|
87
|
+
- **Quality Gates**: 5 gate types — syntax, safety, behaviour, security, performance
|
|
88
|
+
- **Observability**: Audit trail with SQLite backend, export to JSON, statistics dashboard
|
|
89
|
+
- **Skill System**: Hermes SKILL.md format — discover, load, and execute agent skills
|
|
90
|
+
- **Tool Registry**: Extensible tool registration system with built-in terminal/file tools
|
|
91
|
+
- **Model Runtime**: Abstract backend interface with oMLX, llama.cpp, Ollama, and Dummy implementations
|
|
92
|
+
- **Dummy Backend**: Predictable responses for testing without a real model
|
|
93
|
+
|
|
94
|
+
### 📝 Documentation
|
|
95
|
+
|
|
96
|
+
- Full architecture documentation with competitive landscape
|
|
97
|
+
- Getting Started guide with 10-minute multi-agent workflow tutorial
|
|
98
|
+
- Compliance pack: DPIA template, GDPR checklist, NHS DTAC alignment, ISO 27001 mapping
|
|
99
|
+
- Model card template for documenting AI models used in regulated contexts
|
|
100
|
+
- Deployment architecture guide with 3 deployment models (standalone, air-gapped, VDI)
|
|
101
|
+
|
|
102
|
+
### 🧪 Testing
|
|
103
|
+
|
|
104
|
+
- 163 tests covering all 6 layers
|
|
105
|
+
- test_engine, test_handoff, test_gates, test_observability, test_registry, test_runtime
|
|
106
|
+
- Integration tests for end-to-end agent workflows
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## Upcoming
|
|
111
|
+
|
|
112
|
+
Planned for future releases:
|
|
113
|
+
- Desktop UI (Tauri + React) — full dashboard, logs, model management
|
|
114
|
+
- OAuth2 device flow for M365 Bridge
|
|
115
|
+
- Agent skill marketplace / discovery
|
|
116
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Vilius Vystartas
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: agent-foundry-local
|
|
3
|
+
Version: 0.1.8
|
|
4
|
+
Summary: Local-first AI agent platform with formal handoff protocol for regulated industries
|
|
5
|
+
Author-email: Vilius Vystartas <vilius@agenticflow.dev>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://agenticflow.dev
|
|
8
|
+
Project-URL: Documentation, https://github.com/vystartasv/agent-foundry#readme
|
|
9
|
+
Project-URL: Repository, https://github.com/vystartasv/agent-foundry
|
|
10
|
+
Project-URL: Issues, https://github.com/vystartasv/agent-foundry/issues
|
|
11
|
+
Project-URL: Changelog, https://github.com/vystartasv/agent-foundry/blob/main/CHANGELOG.md
|
|
12
|
+
Keywords: ai-agents,agent-orchestration,local-ai,offline-first,regulated-industries,nhs,gdpr,microsoft-365,sharepoint,microsoft-teams,compliance,audit-trail,agent-handoff
|
|
13
|
+
Classifier: Development Status :: 4 - Beta
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: Intended Audience :: Healthcare Industry
|
|
16
|
+
Classifier: Intended Audience :: Financial and Insurance Industry
|
|
17
|
+
Classifier: Intended Audience :: Information Technology
|
|
18
|
+
Classifier: Operating System :: MacOS
|
|
19
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
20
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
21
|
+
Classifier: Programming Language :: Python :: 3
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
24
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
25
|
+
Classifier: Topic :: Software Development :: Build Tools
|
|
26
|
+
Classifier: Topic :: Software Development :: Quality Assurance
|
|
27
|
+
Classifier: Topic :: Office/Business :: Groupware
|
|
28
|
+
Requires-Python: >=3.11
|
|
29
|
+
Description-Content-Type: text/markdown
|
|
30
|
+
License-File: LICENSE
|
|
31
|
+
Requires-Dist: click>=8.1
|
|
32
|
+
Requires-Dist: httpx>=0.27
|
|
33
|
+
Requires-Dist: msal>=1.28
|
|
34
|
+
Requires-Dist: pydantic>=2.0
|
|
35
|
+
Provides-Extra: dev
|
|
36
|
+
Requires-Dist: pytest>=8.0; extra == "dev"
|
|
37
|
+
Requires-Dist: pytest-asyncio>=0.24; extra == "dev"
|
|
38
|
+
Requires-Dist: pytest-cov>=5.0; extra == "dev"
|
|
39
|
+
Requires-Dist: ruff>=0.5; extra == "dev"
|
|
40
|
+
Dynamic: license-file
|
|
41
|
+
|
|
42
|
+
# Local Agent Foundry
|
|
43
|
+
|
|
44
|
+
[](https://github.com/vystartasv/agent-foundry/actions/workflows/ci.yml)
|
|
45
|
+
[](https://www.python.org/)
|
|
46
|
+
[](LICENSE)
|
|
47
|
+
[]()
|
|
48
|
+
[]()
|
|
49
|
+
[]()
|
|
50
|
+
|
|
51
|
+
> **Agents building agents. Offline. Auditable. Regulated-industry ready.**
|
|
52
|
+
|
|
53
|
+
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.
|
|
54
|
+
|
|
55
|
+

|
|
56
|
+
|
|
57
|
+

|
|
58
|
+
|
|
59
|
+

|
|
60
|
+
|
|
61
|
+
## Why
|
|
62
|
+
|
|
63
|
+
No existing platform combines:
|
|
64
|
+
- **Local-only operation** (air-gapped, GDPR-compliant)
|
|
65
|
+
- **Agent orchestration** (multi-agent with formal handoffs)
|
|
66
|
+
- **Observability** (audit trail, cost tracking, health)
|
|
67
|
+
- **Quality gates** (behavioural tests for agents)
|
|
68
|
+
- **Regulated industry readiness** (compliance docs, model cards)
|
|
69
|
+
|
|
70
|
+
## Quick Start
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
# Install
|
|
74
|
+
pip install agent-foundry
|
|
75
|
+
|
|
76
|
+
# Or from source
|
|
77
|
+
git clone <repo-url>
|
|
78
|
+
cd agent-foundry
|
|
79
|
+
pip install -e ".[dev]"
|
|
80
|
+
|
|
81
|
+
# Start an agent
|
|
82
|
+
foundry agent start builder --model qwen-8b --tools terminal,file
|
|
83
|
+
|
|
84
|
+
# Run a task
|
|
85
|
+
foundry agent run builder "Create a test file"
|
|
86
|
+
|
|
87
|
+
# Hand off to a reviewer
|
|
88
|
+
foundry agent start reviewer --model qwen-8b --tools terminal,file
|
|
89
|
+
foundry handoff create --from builder --to reviewer --task "Review the work"
|
|
90
|
+
|
|
91
|
+
# Check quality gates
|
|
92
|
+
foundry gate run --agent builder --file output.txt
|
|
93
|
+
|
|
94
|
+
# Export audit log
|
|
95
|
+
foundry audit export --output compliance-report.json
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Architecture
|
|
99
|
+
|
|
100
|
+
Six layers, running entirely on your machine:
|
|
101
|
+
|
|
102
|
+
```
|
|
103
|
+
Desktop UI (Tauri) ·················· [Phase 2]
|
|
104
|
+
CLI (`foundry`) ····················· [MVP ✓]
|
|
105
|
+
Agent Engine · Handoff Protocol ★ · Quality Gates · Observability
|
|
106
|
+
Model Runtime (oMLX · llama.cpp · Ollama)
|
|
107
|
+
Tool Registry (MCP · Hermes skills)
|
|
108
|
+
Storage (SQLite)
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
**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.
|
|
112
|
+
|
|
113
|
+
## For Regulated Industries
|
|
114
|
+
|
|
115
|
+
Pre-built compliance documentation included in `docs/compliance/`:
|
|
116
|
+
- **DPIA Template** — Data Protection Impact Assessment
|
|
117
|
+
- **Model Cards** — Per-model capability and limitation documentation
|
|
118
|
+
- **GDPR Checklist** — Article-by-article compliance verification
|
|
119
|
+
- **NHS DTAC Alignment** — Digital Technology Assessment Criteria mapping
|
|
120
|
+
- **ISO 27001 Control Mapping** — All 71 Annex A controls mapped
|
|
121
|
+
- **Deployment Architecture** — On-prem deployment patterns, data flows
|
|
122
|
+
|
|
123
|
+
Zero cloud dependency. Air-gap capable. No data leaves your device.
|
|
124
|
+
|
|
125
|
+
## Requirements
|
|
126
|
+
|
|
127
|
+
- Python 3.11+
|
|
128
|
+
- macOS (Apple Silicon), Linux, or Windows
|
|
129
|
+
- 16GB+ RAM (32GB recommended for 8B+ models)
|
|
130
|
+
- No network required (offline operation after model download)
|
|
131
|
+
|
|
132
|
+
## Model Backends
|
|
133
|
+
|
|
134
|
+
| Backend | Status | Notes |
|
|
135
|
+
|---------|--------|-------|
|
|
136
|
+
| oMLX | ✅ Supported | Apple Silicon, local inference |
|
|
137
|
+
| llama.cpp | ✅ Supported | Cross-platform GGUF models |
|
|
138
|
+
| Ollama | ✅ Supported | Easy model management |
|
|
139
|
+
| Dummy | ✅ Testing | Simulated backend for tests |
|
|
140
|
+
|
|
141
|
+
## Commands
|
|
142
|
+
|
|
143
|
+
```
|
|
144
|
+
foundry agent start|stop|list|stats|run Manage agents
|
|
145
|
+
foundry handoff create|accept|complete|list|show Formal work transfer
|
|
146
|
+
foundry gate run Quality checks
|
|
147
|
+
foundry skill discover|list|show Agent skills
|
|
148
|
+
foundry audit show|export|stats Audit trail
|
|
149
|
+
foundry backend health|models|test Backend management
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
## Development
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
pip install -e ".[dev]"
|
|
156
|
+
pytest # 163 tests
|
|
157
|
+
foundry --help # CLI reference
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
## Documentation
|
|
161
|
+
|
|
162
|
+
- [Architecture](docs/architecture.md) — Full system design
|
|
163
|
+
- [Compliance Pack](docs/compliance/) — Regulated industry procurement docs
|
|
164
|
+
- [Getting Started](docs/getting-started.md) — Setup and first agent workflow
|
|
165
|
+
|
|
166
|
+
## Roadmap
|
|
167
|
+
|
|
168
|
+
- [x] CLI MVP — agent engine, handoff, gates, audit
|
|
169
|
+
- [x] Compliance pack — NHS, GDPR, ISO 27001
|
|
170
|
+
- [x] M365 Bridge — SharePoint, Teams, Graph API integration
|
|
171
|
+
- [x] Multi-machine orchestration
|
|
172
|
+
- [x] Cloud model fallback (opt-in)
|
|
173
|
+
- [ ] Desktop UI (Tauri) — dashboard, logs, model management
|
|
174
|
+
|
|
175
|
+
## License
|
|
176
|
+
|
|
177
|
+
MIT — see [LICENSE](LICENSE)
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
# Local Agent Foundry
|
|
2
|
+
|
|
3
|
+
[](https://github.com/vystartasv/agent-foundry/actions/workflows/ci.yml)
|
|
4
|
+
[](https://www.python.org/)
|
|
5
|
+
[](LICENSE)
|
|
6
|
+
[]()
|
|
7
|
+
[]()
|
|
8
|
+
[]()
|
|
9
|
+
|
|
10
|
+
> **Agents building agents. Offline. Auditable. Regulated-industry ready.**
|
|
11
|
+
|
|
12
|
+
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.
|
|
13
|
+
|
|
14
|
+

|
|
15
|
+
|
|
16
|
+

|
|
17
|
+
|
|
18
|
+

|
|
19
|
+
|
|
20
|
+
## Why
|
|
21
|
+
|
|
22
|
+
No existing platform combines:
|
|
23
|
+
- **Local-only operation** (air-gapped, GDPR-compliant)
|
|
24
|
+
- **Agent orchestration** (multi-agent with formal handoffs)
|
|
25
|
+
- **Observability** (audit trail, cost tracking, health)
|
|
26
|
+
- **Quality gates** (behavioural tests for agents)
|
|
27
|
+
- **Regulated industry readiness** (compliance docs, model cards)
|
|
28
|
+
|
|
29
|
+
## Quick Start
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
# Install
|
|
33
|
+
pip install agent-foundry
|
|
34
|
+
|
|
35
|
+
# Or from source
|
|
36
|
+
git clone <repo-url>
|
|
37
|
+
cd agent-foundry
|
|
38
|
+
pip install -e ".[dev]"
|
|
39
|
+
|
|
40
|
+
# Start an agent
|
|
41
|
+
foundry agent start builder --model qwen-8b --tools terminal,file
|
|
42
|
+
|
|
43
|
+
# Run a task
|
|
44
|
+
foundry agent run builder "Create a test file"
|
|
45
|
+
|
|
46
|
+
# Hand off to a reviewer
|
|
47
|
+
foundry agent start reviewer --model qwen-8b --tools terminal,file
|
|
48
|
+
foundry handoff create --from builder --to reviewer --task "Review the work"
|
|
49
|
+
|
|
50
|
+
# Check quality gates
|
|
51
|
+
foundry gate run --agent builder --file output.txt
|
|
52
|
+
|
|
53
|
+
# Export audit log
|
|
54
|
+
foundry audit export --output compliance-report.json
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Architecture
|
|
58
|
+
|
|
59
|
+
Six layers, running entirely on your machine:
|
|
60
|
+
|
|
61
|
+
```
|
|
62
|
+
Desktop UI (Tauri) ·················· [Phase 2]
|
|
63
|
+
CLI (`foundry`) ····················· [MVP ✓]
|
|
64
|
+
Agent Engine · Handoff Protocol ★ · Quality Gates · Observability
|
|
65
|
+
Model Runtime (oMLX · llama.cpp · Ollama)
|
|
66
|
+
Tool Registry (MCP · Hermes skills)
|
|
67
|
+
Storage (SQLite)
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
**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.
|
|
71
|
+
|
|
72
|
+
## For Regulated Industries
|
|
73
|
+
|
|
74
|
+
Pre-built compliance documentation included in `docs/compliance/`:
|
|
75
|
+
- **DPIA Template** — Data Protection Impact Assessment
|
|
76
|
+
- **Model Cards** — Per-model capability and limitation documentation
|
|
77
|
+
- **GDPR Checklist** — Article-by-article compliance verification
|
|
78
|
+
- **NHS DTAC Alignment** — Digital Technology Assessment Criteria mapping
|
|
79
|
+
- **ISO 27001 Control Mapping** — All 71 Annex A controls mapped
|
|
80
|
+
- **Deployment Architecture** — On-prem deployment patterns, data flows
|
|
81
|
+
|
|
82
|
+
Zero cloud dependency. Air-gap capable. No data leaves your device.
|
|
83
|
+
|
|
84
|
+
## Requirements
|
|
85
|
+
|
|
86
|
+
- Python 3.11+
|
|
87
|
+
- macOS (Apple Silicon), Linux, or Windows
|
|
88
|
+
- 16GB+ RAM (32GB recommended for 8B+ models)
|
|
89
|
+
- No network required (offline operation after model download)
|
|
90
|
+
|
|
91
|
+
## Model Backends
|
|
92
|
+
|
|
93
|
+
| Backend | Status | Notes |
|
|
94
|
+
|---------|--------|-------|
|
|
95
|
+
| oMLX | ✅ Supported | Apple Silicon, local inference |
|
|
96
|
+
| llama.cpp | ✅ Supported | Cross-platform GGUF models |
|
|
97
|
+
| Ollama | ✅ Supported | Easy model management |
|
|
98
|
+
| Dummy | ✅ Testing | Simulated backend for tests |
|
|
99
|
+
|
|
100
|
+
## Commands
|
|
101
|
+
|
|
102
|
+
```
|
|
103
|
+
foundry agent start|stop|list|stats|run Manage agents
|
|
104
|
+
foundry handoff create|accept|complete|list|show Formal work transfer
|
|
105
|
+
foundry gate run Quality checks
|
|
106
|
+
foundry skill discover|list|show Agent skills
|
|
107
|
+
foundry audit show|export|stats Audit trail
|
|
108
|
+
foundry backend health|models|test Backend management
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
## Development
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
pip install -e ".[dev]"
|
|
115
|
+
pytest # 163 tests
|
|
116
|
+
foundry --help # CLI reference
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
## Documentation
|
|
120
|
+
|
|
121
|
+
- [Architecture](docs/architecture.md) — Full system design
|
|
122
|
+
- [Compliance Pack](docs/compliance/) — Regulated industry procurement docs
|
|
123
|
+
- [Getting Started](docs/getting-started.md) — Setup and first agent workflow
|
|
124
|
+
|
|
125
|
+
## Roadmap
|
|
126
|
+
|
|
127
|
+
- [x] CLI MVP — agent engine, handoff, gates, audit
|
|
128
|
+
- [x] Compliance pack — NHS, GDPR, ISO 27001
|
|
129
|
+
- [x] M365 Bridge — SharePoint, Teams, Graph API integration
|
|
130
|
+
- [x] Multi-machine orchestration
|
|
131
|
+
- [x] Cloud model fallback (opt-in)
|
|
132
|
+
- [ ] Desktop UI (Tauri) — dashboard, logs, model management
|
|
133
|
+
|
|
134
|
+
## License
|
|
135
|
+
|
|
136
|
+
MIT — see [LICENSE](LICENSE)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Documentation — Local Agent Foundry
|
|
2
|
+
|
|
3
|
+
- **[Getting Started](getting-started.md)** — Set up and run your first multi-agent workflow
|
|
4
|
+
- **[Architecture](architecture.md)** — Full system design, layers, and competitive landscape
|
|
5
|
+
- **[Compliance Pack](compliance/)** — Regulated industry procurement documentation
|
|
6
|
+
- [DPIA Template](compliance/dpia-template.md)
|
|
7
|
+
- [Model Card Template](compliance/model-card-template.md)
|
|
8
|
+
- [GDPR Checklist](compliance/gdpr-checklist.md)
|
|
9
|
+
- [NHS DTAC Alignment](compliance/nhs-dtac-alignment.md)
|
|
10
|
+
- [ISO 27001 Control Mapping](compliance/iso27001-control-mapping.md)
|
|
11
|
+
- [Deployment Architecture](compliance/deployment-architecture.md)
|