Important
AI Assist Note (Knowledge Heritage): This document is part of the "Sovereign Reality" documentation.
- @docs ARCHITECTURE:Core
- Failure Path: Information drift, legacy terminology, or documentation mismatch.
- Telemetry Link: Search
[README]in audit logs.
Core technical resource for the Tadpole OS Sovereign infrastructure.
Traceability via execution/parity_guard.py.
The high-performance, local-first runtime for orchestrating autonomous multi-agent swarms.
Version: 1.1.265
🚀 Start a Mission • 🏗️ Architecture Hub • 🛡️ Security Model • 🌐 Product Website • 💬 Join Discussions
AI-Tadpole-OS is a local-first runtime for orchestrating autonomous teams of AI agents — without sending your data to the cloud. Define a goal, assign a hierarchy of specialized agents, and watch the engine coordinate them in parallel.
Designed for teams requiring uncompromising data sovereignty, Tadpole OS bridges the gap between probabilistic LLM outputs and deterministic business logic.
In a world of "AI-as-a-Service," true independence is a local copy. We prioritize Git Clones because a clone is the ultimate act of data sovereignty:
- Total Ownership: No one can "unplug" your intelligence stack.
- Privacy by Default: Your data never leaves your infrastructure.
- Air-Gapped Ready: Run missions in completely disconnected environments.
- Deterministic Control: You own the code, the directives, and the memory.
Clone the repo. Own your intelligence.
Why Tadpole OS is more reliable than a standard agent wrapper.
| Layer | Component | Purpose |
|---|---|---|
| L1: Directive | directives/ |
Intent: Human-defined SOPs and goals. Non-negotiable rules for the swarm. |
| L2: Orchestration | Agent 99 |
Decision: Intelligent routing, self-correction, and wisdom extraction. |
| L3: Execution | execution/ |
Action: Deterministic Python/Rust scripts. No "hallucinated" code execution. |
The system that learns from its own history.
Tadpole OS doesn't just run tasks; it performs Self-Annealing. After every mission, Agent 99 autonomously:
- Extracts Architectural Wisdom: Analyzes logs to find what worked and what didn't.
- Updates Institutional Memory: Writes learnings back to
LONG_TERM_MEMORY.md. - Refines Protocols: Adjusts its own directives to prevent future drift.
🖥️ 1. Reactive Interface & Observability
Built for high-density swarm oversight with sub-millisecond telemetry.
- Detachable Portals: Spread tactical sectors across multiple physical displays.
- 10Hz Swarm Pulse: Real-time MessagePack telemetry for agent performance.
- God-View Visualizer: High-performance 2D Force-Graph of your agent hierarchy.
- Force-Graph View Mode HUD Toggle: Switch between the standard Codebase Symbols Graph and the Semantic OKF Graph directly from the HUD. Employs a monochromatic Zinc theme to represent concepts and maps semantic colors (
cyber-green,cyber-amber,cyber-red) strictly to live status and broken canonical links. - Codebase Knowledge Graph HUD: Traversal history stack with Back/Forward controls, and double-scale high-res canvas PNG exports.
- BFS Dependency Pathfinder: Computes and highlights shortest dependency or call traces between symbols on the graph.
- Resilient Sanitizer: Fault-tolerant client-side parsing utility ensuring data schema and referential integrity.
- Hardware Telemetry: Real-time CPU, RAM, and Process load visualization.
🤖 2. Multi-Agent Swarm Orchestration & A2A Economics
Hierarchical coordination powered by a Rust-native engine with localized resource payments.
- CEO/COO & Conductor DAG: Strategic goal decomposition into topologically scheduled execution graphs (DAGs) using Kahn's/DFS sorting on step dependencies.
- Parallel Swarming & Context Sandboxing: High-throughput sub-agent recruitment via
FuturesUnorderedwith strategic observation sandboxing (visible_transcript) to isolate context. - Builder-Debugger Pairing: Automated active model slot swapping (Primary, Secondary, Tertiary) on tool compilation or execution failures.
- Agent-to-Agent (A2A) Economic Zone: Localized service-to-service payment protocol using a Two-Phase Commit (2PC) ledger (prepare, commit, rollback locks), daily budget limit caps per economic zone, x402 challenge protocol, and standard A2A-compliant async mailboxes preserving model reasoning traces and file artifacts.
- Autonomic Fallback: Self-healing quantization adjustment on hardware limits.
🧠 3. Memory & Persistent RAG
Split-brain architecture for semantic and relational data.
- LanceDB Vector Store: Cross-session institutional knowledge.
-
Open Knowledge Format (OKF) Support: Standardized swarm insight persistence mapping the OKF v0.1 draft specification, automatically parsing and writing structured metadata (
concept_type,title,description,resource_uri,tags) directly to SQLite database columns. -
$O(N)$ Linear Context Compactor: dialogue-level context compactor that performs history filtering in linear time instead of quadratic time, eliminating CPU overhead and UI freezing during long sessions. -
IKS Pagination & Filtering: Standardized API pagination supporting dynamic offset/limit and concept-type query filters on
/v1/knowledgeroutes. - Mission Sandboxing: Localized RAG scopes that cleanup automatically on completion.
- Hybrid Search: Combines SQLite deterministic logs with high-dimensional embeddings.
🛡️ 4. Security & Sovereign Compliance
Zero-trust governance with human-in-the-loop gates.
- Sapphire Shield: Flags
budget:spendandshell:executefor manual approval. - Hard Privacy Gate: Explicitly blocks external traffic for 100% air-gapped runs.
- OBLITERATUS Hardening: 100% audit-verified code paths and Merkle trails.
- Active Documentation Guard (ADG): Static analysis engine (Symbol Gate & Markdown Validator) that prevents conceptual drift by validating that all backticked code symbols in file headers match implementation code, and all path references in directives exist on disk.
- Sovereign Compliance:
IDENTITY.md v1.2.1governs all agent behavior. Standards: ECC-ID, GxP, ISO 9001, ISO 42001, NIST AI-RMF, ALCOA+.
- Rust (1.80+) & Node.js 20+
- Ollama (for local models) or an API Key (OpenAI, Anthropic, Google, Groq).
# Clone and install dependencies
git clone https://github.com/DDS-Solutions/AI-Tadpole-OS.git
cd AI-Tadpole-OS
npm install
# Setup environment
cp .env.example .env
# Edit .env and set your NEURAL_TOKEN and API Keys# Terminal A: Start the Rust Engine
npm run engine
# Terminal B: Start the React Dashboard
npm run devVisualizing what a Full-Capacity Swarm (10 Clusters, 25 Agents) looks like.
View Swarm Hierarchy Diagram
graph TD
classDef cluster fill:#222,stroke:#444,stroke-width:2px,color:#fff;
classDef node fill:#333,stroke:#666,color:#eee;
subgraph Cluster0 ["Executive Core (Google)"]
CEO["ID 1: CEO (Google Gemini 3 Pro)"]
end
CEO -->|issue_alpha_directive| COO["ID 2: COO (Claude Opus 4.5)"]
CEO -->|delegate| CTO["ID 3: CTO (GPT-5.3 Codex)"]
subgraph Cluster1 ["Operations Hub (Anthropic)"]
COO --> Ops1["ID 22: HR Manager"]
COO --> Ops2["ID 10: Support Lead"]
end
subgraph Cluster2 ["Engineering Sector (Groq/OpenAI)"]
CTO --> Eng1["ID 7: DevOps"]
CTO --> Eng2["ID 8: Backend Dev"]
end
subgraph Cluster3 ["Marketing/Sales (Meta/xAI)"]
CEO --> CMO["ID 4: CMO"]
CMO --> Mark1["ID 17: Copywriter"]
CMO --> Mark2["ID 19: SEO Specialist"]
end
subgraph Cluster4 ["Security Center (Mistral)"]
Eng1 --> Sec1["ID 12: Security Auditor"]
end
CEO --> CMO
class Cluster0,Cluster1,Cluster2,Cluster3,Cluster4 cluster;
class CEO,COO,CTO,CMO,Ops1,Ops2,Eng1,Eng2,Mark1,Mark2,Sec1 node;
| Cluster | Focus | Provider | Model Capacity |
|---|---|---|---|
| Executive Core | Strategic Direction | Pro / Flash | |
| Operations Hub | Orchestration | Anthropic | Opus / Sonnet |
| Engineering Sector | Implementation | Groq / OpenAI | Llama / Codex |
| Security Center | Auditing | Mistral | Medium / Large |
Deploy specialized "One-Click" swarms across 23 industries (including Finance, Healthcare, Manufacturing, and more), featuring two main swarm archetypes:
- 🧠 Knowledge Work Swarms: Specialized for research analysis, policy indexing, case law synthesis, and document auditing.
- ⚙️ Edge Operations Swarms: Designed for physical logistics like inventory management, procurement QA, and ISO 9001 / ISO 42001 audits.
Don't want to start from scratch? Use our visual Swarm Architect to design your intelligence roster!
- Agent Catalog: Browse 200+ specialized AI agent roles across multiple departments.
- Hybrid AI Profiler: Instantly suggests skills based on your company mission.
- Institutional Knowledge (OKF): Swarm templates automatically ingest your bundled Markdown SOPs and playbooks into the local vector database upon deployment.
- Sapphire Shield Security: Zero-trust deployment with no executables, BYO keys, and mandatory human-in-the-loop approval for dangerous actions.
👉 Explore the Template Registry & Agent Catalog
Tadpole OS is built to be forked. Create your own tactical branch:
- Fork this Repository to your own account.
- Customize Agents via the SQLite database or Swarm Templates.
- Deploy using the provided
deploy-bunker.ps1scripts.
Licensed under MIT. Sovereign Intelligence for all.