gateway
БесплатноБез исполняемых скриптовНе проверенOperate the joelclaw gateway daemon — the always-on pi session that receives events, notifications, and messages. Use the joelclaw CLI for ALL gateway…
от joelhooks★ 69 звёзд на GitHubОб этом скилле
Gateway Operations
The gateway daemon is the always-on pi session that receives events from Inngest functions, Telegram, and webhooks. It's the system's notification and communication layer.
Rule: Always use joelclaw gateway CLI. Never use launchctl, curl, or log file grep directly.
CLI Commands
joelclaw gateway doctor # PASS/FAIL process, live source tree, Redis, adapter, and poller
joelclaw gateway doctor --live # Full notify path; requires Telegram platformMessageId
joelclaw gateway status # Daemon availability, runtime mode, session pressure, Redis health
joelclaw gateway restart # Roll daemon, then print the doctor summary
joelclaw gateway enable # Re-enable launch agent + start daemon
joelclaw gateway test # Push test event, verify delivery (Redis bridge path)
joelclaw gateway push --type <type> [--payload JSON] # Push an event to all sessions
joelclaw gateway events # Peek at pending events per session
joelclaw gateway drain # Clear all event queues
joelclaw gateway stream # NDJSON stream of all gateway events (ADR-0058)
joelclaw gateway channel {list|status|enable|disable} # Enable/disable runtime channels
joelclaw gateway behavior {add|list|promote|remove|apply|stats} # ADR-0211 behavior control plane
joelclaw gateway restart is the canonical restart. It kills the process, cleans Redis state, re-enables com.joel.gateway if launchd disabled it, waits for launchd to respawn, records the operator restart marker, and prints the doctor summary. joelclaw gateway enable is the direct recovery path when launchd drift disabled the service. Never use launchctl bootout/bootstrap directly.
The live daemon executes source from the main joelclaw working tree. Never carry gateway-touching WIP there. Use a separate Git worktree so a daemon crash cannot relaunch half-edited code. gateway doctor makes a running daemon plus dirty gateway runtime source a loud failure. Its --live proof requires a real Telegram platformMessageId; confirmed telemetry without that ID is not delivery proof.
Channel enable/disable
Use the CLI. Do not hand-edit ~/.joelclaw/scripts/gateway-start.sh unless the CLI is broken.
joelclaw gateway channel list
joelclaw gateway channel disable discord --restart
joelclaw gateway channel enable discord --restart
joelclaw gateway channel status discord
The CLI blanks/restores the channel env assignments in ~/.joelclaw/scripts/gateway-start.sh, writes a /tmp/joelclaw/gateway-start.sh.* backup before changes, and can restart the gateway when --restart is present. Telegram disable requires --force because it is a primary operator channel. Do not revoke or delete stored secrets for a temporary disable.
Expected disabled Discord state: component disabled; channel configured:false, started:false, ready:false, botUserId:null; health entry status:"disabled".
Quick triage
Start with joelclaw gateway doctor, status, and supported diagnostics. Resolve the configured owner before probing dependencies. Missing local Colima or Kubernetes does not prove the gateway dependency is down.
Follow the first relevant failure to its cause. Continue independent diagnosis and requested repairs. Queue age alone is not a hang: check active progress, configured timeouts, and process evidence before a scoped restart.
doctor --live and gateway test send real traffic. Use them only within authorization for the destination and content. Diagnosis alone does not authorize an outbound canary. A queue acknowledgement is not delivery proof.
Redis-degraded mode (ADR-0214)
joelclaw gateway status now distinguishes:
mode: normal— Redis bridge healthymode: redis_degraded— daemon/channels/session available, but Redis-backed capabilities are degraded
When mode=redis_degraded:
- direct human conversation can still work
- Redis-backed commands/inspections are only partially trustworthy
joelclaw gateway testvalidates the Redis bridge path, so expectjoelclaw gateway diagnoseto skip that layer intentionally- use
joelclaw gateway diagnoseto see the degraded capability list and session pressure fields
Do not report redis_degraded as “gateway down” unless process/session health is also failing.
Gateway context refresh scoping (ADR-0204)
Gateway rolling context refresh is useful only when it stays scoped.
Hard rule:
- do not treat automated digests, gateway event wrappers, recovery summaries, or terse acknowledgements as recall seeds
- if there is no real conversational topic, skip refresh rather than querying generic global memory
Why:
- a bad hidden
context-refreshinjection poisons the live gateway session even whenjoelclaw gateway statusstill reports healthy - this showed up as unrelated voice/livekit notes bleeding into the gateway transcript
If Joel says the gateway session feels "fucked" while health checks look green, use the scope-bound session evidence c
Установить gateway в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл gateway?
Operate the joelclaw gateway daemon — the always-on pi session that receives events, notifications, and messages. Use the joelclaw CLI for ALL gateway operations. Use when: 'restart gateway', 'gateway status', 'is gateway healthy', 'push to gateway', 'gateway not responding', 'telegram not working', 'messages not going through', 'gateway stuck', 'gateway debug', 'check gateway', 'drain queue', 'test gateway', 'stream events', or any task involving the gateway daemon.
Как установить скилл gateway?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл gateway запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic