AI Agent & Local GPU Automation: Deterministic Workflows + RTX 3060 Inference
Combining deterministic state machines, local GPU inference, and disciplined agent orchestration into robust business automation.
Deterministic Engineering vs. Raw Prompt Engineering
Generative models are brilliant for unstructured semantic comprehension, but notoriously brittle at maintaining state, enforcing catalog boundaries, and processing transactions. Our AI architecture rejects "prompt-only" systems. All customer checkout flows, trial provisioning, and deep links are governed by strict finite state machines before an LLM ever touches the user input. On the compute layer, instead of incurring unpredictable cloud API bills and leaking private telemetry, we deploy self-hosted inference pipelines on an on-premise RTX 3060 12GB. By pairing CosyVoice 2 for neural voice synthesis, faster-whisper for acoustic alignment, and ComfyUI API headless runners for multimodal assets, we achieve high throughput with zero ongoing per-token runtime costs.
L1: Deterministic Orchestration & State Machines
The execution layer that wraps business logic in deterministic state machines, ensuring orders and trials execute cleanly without LLM intervention.
-
How I Built the DigiKedai Telegram AI Bot
A customer-support AI bot that answers questions and provisions free-trial accounts over Telegram and WhatsApp — TypeScript, grammY, a Cloudflare tunnel webhook, and a self-hosted LiteLLM gateway.
-
Stop Writing Agent Prompts for Deterministic Work
One of my scheduled jobs failed 29 times in a row because I put a model in a loop that only needed a string comparison. Here is the rule I use now.
-
Uploading 100MB+ Videos to YouTube via CDP: The Docker Archive Pattern
Learn how to stage large video files inside a Dockerized Chrome container using the Docker Archive API, then attach them through CDP without sending the entire file over the browser WebSocket.
-
Why Chrome Forgets Its Tabs in a Container — And How I Fixed It
Chrome's "continue where you left off" never fires inside a Docker container. The three fixes that failed, the real root cause, and the 70-line keeper that works.
-
Why Is My TTS Model Repeating "Percent"? The URL-Encoding Trap in Speech Pipelines
Why our newly deployed local TTS engine synthesized endless 'percent' repetitions instead of spoken Chinese, and how character normalization and n8n sandbox limits collided.
-
Why Telegram Bot Notifications Die: IPv6, DNS, and a 400 That Took a Day
A debugging story: a Dockerized telegram monitor whose sendPhoto calls returned 400 from nginx/1.30.1 while getMe worked fine — an IPv6-only DNS answer, a wrong extra_hosts IP, and a multipart join that corrupted JPEG bytes.
L2: Hybrid LLM Gateway & Agent Loops
The intelligence broker that decouples agent applications from underlying model providers, enforcing verification gates before output acceptance.
-
How I Self-Hosted a Mem0 Memory Stack (So My AI Agent Remembers)
A private, self-hosted memory layer for AI agents — mem0 API + LiteLLM + PostgreSQL with pgvector on a Synology NAS. Semantic memory under your control, not a third party's.
-
Slashing Agent Context and Token Churn With a Code Graph
Why dumping source files into LLM prompts leads to token bankruptcy and hallucinated bugs, and how pre-indexed AST knowledge graphs slash context by 80%.
-
Syncing a Self-Improving AI Agent Across Machines
How I sync my Hermes agent's skills, config, and cron jobs between two PCs with a git-backed profile distribution — and why I sync manually instead of on a cron.
-
The Single-Writer Rule: Orchestrating Coding Agents Without Multi-Agent Chaos
Why letting multiple AI agents write code causes race conditions and drift, and how a single-writer architecture with isolated reviewers fixes it.
-
I Committed 518,000 Lines in 30 Days. Production Kept 235,000.
Over 30 days, autonomous coding agents added 518,000 lines across 5 repos, yet production kept 235,000. Here is why verification gates matter more than generation.
-
Why Multi-Agent Coding Fails: The Telephone Game and Architectural Drift
Why swarms of autonomous coding agents step on each other, play the telephone game, and make implicit conflicting decisions that break repositories.
L3: Local GPU Inference Stack (RTX 3060)
On-premise GPU inference engine replacing recurring cloud speech and vision APIs with private, zero-token-cost local execution.
-
Generating Subtitles for Songs That Ship Without Timestamps
AI music tools give you audio and nothing else — no line timings, no karaoke. Here is the pipeline I use to produce LRC and SRT subtitles for 18 songs, why plain transcription fails, and the two bugs that made the lyrics box scroll to the bottom.
-
I Ran a Text-to-Speech Service for a Year on Two Cron Containers
A reading app needed TTS. Cloud free tiers expire tokens in 10 minutes and 1 hour. Here's the sidecar pattern that kept Azure and Google voices working for a year with no secrets in any workflow.
-
Your Own Speech-to-Text Server: Faster Than Typing, Private by Default
I run a self-hosted speech-to-text API on a single GPU PC. Dictation works from Windows, iPhone, iPad and Android — private, unlimited, and over 3x faster than typing.
-
How I Replaced Cloud TTS with a Self-Hosted Neural Voice Stack on an RTX 3060
How I migrated our production automation workflows from cloud speech APIs to a self-hosted CosyVoice 2 pipeline on a 12GB RTX 3060, integrated with Synology N8N.
-
Why I Still Bought a GPU to Run AI When Claude and GPT Are Obviously Stronger
Claude Opus and GPT are stronger than anything I can run locally. Here is the cost, control, and uptime argument for owning a GPU anyway — with real numbers.
L4: Automated AIGC & Media Pipelines
High-throughput multimodal production pipelines turning raw prompts and audio stems into complete, broadcast-quality music and video deliverables.
-
From Audio to a 4-Minute Music Video: Orchestrating Gemini, AI Diffusion, and Filmora Editing
A complete production breakdown of building a 4-minute 1080p anime OP music video (Crescent Bay): AI music generation, Gemini storyboard prompting, iterative image-to-video rerolls, and Filmora VFX editing.
-
Generating Full-Length Songs with YuE2 BF16: Overcoming Duration Limits and Audio Truncation
AI music tools cut off complex tracks mid-sentence. Here is how I solved the 240s duration wall using YuE2 BF16, 295s headroom budgeting, and a 60-song pipeline.
-
How I Built an Automated Music Video Pipeline with Remotion and Dockerized YouTube CDP
Explore an automated music video workflow using Remotion, Whisper, Docker and Chrome DevTools Protocol, from lyric alignment and rendering to YouTube publishing and multilingual subtitles.
-
Running AI Video Locally on a 12 GB GPU: Real Numbers for Wan 2.2 and SeedVR2
Measured on an RTX 3060: Wan 2.2 TI2V-5B generation, SeedVR2 upscaling, the 1080p resolution trap, and the one command that fixed five failed runs.
-
Why My AI Songs Kept Losing Their Endings: Running YuE2 on a 12 GB GPU
Twelve Mandarin songs came out exactly 240.000 seconds long with the outros missing. The cause wasn't the lyrics — it was a hard cap, a VRAM ceiling, and a planner that ignores BPM.
Want to Deploy Private AI & Automation for Your Business?
Replace fragile manual processes and costly monthly SaaS subscriptions with private, reliable automation pipelines.
Discuss Your Automation Project on WhatsApp →