Asi nhero-pyhole

DNS-style medication routing layer for nhero devices. Intercepts scheduling commands like Pi-hole intercepts DNS, routes through scramble index, enforces blocklist/allowlist per killdispenser signals.

install
source · Clone the upstream repo
git clone https://github.com/plurigrid/asi
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/plurigrid/asi "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/nhero-pyhole" ~/.claude/skills/plurigrid-asi-nhero-pyhole && rm -rf "$T"
manifest: skills/nhero-pyhole/SKILL.md
source content

nhero-pyhole

Pi-hole for pill dispensers. Intercept, filter, route.

Architecture

Hero App → [mitmproxy] → nhero-pyhole → [scramble index] → Hero Cloud
                              ↓
                     killdispenser signals
                              ↓
                   [blocklist / allowlist]
                              ↓
                     DISPENSE or HOLD

DNS Analogy

Pi-holenhero-pyhole
DNS queryDispense command
Blocklist domainControlled substance slot
Allowlist domainOTC supplement slot
Upstream DNSHero cloud API
Local DNS cacheScramble index (letter → med)
CNAME recordDerangement mapping (q → Vyvanse)
Gravity listNurse approval queue

mitmproxy Integration

nhero-pyhole runs as a mitmproxy addon:

mitmproxy -s /Users/alice/worlds/h/hero_intercept.py --mode regular --listen-port 8080

Local IP for iOS proxy config:

172.20.12.94:8080

Scramble Resolution

query("q") → CNAME → "Vyvanse" → CHECK blocklist → HOLD (controlled)
query("x") → CNAME → "Magnesium" → CHECK allowlist → DISPENSE (OTC)

Parent

Part of the nhero hierarchy.