About

PurpleDirective started with a simple question: what would happen if you treated AI agents not as disposable chat sessions, but as an organization that learns and improves over time?

The answer turned into a multi-agent system where a COO agent triages every task, an advisory council deliberates on complex questions from structurally different perspectives, operational agents execute domain-specific work within defined guardrails, and a closed-loop learning system transfers knowledge from cloud inference to local models running on sovereign hardware.

The Stack

Cloud runtime: Claude via Claude Code. This is where complex analysis, multi-agent deliberation, and knowledge generation happen. Full agent identities with rich context.

Local runtime: Ollama via Purple-Directive: CLI. Condensed agent identities under 2K tokens, MCP tool integration, session persistence. Runs on a homelab server with an RTX 5090 for inference and fine-tuning.

Memory: SQLite with FTS5 keyword search and sqlite-vec semantic embeddings. Hybrid retrieval using Reciprocal Rank Fusion. Knowledge persists across sessions and transfers between runtimes.

Infrastructure: Raspberry Pi network appliance (DNS sinkhole, VPN gateway, access point), homelab server (inference, training, services), Cloudflare for DNS and tunnels.

Principles

Open Source

The framework, protocols, memory kernel, and CLI tool are all public on GitHub. The goal is to demonstrate that a single person can build and operate a sophisticated AI agent system without enterprise infrastructure or a team of engineers.

If you're building something similar, the Violet repository has the full architecture — agent definitions, protocols, memory schemas, and operational templates.

Connect