Using local LLMs for internal linking on a static site

A developer shared a practical use case for local LLMs: creating internal links for a static website with about 400 MDX pages in one subdirectory. Instead of manually reading all pages to find relevant connections, they automated the process using local models.
Workflow
The developer first used Claude Code to write a script that created a metadata map of all MDX files. This map contained basic details like title, slug, description, and tags—but not the full page content, which would have been too resource-intensive.
With the map created, they queried every page by passing one-quarter of the map at a time to a Gemma3 27B model, running each page four times. The model was asked to find relevant pages from the map that could be linked to the main page being queried.
Problem and solution
Initially, the tags in the metadata were too broad for Gemma3 to understand, resulting in random linking. The developer identified that the data quality was the issue.
To fix this, they used Claude Code again to write another script that passed every post through the model to tag it from a predefined set. While running the site locally, they verified that the predefined tag set was being respected to ensure consistency before pushing changes live.
Technical constraints
The process required careful hardware management due to heat generation. With outside temperatures at 41°C, the computer heated up quickly, forcing the developer to stop and restart the script multiple times to prevent GPU overheating on their single 3090 Ti.
After implementing the tagging system and recreating the map, the linking process worked smoothly for the pages tested. The developer plans to manually check all 400 pages before making the changes live.
📖 Read the full source: r/LocalLLaMA
👀 See Also

Splitting AI Agents to Prevent Context Dropping
A developer describes splitting a single AI agent into three specialized agents with separate memory and workspaces to prevent context window issues. The agents communicate through a simple mailbox system to coordinate tasks like trip planning.

Cheap OpenClaw Setup: $5/mo Hetzner VPS + DeepSeek API for Under $1
A Reddit user shares a practical OpenClaw setup using a $5/mo Hetzner VPS, DeepSeek API ($5 credit), Telegram bot, Grafana, and Netdata — all costing about $1 so far.

Built a Daily YouTube → LinkedIn Pipeline with OpenClaw: Architecture, Gotchas, and Lessons Learned
A developer shares the architecture of an OpenClaw skill that scrapes 30 YouTube channels daily, analyzes transcripts via LLM, and writes to Google Sheets. Details key gotchas like Apify async vs sync, Codex idle-turn watchdog, and ARG_MAX limits.

Claude Code Ships Complete Multiplayer Game from Half-Finished Project
A developer used Claude Code to complete a competitive estimation game called Closer, adding real-time multiplayer via Supabase Realtime, ELO ranking system, daily challenges with percentile rankings, behavioral analytics dashboard, client-side routing, and confidence calibration tracking.