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

Claude Opus 4.6 Reverse Engineers Game Authentication in 7 Minutes Using Ghidra MCP
A developer used Claude Opus 4.6 with Ghidra's MCP server plugin to reverse engineer the authentication verification method for Command & Conquer: Kane's Wrath. The AI analyzed a clean binary, identified the verification function, created a patch, and renamed all functions and data structures in about 7 minutes.

Controlling Claude Code via WhatsApp with Channels Feature
A developer connected WhatsApp to a running Claude Code session using the Channels feature (v2.1.80+), enabling text messages, voice notes with Whisper transcription, and voice replies with OpenAI TTS to interact with the same CLI session.

OpenClaw user struggles with AI agent automation after successful Claude Code pipeline
A marketing agency owner successfully created an image recreation pipeline using Claude Code in one hour, but encountered problems when trying to teach the same process to an AI agent in OpenClaw running on Gemini 3.1 Pro, with issues including bad reasoning, slow responses, and incorrect outputs.

How One Team Replaced a 6-Figure HubSpot Agency with Claude Code
A mid-sized e-commerce company built their entire HubSpot Enterprise migration using Claude Code, replacing quotes of 20k-80k EUR for partial setups. They built 6 custom objects, 5 n8n integrations, and a KlickTipp migration in 4 months, with Claude Code handling both code and documentation.