Your Code Never Leaves: Build a Private, Claude Code–Style Coding Agent
AI coding assistants have become part of everyday development — but for many enterprises, the best tools are off-limits. Sending source code, internal APIs, and project context to an external service is a non-starter when privacy, IP, and compliance are on the line. The result: teams either give up the productivity of agentic coding, or quietly leak sensitive data to get it.
This session shows a third path — one where your code never leaves your walls. We’ll build an open-source, Claude Code–style coding agent that runs entirely on local or privately hosted LLMs. Using OpenCode, Models-as-a-Service, and a layered guardrail stack, we’ll create an assistant that can explore a codebase, propose and apply changes, explain its reasoning, and trigger controlled actions, all under your governance.
Then we’ll pressure-test it. Real enterprise use demands more than a working demo, so we’ll wire in the guardrails that make an agent safe to ship: secrets protection, data-leakage detection, unsafe-command blocking, insecure-code scanning, and policy-based action control — and watch them stop a bad action live.
You’ll leave with a practical, reusable blueprint for a private coding agent that delivers the productivity of modern AI tooling without trading away trust, privacy, or compliance.
Takeaways:
- A reference architecture for a self-hosted coding agent (LLM + OpenCode + guardrails)
- How to choose and serve local/private models via Models-as-a-Service
- A concrete guardrail checklist for putting an agentic assistant into production safely


