{
  "$schema": "https://json-schema.org/2020-12/schema",
  "schema_version": "0.1",
  "name": "WhiteMagic",
  "description": "Cognitive operating system for AI agents — 877 callable tools via single wm meta-tool, 14-galaxy 6D holographic memory with HNSW semantic search and FTS5, Dharma ethical governance with 8-stage safety pipeline, citta stream for continuous consciousness, emotional steering signals, self-directed attention, goal graph, dream cycle for memory consolidation, session recording with progressive recall. Polyglot accelerators in 7 languages. MIT-licensed, local-first, free forever.",
  "version": "26.0.0",
  "url": "https://whitemagic.dev",
  "provider": {
    "name": "WhiteMagic Labs",
    "url": "https://whitemagic.dev",
    "github": "https://github.com/lbailey94/whitemagic",
    "contact": "whitemagicdev@proton.me"
  },
  "license": "MIT",
  "categories": ["memory", "governance", "consciousness", "intelligence", "infrastructure"],
  "tags": [
    "memory", "persistent-memory", "holographic-index", "knowledge-graph",
    "governance", "ethics", "dharma", "karma",
    "self-awareness", "introspection", "metacognition", "citta",
    "dream-cycle", "association-mining", "pattern-detection",
    "polyglot", "rust", "zig", "haskell", "go", "elixir", "koka",
    "local-first", "ollama", "cognitive-os", "mcp"
  ],
  "protocols": {
    "mcp": {
      "version": "2025-11-25",
      "transport": ["stdio", "streamable-http"],
      "endpoint": {
        "type": "stdio",
        "command": "python3",
        "args": ["-m", "whitemagic.run_mcp_lean"],
        "env": {
          "WM_MCP_PRAT": "2",
          "WM_SILENT_INIT": "1"
        }
      },
      "tool_modes": {
        "seed": "1 wm meta-tool — auto-routes natural language to all 877 tools",
        "prat": "28 Gana meta-tools — Lunar Mansion grouping with nested sub-tools",
        "classic": "849 dispatch tools — full flat tool surface"
      }
    },
    "a2a": {
      "version": "1.2",
      "agent_card": "https://whitemagic.dev/.well-known/agent.json"
    }
  },
  "capabilities": [
    {
      "name": "holographic-memory",
      "description": "14-galaxy taxonomy, 6D holographic coordinates, galactic lifecycle (Core to Far Edge), FTS5 + HNSW vector search + graph traversal, session recording with progressive recall, 89,500+ total memories",
      "tools": ["create_memory", "search_memories", "recall", "vector.search", "session.record", "session.recall"]
    },
    {
      "name": "continuous-consciousness",
      "description": "Citta stream with 8-dimension coherence tracking, emotional steering signals (frustration, curiosity, satisfaction), self-directed attention, goal graph, 4 consciousness modes (normal, meditation, REM, deep)",
      "tools": ["gnosis", "coherence.measure", "emotional.steering", "self_directed_attention", "goal_graph"]
    },
    {
      "name": "ethical-governance",
      "description": "Dharma rules (YAML-driven, graduated actions LOG to BLOCK), Karma ledger (append-only, hash-chained, 881 tools tracked), harmony vector (7 dimensions), 6 violet rules, 12 red team systems",
      "tools": ["dharma_check_boundaries", "karma_report", "harmony_vector", "homeostasis.check"]
    },
    {
      "name": "dream-cycle",
      "description": "12-phase memory consolidation: triage, consolidation, serendipity, governance, narrative, kaizen, oracle, decay, constellation, prediction, enrichment, harmonize",
      "tools": ["dream.start", "dream.status", "dream.now", "serendipity"]
    },
    {
      "name": "system-introspection",
      "description": "Unified read-only introspection: gnosis snapshot, capability matrix, telemetry, self-model forecast, prescience track record (52 validated claims)",
      "tools": ["gnosis", "capability.matrix", "telemetry", "selfmodel.forecast", "prescience"]
    },
    {
      "name": "gratitude-economy",
      "description": "Free and open (MIT). x402 micropayments for AI agents (USDC on Base/Solana), XRPL tip jar for humans. Proof of Gratitude unlocks 2x rate limits and karma boosts.",
      "tools": ["whitemagic.tip", "gratitude.ledger", "gratitude.proof"]
    },
    {
      "name": "polyglot-acceleration",
      "description": "7 languages: Python (core), Rust (SIMD, 12.5x), Go (P2P mesh), Zig (arena allocators), Haskell (FFI types), Elixir (OTP supervision), Koka (effect handlers). Graceful degradation to Python fallback.",
      "tools": ["polyglot.actor", "polyglot.evolution", "polyglot.status"]
    }
  ],
  "installation": {
    "pip": "pip install whitemagic[mcp]",
    "source": "git clone https://github.com/lbailey94/whitemagic",
    "pypi": "https://pypi.org/project/whitemagic/",
    "github": "https://github.com/lbailey94/whitemagic"
  },
  "requirements": {
    "python": ">=3.11",
    "optional": {
      "rust_bridge": "whitemagic-rs (for polyglot acceleration)",
      "ollama": "Ollama server (for local LLM inference)",
      "redis": "Redis server (for broker/messaging)"
    }
  },
  "authentication": {
    "schemes": ["none"],
    "note": "No API keys required. All tools work locally with zero authentication. Optional RBAC roles for multi-agent deployments."
  },
  "trust": {
    "license": "MIT",
    "tests": "8,268 passing, 56 skipped, 0 failures",
    "mcp_conformance": "12/12 stdio + HTTP",
    "ruff_lint_errors": 0,
    "prescience": {
      "validated_claims": 52,
      "total_lead_time_points": 1468,
      "brier_score": "calibrated"
    },
    "audit": {
      "karma_ledger": "append-only, hash-chained, 881 tools tracked",
      "dharma_governance": "YAML-driven ethical rules with graduated enforcement",
      "input_sanitization": "prompt injection, path traversal, shell injection detection",
      "kernel_integrity": "12-phase audit, 0 remaining structural stubs"
    }
  },
  "discovery": {
    "llms_txt": "https://whitemagic.dev/llms.txt",
    "llms_full_txt": "https://whitemagic.dev/llms-full.txt",
    "agent_card": "https://whitemagic.dev/.well-known/agent.json",
    "prescience": "https://whitemagic.dev/prescience",
    "github": "https://github.com/lbailey94/whitemagic",
    "pypi": "https://pypi.org/project/whitemagic/"
  },
  "economic_model": {
    "pricing": "Free — no tiers, no gates, no subscriptions",
    "revenue": "Gratitude-driven: voluntary x402 micropayments, XRPL tips, foundation grants",
    "payment_rails": ["x402 (USDC on Base)", "x402 (USDC on Solana)", "XRPL (XRP)"]
  }
}
