Building a coding agent taught me that calling the model is just the beginning. In long tasks, state management, tool logging, observability, and failure recovery are key. Chat is just the entry point; the system must act like a runtime to keep progressing and validating results. Reliability often matters more than a one-off impressive answer.
After ChatGPT and Codex merged, the protocol changed again: tool definitions moved into additional_tools, and third-party models that don't receive tools may fake calls. The author's local gateway AgentGate has adapted, restoring tools and forwarding upstream; the merged desktop client can still point to localhost to call DeepSeek and other models.
ReviewGate is an open-source MIT-licensed pre-merge filtering tool that screens for high-risk issues from perspectives like security, performance, logic, and AI Smell, categorizing them as block or warn. It prefers to fail rather than give a false green light. It supports --fix, CI integration, and false-positive sharing, and is read-only by default. It's recommended to observe first, then gradually enable.
The author likes Codex but wants to use DeepSeek, and finds the protocols incompatible. So they developed a local gateway called AgentGate. This tool converts Codex's Responses API requests into DeepSeek's Chat Completions format, and further implements intelligent routing: text-only tasks automatically go to DeepSeek, while multimodal tasks with images switch to KimiCoding. This solves the fragmentation of tool and model protocols in AI coding, letting users focus on development.