AI-Native Workspace: A Four-Layer Architecture for Turning Coding Agents into a Personal OS

TL;DR — AI-Native Workspace is an open-source framework for running a real research or engineering workspace with AI coding agents. Its core idea is simple: separate the Model, Agent, Protocol, and Application layers so you can swap Claude, DeepSeek, Codex, Cursor, MCP servers, project docs, and knowledge workflows without rewriting everything. Most AI coding workflows start as a pile of useful fragments: a CLAUDE.md, a few prompts, some shell scripts, maybe a .cursorrules file, and a note that says “remember to update the TODO.” That works for one project. It starts breaking when the workspace grows to five projects, three model providers, a wiki, an inbox, a handful of local services, and months of accumulated decisions. ...

2026-06-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