# "Claude Code Web JUST Dropped but I Already Built Something BETTER" <!-- ref: @content/youtube/cole-medin/2025-10-22-claude-code-web-just-dropped-but-i-already-built-s triggers: [need for custom commands, frustration with hosted tools, desire for mobile coding, requirement for flexible workflows] trigger_prompt: When you want to create a coding assistant that adapts to your specific needs and allows you to code from any location without being constrained by existing hosted solutions. version: 4 updated_at: 2026-10-31T20:16:16.090Z --> From Cole Medin, 2025-10-22: Hosted remote coding tools (Claude Code for Web, Codex Cloud, Google Jules) lack the flexibility power users need — limited custom commands, painful MCP integration, and fixed UIs. Solo walkthrough by Cole Medin, builder of agentic coding workflows and the `coach.dynamus.ai` RAG agent, demonstrating a self-built remote coding assistant. ## Core Thesis Hosted remote coding tools (Claude Code for Web, Codex Cloud, Google Jules) lack the flexibility power users need — limited custom commands, painful MCP integration, and fixed UIs. Building your own remote agent with the **Codex SDK** wired into **Telegram** gives full control over workflow, surface, and validation, lets you code from anywhere (even your phone), and removes dependence on any single hosted provider's rate limits or UX constraints. ## Key Insights - **SDK-first beats hosted-first**: The Codex SDK (and parallel Claude Agent SDK) lets you embed an agent into any app — Telegram, Slack, WhatsApp, GitHub — instead of accepting a vendor-controlled chat UI. - **Workflow-as-code via `agents.md`**: A markdown file at repo root defines the agent's clone → branch → change → push → staging-merge pipeline, auto-loaded by the SDK on container spin-up. - **Two-tier validation is essential**: Agent self-validates by browsing the staging URL through an MCP browser tool (Stagehand/Browserbase); human verifies via session replays before promotion to prod. - **Staging → production gate is non-negotiable**: Auto-deploy on `main` and `staging` branches via Render, but never let the agent push end-to-end to prod without a human review step. - **Container auth is two env vars**: Codex credentials extracted from local `o.json` plus a GitHub token are sufficient to replicate Codex Cloud inside your own container. - **Persistent threads enable conversational coding**: One thread per user, captured thread ID resumed across messages, with a manual reset command — same pattern as the Claude Agent SDK. - **Mobile-first development is real**: A DigitalOcean droplet running the container means a Telegram message from a golf course can ship a validated change to production. ## Actionable Takeaways 1. Build your own remote agent with the **Codex SDK** (TypeScript) using `codex.startThread(cwd)` + `thread.runStreamed(prompt)` and stream events back to a chat UI. 2. Define the agent's deployment pipeline declaratively in **`agents.md`** at the repo root so any container spin-up is reproducible. 3. Front the agent with **Telegram via Telegraf** so requests can be issued from any device, including mobile. 4. Configure **Render** (free tier) for auto-deploy on commits to `staging` and `main` branches to close the loop end-to-end. 5. Add a **Stagehand MCP server** so the agent can visit deployed URLs and visually self-validate; use Browserbase session replays for human review. 6. Authenticate Codex locally first, then copy credentials from `o.json` into container env vars alongside a GitHub token — that's all the auth needed. 7. Persist thread IDs to a file so users can resume conversations rather than start fresh each message. 8. Add a Telegram command to switch working directories so one bot can serve multiple repos without restarts. ## Notable Quotes > "I truly believe I've built something better." > "The future of AI coding is using these SDKs like the Codex SDK or the Claude agent SDK to define and build our own custom AI coding assistants." > "Even with remote agent coding, we still want to be a part of the process validating things." > "We're not reliant on cloud code for any of these freaking awesome things we can build." > "When we are defining our agents programmatically integrating with any application, there's a lot more flexibility than using one of these other tools as cool as they are." > "Let's say I'm out on the golf course and I have this genius idea for this website, but I don't want to wait until I get home to make that change." --- *You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).* *Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*