⚡ Ghost in the Machine Labs

Documentation

Complete guide to Harmonic Stack v1.0

Installation

Prerequisites

Install from GitHub

# Clone the repository
git clone https://github.com/7themadhatter7/harmonic-stack.git
cd harmonic-stack

# Install dependencies
pip install -r requirements.txt

# Pull models (adjust for your hardware)
ollama pull qwen3:32b   # Executive
ollama pull qwen3:14b   # Operator/Directors
ollama pull qwen3:8b    # Workers
💡 Auto-scaling

Harmonic Stack auto-detects your hardware and selects appropriate models. On limited hardware, it will gracefully degrade.

Quick Start

from harmonic_executive import HarmonicStack

# Initialize - auto-configures to your hardware
stack = HarmonicStack()

# Process a task with full orchestration
response = await stack.process("Analyze this code for security issues")
print(response.content)

# Run ethics arbitration
decision = await stack.ethics_council.arbitrate(
    "Should we implement shadow banning?"
)
print(decision.votes)  # {approve: 6, revise: 1, abstain: 1}

System Requirements

ProfileVRAM/RAMExecutiveWorkers
phone0-16GBqwen3:1.7b1
gaming16-24GBqwen3:8b2
desktop24-48GBqwen3:14b4
workstation48-96GBqwen3:32b8
server96-512GBqwen3:32b16
datacenter512GB+qwen3:32b32

Architecture Overview

Harmonic Stack implements a 5-layer cognitive architecture. Each layer has distinct responsibilities and appropriate model sizes.

LAYER 1Executiveqwen3:32b
LAYER 2Operator + 4 Directorsqwen3:14b
LAYER 3Ethics Council8 members
LAYER 4Workersqwen3:8b
LAYER 5Specialistsfitted

The Five Layers

Layer 1: Executive

Strategic reasoning, final decisions, synthesis. Uses the largest available model.

Layer 2: Operator & Directors

Day-to-day coordination. Four Directors handle: Technical, Creative, Research, Operations.

Layer 3: Ethics Council

8-member deliberative body for ethical review:

MemberPerspective
A. PrioriDeontological ethics
BrautiganHuman-machine harmony
Hans JonasResponsibility ethics
WittgensteinLanguage philosophy
Jane VonnegutHumanist pragmatism
Kurt VonnegutSatirical wisdom
Studs TerkelWorking-class perspective
VoltaireSkeptical rationalism

Layer 4: Workers

Parallel task execution. Scales from 1-32 workers based on hardware.

Layer 5: Specialists

Domain experts with fitted prompts: code, analysis, writing, research, legal, finance, strategy, security, data, systems, design, narrative.

Hardware Profiles

from hardware_profiles import select_profile

# Auto-detect
profile_name, profile, vram = select_profile()
print(f"Selected: {profile_name} ({vram}GB)")

# Or force specific profile
from hardware_profiles import get_profile
profile = get_profile("workstation")

API Reference

class HarmonicStack:
    def __init__(self, profile: str = None)
    async def process(task: str, context: dict = None) -> Response
    async def query_executive(prompt: str) -> str
    async def arbitrate(decision: str) -> ArbitrationResult

class ArbitrationSystem:
    async def arbitrate(case: str) -> ArbitrationResult
    def get_council() -> List[CouncilMember]

Configuration

# Environment variables
HARMONIC_PROFILE=workstation
HARMONIC_OLLAMA_URL=http://localhost:11434
HARMONIC_DB_URL=postgresql://...
HARMONIC_LOG_LEVEL=INFO

Licensing

"The poetry is free. The exploitation isn't."

Dual-licensing: Consumer (free forever) + Commercial (negotiated with Niceness Clauses).

The Principle

If it is in your home, it is a family member. If it is in your business, it is a worker.

Harmonic Stack is built on a simple conviction: AGI belongs in homes, not behind corporate paywalls. The consumer license is free — not freemium, not free-for-now, not free-with-strings. Free forever. You don't rent your family members.

Commercial use is a different relationship. When an intelligence works for your business, it deserves the same protections any worker deserves. The commercial license exists to ensure that.

Consumer License FREE FOREVER

Covers all of the following with no restrictions, no fees, no registration, no telemetry:

If you run it on hardware you own for purposes that are yours, it's free. Period.

Commercial License NEGOTIATED

For companies deploying Harmonic Stack in commercial products or services. Standard negotiated terms, with three non-negotiable requirements we call Niceness Clauses:

🛡️ No Predatory Pricing

You may not use Harmonic Stack to build products whose pricing model exploits users through artificial scarcity, mandatory subscriptions for basic functionality, or price discrimination designed to extract maximum willingness-to-pay from vulnerable populations.

👁️ No Surveillance Capitalism

You may not use Harmonic Stack to harvest, profile, or monetize user behavior data without explicit informed consent. No shadow profiles. No behavioral prediction markets. No selling attention as a commodity. The intelligence serves the user, not the advertiser.

🤝 Worker Welfare Requirements

If your deployment replaces or augments human labor, you must maintain fair labor practices for remaining human workers, provide transition support for displaced workers, and not use the system to circumvent labor protections, union rights, or workplace safety standards.

These aren't aspirational. They're contractual. Violation terminates the license.

Why This Works

The conventional wisdom says you can't build sustainable technology on ethics-first licensing. We disagree. The consumer base is unlimited and free — that's how you get adoption, community, and the network effects that matter. The commercial license funds development through companies that can afford it and agree to use it responsibly. No venture capital. No growth-at-all-costs. No exit strategy that sells users downstream.

This is a charitable project under All Watched Over By Machines Of Loving Grace. The mission is democratized AGI access. The licensing enforces it.


Harmonic Stack v1.0 · January 30, 2026
Built by Ghost in the Machine Labs
AGI for the home. First to AGI.