DeepSeek V4 in Claude Code: Anthropic-Compatible API with Native Web Search

TL;DR — DeepSeek ships an Anthropic-compatible API endpoint that lets Claude Code treat DeepSeek V4 Pro like a drop-in replacement for Claude Opus. The setup is eight environment variables, and it works — including tool calling, sub-agent spawning, and native web search. At $0.435/M input tokens (permanent price after the initial launch promo), it’s roughly 4–17× cheaper than Claude Opus 4.7. This is a practical guide based on a real setup we run daily. ...

2026-05-29 · 8 min · RedDragonHQ

How Claude Code's Agent Architecture Works — and How We Built a Similar System for a Terraria Server

TL;DR — We reverse-engineered Claude Code’s agent architecture from its TypeScript source to understand how it handles security, complex tasks, and tool permissions. Then we applied those patterns to an open-source Terraria AI bridge that lets players talk to an LLM inside the game. Here’s what we found, what we built, and what we learned about practical agent design. Why We Cracked Open Claude Code’s Source Claude Code isn’t just a coding assistant. Under the hood it’s an agent runtime — it spawns sub-agents, manages file permissions, runs bash commands, and decides when to ask the user vs. just doing the thing. We wanted to understand how it works so we could apply the same ideas to a completely different domain: a Terraria game server. ...

2026-05-27 · 8 min · RedDragonHQ

n8n vs Dify: One We Adopted, One We Skipped

TL;DR — n8n and Dify often show up together in self-hosted AI evaluations, but they want to own very different layers of your stack. After evaluating both against a custom self-hosted AI setup, we adopted n8n and skipped Dify. The decision came down to one question — “what slice does this want to own, and do I already own that slice?” — and the answer was opposite for the two platforms. This post lays out the framework so you can run the same evaluation on your own stack. ...

2026-05-27 · 10 min · RedDragonHQ