**How does Kong use AI for automated code reviews?**
Kong uses a custom-built platform called KSAI (Kong Skills for Agentic Intelligence). Rather than acting as an inline autocomplete tool, KSAI deploys AI agents directly into GitHub Actions CI/CD pipelines. These agents asynchronously review pull requests, enforce coding standards, and identify blocking defects without requiring developers to keep their local environments running.
**Why add a triage phase before running LLM code reviews?**
Adding a static triage step prevents burning expensive LLM tokens on simple tasks. The triage phase evaluates the complexity of a review request and dynamically selects the appropriate model and effort level (e.g., routing a small PR to a cheaper, faster model like Sonnet or GLM 5.3 Flash instead of Opus). At Kong, this triage step reduced median review costs by roughly 37%.
**What is the cost difference between commercial models (like Claude) and open-source models (like GLM)?**
While high-tier commercial models like Claude Opus provide excellent quality, they can be cost-prohibitive at scale. In our benchmarks, Opus was 7x more expensive per review than the open-source GLM 5.3 model, and 80x more expensive than GLM 5.3 Flash. Switching to these open-source models allowed us to drastically cut costs while maintaining comparable precision and blocking recall.
**What security controls sandbox AI agents in a pipeline?**
To prevent AI agents from executing unauthorized commands or leaking data, KSAI employs strict sandboxing in GitHub Actions. This includes mounting the root filesystem as read-only, isolating namespaces, denying shell commands by default via an OpenCode permission layer, and brokering model-access tokens outside the sandbox so they are only exposed through a read-only file.
**How do you get observability on per-repo LLM usage costs?**
We route all AI agent model traffic through the Kong AI Gateway. This allows us to abstract the underlying LLM providers and gain granular observability, cost tracking, and token usage attribution on a per-repository basis, enforcing budgets automatically.
**Should we switch from Claude Opus to GLM 5.3 for code reviews?**
If cost optimization is a priority, switching to GLM 5.3 is highly recommended based on our F1 vs. cost model scores. While Opus slightly edges out open models in raw blocking recall, GLM 5.3 and 5.3 Flash offer a much better balance of cost-efficiency and quality for the vast majority of standard CI/CD code reviews.