npx claudepluginhub roxabi/roxabi-factoryConversationally refine Lyra agent profiles — persona, voice, passthroughs, model.
Debug factory on production — check status, pull logs, diagnose root cause, suggest fix.
7-day visitors to each marketplace page
AI factory engine — hub-and-spoke, asyncio, multi-channel.
factory runs 24/7 on your own hardware, connects Telegram and Discord to specialized AI agents, and routes every conversation through isolated per-scope pools. No cloud lock-in. No subscription. Your data stays on your machines.
Most personal AI assistants are cloud-hosted: your data leaves your machine, your conversations are stored on someone else's servers, and the service disappears the moment a company pivots.
factory exists to run on your own hardware — a Raspberry Pi, a home server, anything always-on — and connect your preferred chat platforms (Telegram, Discord) to AI agents you control. No API keys sold to third parties. No subscription. No lock-in. When you want a different model, you swap it in TOML.
It's for developers who want a persistent personal AI without giving up ownership of their data or infrastructure.
factory.inbound.<platform>.<bot_id>).factory-hub process) subscribes to NATS, routes each message to the right agent via typed (platform, bot_id, scope_id) bindings — one pool per conversation scope (chat, thread, channel).factory.outbound.<platform>.<bot_id>). The adapter's NatsOutboundListener delivers it to the platform.chat adapters factory-hub workers
(telegram·discord) │ (clipool·omp)
│ │ │
│ inbound.<platform> │ worker.cmd │
├───────────────────────►├───────────────────────►│
│ │ │
│ │ ┌────────────┐ │
│ │ │ CliPool / │ │
│ │ │ OmpWorker │ │
│ │ └────────────┘ │
│ │ │
│ outbound.<platform> │ │
◄────────────────────────┘ NATS bus
│
infra (gh-helper·turn-writer·blobstore)
Production: Sixteen active Quadlet containers on M₁ (deploy/quadlet.toml SSoT) share a single NATS server (factory-nats). Core factory: factory-hub, chat adapters (factory-telegram, factory-discord, factory-dashboard), workers (factory-clipool, factory-omp), ingress (factory-ingress, factory-cloudflared), and infra (factory-gh-helper, factory-turn-writer, factory-blobstore). Observability: factory-loki, factory-promtail, factory-otel (Langfuse bundle and legacy factory-otel-collector disabled in manifest).
Development: factory start runs everything in one process with an embedded NATS server.
| Feature | Detail |
|---|---|
| Channels | Telegram (aiogram v3 · polling + webhook) · Discord (discord.py v2 · gateway) |
| Routing | Typed RoutingKey(platform, bot_id, scope_id) — scope = chat / thread / channel |
| Multi-bot | Multiple bots per platform, each with its own agent binding |
| Concurrency | Sequential per scope (asyncio.Task) · parallel across scopes |
| Backpressure | Bounded queue (100) → immediate ack + blocking await |
| Feature | Detail |
|---|---|
| LLM | Claude CLI subprocess (primary) · smart routing (complexity-based model selection) |
| Agents | Stateless singleton · isolated per-scope pools · AgentStore (SQLite) |
| Memory | 5 levels: working (L0 compaction) → session → episodic → semantic (FTS5 + embeddings) → procedural |
| Session commands | /explain, /summarize, /search — scrape → LLM; search via cortex memory |
| Feature | Detail |
|---|---|
| Voice | STT via voicecli (faster-whisper) · TTS via voicecli (Qwen) · OGG/Opus · Discord voice |
| Auth | TrustLevel per adapter (owner/trusted/public/blocked) · outbound verification |
| Security | Prompt injection guard · sandboxed skills · hmac webhook verification |
# 1. Install
uv sync && source .venv/bin/activate
Anthropic example skills
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
Ultra-compressed communication mode. Shortens prose while preserving technical terms, code, commands, and exact errors.