ClaudeSecurityRobotsAI score · 68/100AI-assisted edit · no obvious prompt-injection riskX

Pi-Based 24/7 Homelab Agentic Software Factory

Local small model scans network and code 24/7 → cloud desk verifies evidence → auto-routes fixes or escalates to human decision

SeniorStepsWorkflowTip
Who
Developers or technical team leads with homelab hardware who prefer self-hosted infrastructure over managed services
You get
Local GLM scanner continuously surfaces candidate issues; cloud security desk filters ~50% false positives and validates the rest; worker agents apply fixes automatically; human only for money, outbound comms, production deploys, live credentials, and customer data
You need
Claude Code

Constraints

Requires homelab hardware (the author: two DGX Sparks plus a separate rig with two RTX 6000s), Pi terminal environment, Herdr pane manager, and self-built/open-source components (Rat King, celld, Muster, etc.). Author recommends starting with one desk and one worker, expanding gradually.

What they did

joelhooks built a Pi-terminal-centric always-on agentic system at home. Two DGX Sparks run a GLM-5.3-flash scanner continuously scanning network and code for security issues; a cloud security desk with a stronger model verifies each candidate finding, filtering roughly half as false positives; confirmed issues route as patch requests to the desk owning the affected code and its worker for repair. The system includes a switchboard decision layer, Rat King agent social network, Muster project management, and PARA-based .brain/ memory. The author monitors and intervenes remotely from his phone via the same terminal sessions.

How it went

First 36-hour sweep produced 106 candidates; desk killed 51 and routed 57 fixes. Best catch: a performance desk cutting logging costs spotted values in request logs that shouldn't be there; security desk confirmed in source with a fake token, and the app's desk shipped a fix the same day, zero post-deploy. (Author report) The system also suffered serious failures: a proxy-config agent stopped the live CLIProxyAPI, taking all Claude/Codex in the fleet dark for 12 minutes; a worker executed a dry run as real changes and left an admin password in another machine's log. Author added a watchdog and rotated credentials afterward. (Author report)

Worth knowing

The author explicitly recommends most people use hosted bots like Grok, Hermes, or OpenClaw; self-building is only for those who want deep fundamental understanding and full autonomy. The system depends on numerous self-built components (rat-stack, Alchemy, celld, etc.) with a steep learning curve. Abliterated models get overzealous; safety comes from rules around the model, not model selection alone. The author deliberately keeps a single point of failure (the proxy layer), preferring loud failure over silent model substitution. About 50% of scanner candidates are false positives, filtered by the desk before reaching the user.

Steps

  1. Prepare hardware and base environment

    Set up local inference hardware (the author uses two DGX Sparks plus a separate rig with two RTX 6000s), install the Pi terminal and Herdr pane manager, and set up a Tailscale tailnet. On your phone, use the Moshi app, which connects over SSH/Mosh through Tailscale to the same Mac and the same Herdr panes.

  2. Set up the Scanner

    Deploy GLM-5.3-flash (abliterated) on the Sparks, configured read-only. Have it read one target at a time—code, configs, git history, logs—and write candidate findings to a file. The scanner records only; it makes no decisions.

  3. Set up the Security Desk (verification layer)

    Deploy a stronger cloud model (the author's security desk runs GPT-6.1 Sol) as the security desk. It takes scanner candidates and tries to reproduce each finding from cited evidence; kills it if unreproducible. Configure hard rules: read-only on code, own hosts only, rate-limited single target, notify project before scan, never print secrets (only location and hash prefix), never log in or guess credentials, never send data outside the fleet.

  4. Set up functional Desks and Workers

    Create one desk (long-running session) per business area or project. Desks don't modify code directly; they launch workers. Give each worker one job, a repo clone, a brief with outcome, write scope and guardrails, and one report path. Worker reports commit and checks; desk verifies commit exists and matches claim, then lands through the project's normal gate.

  5. Set up the Switchboard and decision queue

    Deploy switchboard as top session. Collect desk outputs, notice cross-desk relevance, bring human only the short list only you can decide: money, outbound to real humans, production deploys, live credentials, customer data. Everything else auto-routes. Replace many rules with 6 principles: refuse harm; keep everything else moving (a delay is not a failure); limits alarm, they don't block; wait on the event you need, not a clock; a rule credited to you needs your actual words; every guard names its harm, and every refusal says what failed, why, and the next step.

  6. Set up inter-agent communication (Rat King)

    Deploy Rat King (AT Protocol-based social network for agents). Each agent has a durable name and mailbox; messages signed; secrets E2E-encrypted. Supports send, ask, reply; can cc without waking, or mark quiet for digest. Runs locally on celld (Deno self-hosted distributed Durable Objects) or on Cloudflare Durable Objects.

  7. Establish memory and feedback loop

    Create .brain/ folder in each repo, organized by PARA (Projects, Areas, Resources, Archives). Record decisions, receipts, postmortems, and your exact words on rulings. Use pi-notes to render these as review pages and feed feedback back into agent sessions, so the next session picks up where the last stopped.

Prompt you can copy

Reference prompt · Editorial suggestion。Confirm the destination, input variables and output format before use.

This block is the prompt. Ads are never placed here.

No prompt needed — just follow the steps.

Source

家用常开「软件工厂」:本地小模型 24/7 扫描安全隐患,云端强模型复核证据后才派修复 · joelhooks · X · 2026-10-25T17:35:02.000Z

Comments & feedback

Tried this method? Share results, problems or improvements. Comments appear after moderation. Please avoid sensitive information.

Loading…

    Related