About Professional
How I Build How I Build Meet the Team
Technology Homelab App Showcase Case Studies
Maverick & Luke Say Hello

Case study

Building a Self-Hosted Agentic Coding IDE, and Hardening It After a Credential Leak

I turned a browser chat-and-editor tool into an AI development orchestrator: a three-panel IDE that generates code, reviews diffs hunk by hunk, commits through a dedicated bot git identity behind branch protection, runs live previews in a memory-capped sandbox, and retrieves project history from a self-hosted RAG service. It then turned a real credential leak into a "never authenticate as the owner" rule.

The challenge

I set out to build a self-hosted alternative to a cloud agentic coding tool: an AI development orchestrator that keeps scoping and code execution in one session with shared context. The problem it targets is handoff and context-loss: in a normal "plan in a chat, then execute in a separate tool" workflow, planning gets lossily compressed into prompts. This IDE keeps both in one place, reading live repositories over a self-hosted Git server (not stale copies) and querying a self-hosted RAG service for historical context.

Going in, the app was actually broken: it served HTTP 200 but the chat-and-git round-trip didn't work, and a stubborn cleanup blocked the work before it could start. The build then spanned five milestones. Midway through, a credential leak forced a cross-cutting security objective on top of the feature work.

Approach

My guiding principle: keep the human merge gate, make every default safe, and read authority from the server, not the client.

Results

What this demonstrates