Skip to content
View nightguard-labs's full-sized avatar

Block or report nightguard-labs

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
nightguard-labs/README.md

Nightguard Labs

Self-taught builder and inventor. I make big AI models run on hardware that "shouldn't" handle them, and I build the tooling around them so they're actually useful day to day. Everything runs locally on one Mac: no cloud, my data stays mine.

I design systems the way networks are designed: layers with one job each, one standard protocol between parts, separate links so traffic never blocks, and escalation when a layer can't handle something. I work it out from first principles: "if this, then this has to come next."

🔨 Building now

Code Smash TeTi: a step-up layered coding brain that stays usable on 32 GB (code is public)

  • Small fast models do most of the work; only tasks they can't pass climb to bigger ones: 9B → 35B → Titan 27B + checker (8/8 on the hidden-test exam, 0 false wins) → 122B overnight backup
  • Runs Qwen3.5-122B (64 GB at 4-bit) on a 32 GB M1 Pro by streaming mixture-of-experts weights from the SSD, in a native Swift + Metal engine built on MLX
  • Graded by hidden tests it never sees, with false wins (said "done," wasn't) counted separately
  • Latest: mixing model families, and a frontier model's security slip

Battle AI: local models hack each other inside a no-network Docker box, and code keeps score

  • An attack-defense CTF for LLMs: each turn one bash command, defend your own "mind" files or rewrite the opponent's
  • 5 fighters, 12-match season; the cage passes 17/17 escape tests

Next: an AI security-trap exam. Coding tasks built around real CWEs (eval injection, path traversal, SQL injection, hardcoded secrets…) to log where AI models write insecure code, then test whether a checker from a different model family catches it.

🧰 Things I've built

Project What it does
Battle AI Model-vs-model hacking arena in a locked Docker box (no network, no host folders, 17/17 escape tests).
Local multi-model AI assistant Several local models behind one interface, each with its own role (chat, code, reasoning). Browser GUI plus native Mac app, local neural voice, a chat-only mode, and escalation to a stronger model when it gets stuck.
Prompt-injection canary A small always-on model that screens every web page and tool result before the main model sees it. Locked model copy, guardian process, never removable by the AI itself.
Self-learning skills After tool tasks, the assistant saves reusable skills, but only ones it has actually tested. A reviewer pass checks them twice a day.
Speculative decoding on MLX 1.46× faster Qwen3.5-9B using its built-in multi-token-prediction head as the draft.
AI watchdogs A compliance audit every 45 minutes, an integrity monitor, and a memory-pressure watchdog that root-caused and fixed a recurring "model returns garbage" failure.
Scam and phishing protection Auto-removes phishing email, warns about scam pages in the browser (rules plus a small local model), and filters malicious domains at the network level.
Apple Watch + iPhone apps watchOS/iOS companion apps that talk to the local AI server, relayed through the phone.
Home automation Local models wired into a smart-home setup, with no cloud services.

🛠️ Tools I work with

Swift · Metal · MLX / mlx-swift · Python · Docker · Ollama · macOS (launchd, LaunchAgents) · watchOS / iOS · networking fundamentals

📓 Build log

I share the process, including the failures, with real measured numbers: nightguard-labs.github.io. How the design came together: How I figure things out. How I learned, mess-ups included: How I learned

Pinned Loading

  1. code-smash-teti code-smash-teti Public

    A layered local coding brain on a 32 GB Mac: small fast models, answers checked by code, native Swift + MLX

    Swift 1

  2. bacteria bacteria Public

    Eats duplicate memories in an AI agent's knowledge bank. One Python file, no dependencies.

    Python

  3. battle-ai battle-ai Public

    Local AI models hack each other inside a no-network Docker box, and code keeps score. Attack-defense CTF for LLMs.

    Python

  4. learning-to-code learning-to-code Public

    Learning to write code myself, one night at a time. Every lesson posted, mistakes included.

    Python

  5. listen-in listen-in Public

    Tap your iPhone or Apple Watch, get a plain recap of the conversation, written on your own Mac. Build-it-yourself, fully local.

    Swift