ordered-locale-fanout
БесплатноЗапускает вложенные скриптыНе проверенUPDATED: Now uses proper ordered-locale (Heunen-van der Schaaf 2024). Cocone construction over triadic ordered locale with open cone condition.
от plurigrid★ 73 звезды на GitHubОб этом скилле
Ordered Locale Fanout
Status: ✅ Production Ready (Updated Dec 24, 2024)
Trit: 0 (ERGODIC - coordinator/synthesizer)
Principle: Cocone over GF(3) ordered locale (Heunen-van der Schaaf)
Platform: macOS with Apple Silicon + MLX
Mathematical Foundation (CORRECTED)
This is now based on true ordered locales per Heunen-van der Schaaf (2024):
An ORDERED LOCALE is:
1. Frame L (complete Heyting algebra of opens)
2. Order ≪ on L (between OPENS, not points!)
3. Open cone condition: ↑U and ↓U are open when U is open
The fanout is a cocone (colimit diagram) over this ordered locale:
MINUS(-1) ERGODIC(0) PLUS(+1)
\ | /
\ direction /
\ 0 → 1 /
\ | /
ι₋₁ ι₀ ι₊₁
\ | /
↘ ↓ ↙
APEX
(merged)
The ordered locale structure:
- Opens: {MINUS, ERGODIC, PLUS} — no points, just roles
- Order: -1 ≤ 0 ≤ +1 (compatible with meet)
- Direction: flow from validation → coordination → generation
See ordered-locale skill for formal definition.
Overview
Ordered Locale Fanout splits work into 3 parallel agents, each with:
- Fixed trit (-1, 0, +1) determining role
- Fixed voice/locale for auditory distinction
- Deterministic seed derived from parent
- Optional MLX generation for local LLM inference
┌─────────────────┐
│ PARENT AGENT │
│ seed=0x42D │
└────────┬────────┘
│ fork(3)
┌─────────────────┼─────────────────┐
▼ ▼ ▼
┌───────────────┐ ┌───────────────┐ ┌───────────────┐
│ MINUS (-1) │ │ ERGODIC (0) │ │ PLUS (+1) │
│ Anna (German) │ │ Thomas (French)│ │ Luca (Italian)│
│ VALIDATE │ │ COORDINATE │ │ GENERATE │
│ seed₀ │ │ seed₁ │ │ seed₂ │
└───────────────┘ └───────────────┘ └───────────────┘
Ordered Locale Table
| Trit | Role | Voice | Language | Character |
|---|---|---|---|---|
| -1 | VALIDATOR | Anna | German | Precise, constraining |
| 0 | COORDINATOR | Thomas | French | Neutral, synthesizing |
| +1 | GENERATOR | Luca | Italian | Creative, producing |
Python Implementation
#!/usr/bin/env python3
"""
ordered_locale_fanout.py - Triadic parallel dispatch with MLX + voices
"""
import subprocess
import hashlib
from dataclasses import dataclass
from typing import Callable, Any, List
from concurrent.futures import ThreadPoolExecutor, as_completed
# SplitMix64 constants
GOLDEN = 0x9E3779B97F4A7C15
MIX1 = 0xBF58476D1CE4E5B9
MIX2 = 0x94D049BB133111EB
MASK64 = 0xFFFFFFFFFFFFFFFF
@dataclass
class Locale:
trit: int
role: str
voice: str
language: str
ORDERED_LOCALES = [
Locale(trit=-1, role="VALIDATOR", voice="Anna", language="German"),
Locale(trit=0, role="COORDINATOR", voice="Thomas", language="French"),
Locale(trit=1, role="GENERATOR", voice="Luca", language="Italian"),
]
def splitmix64(x: int) -> int:
z = (x + GOLDEN) & MASK64
z = ((z ^ (z >> 30)) * MIX1) & MASK64
z = ((z ^ (z >> 27)) * MIX2) & MASK64
return (z ^ (z >> 31)) & MASK64
def fork_seeds(parent_seed: int) -> List[int]:
"""Fork parent seed into 3 child seeds."""
return [
splitmix64(parent_seed ^ (i * GOLDEN))
for i in range(3)
]
def announce(locale: Locale, message: str):
"""Announce via macOS say with locale-specific voice."""
subprocess.run(
["say", "-v", locale.voice, message],
capture_output=True
)
def fanout(
seed: int,
task_fn: Callable[[Locale, int, Any], Any],
context: Any = None,
announce_start: bool = True,
announce_end: bool = True
) -> dict:
"""
Execute triadic fanout with ordered locales.
Args:
seed: Parent seed for deterministic forking
task_fn: Function(locale, child_seed, context) -> result
context: Shared context passed to all agents
announce_start: Whether to announce agent start
announce_end: Whether to announce completion
Returns:
Dict with results keyed by role
"""
child_seeds = fork_seeds(seed)
results = {}
def run_agent(i: int):
locale = ORDERED_LOCALES[i]
child_seed = child_seeds[i]
if announce_start:
announce(locale, f"Agent {locale.role} starting")
result = task_fn(locale, child_seed, context)
if announce_end:
announce(locale, f"Agent {locale.role} complete")
return locale.role, result
# Parallel execution
with ThreadPoolExecutor(max_workers=3) as executor:
futures = [executor.submit(run_agent, i) for i in range(3)]
for future in as_completed(futures):
Установить ordered-locale-fanout в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ordered-locale-fanout?
UPDATED: Now uses proper ordered-locale (Heunen-van der Schaaf 2024). Cocone construction over triadic ordered locale with open cone condition.
Как установить скилл ordered-locale-fanout?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ordered-locale-fanout запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic