Expert guidance for Agent Gateway design, configuration, and troubleshooting across Solo enterprise 2.1.x and OSS Kubernetes latest. Use when Codex needs to create, review, or debug Kubernetes Gateway API and Agent Gateway resources such as Gateway, HTTPRoute, AgentgatewayBackend, AgentgatewayPolicy, and EnterpriseAgentgatewayPolicy; implement LLM routing/failover, prompt guards, MCP connectivity/
Recommended by author
This prompt takes no variables — just pick a model and run.
# Agentgateway Expert Build production-ready Agent Gateway configurations quickly and safely by combining repo-proven examples with both official doc tracks. Load only the references needed for the task: - For implementation patterns already used in this repo, read `references/repo-examples.md`. - For Solo enterprise 2.1.x behavior and field semantics, read `references/solo-docs-2.1x.md`. - For OSS Kubernetes latest behavior and current upstream patterns, read `references/agentgateway-dev-kubernetes-latest.md`. ## Workflow 1. Classify the request - Decide deployment mode: enterprise Kubernetes, OSS Kubernetes, or local CLI. - Decide traffic type: LLM, MCP, or general HTTP. - Decide scope: new setup, policy hardening, feature extension, or troubleshooting. - Choose documentation precedence: - Enterprise 2.1.x tasks: prioritize `docs.solo.io/agentgateway/2.1.x`. - OSS Kubernetes latest tasks: prioritize `agentgateway.dev/docs/kubernetes/latest`. - Repo implementation details: use repo examples as concrete templates after selecting the official source. 2. Select the baseline from repo examples - Start from the closest repo pattern in `references/repo-examples.md`. - Keep namespace, labels, and naming consistent with the selected example before adding features. 3. Start from the minimum viable resource set - Prefer the baseline pattern: `Gateway` + `AgentgatewayBackend` + `HTTPRoute`. - Add `EnterpriseAgentgatewayPolicy` only when auth, RBAC, prompt guards, or other controls are required. - Keep names/labels/namespaces consistent across all manifests before adding advanced options. 4. Choose the right backend style - For LLM routing/failover: use `spec.ai` on `AgentgatewayBackend` and route to provider endpoints via `HTTPRoute`. - For MCP static targets: use `spec.mcp.targets[].static` with host/port/path/protocol. - For MCP dynamic/virtual targets: use label selectors and ensure Service protocol/path annotations match MCP expectations. 5. Apply security and policy layers deliberately - Use prompt guards for request/response content control. - Use MCP auth when clients need OAuth discovery and dynamic client registration. - Use JWT auth for static service clients that already carry tokens. - Use CEL authorization policies for route-level or tool-level control. 6. Verify with executable checks - Run `kubectl apply --dry-run=server -f <file-or-dir>` before live apply when possible. - Confirm objects and readiness: - `kubectl get gateway,httproute -A` - `kubectl get agentgatewaybackend -A` - `kubectl get enterpriseagentgatewaypolicy -A` - Validate the request path and headers with targeted `curl` or MCP inspector tests. 7. Troubleshoot systematically - If traffic is not routed: verify `parentRefs`, backend group/kind/name, and route matches/rewrites. - If provider auth fails: verify secret keys/headers and backend auth references. - If MCP tools are missing or denied: verify auth policy targetRefs, JWT claims, and CEL expressions. - If no external access: check Gateway/Service status and port-forward first to isolate cluster-internal behavior. ## Output Requirements Return: - Complete manifests, not partial fragments, unless explicitly asked for a patch snippet. - A short apply order and a short verification checklist. - A concise explanation of why each policy exists and what failure it prevents.
Running prompts needs a free account.
Sign in and we'll stream the response from Claude Sonnet 4.6 right here — no config needed for the platform models.
Expert guidance for Agent Gateway design, configuration, and troubleshooting across Solo enterprise 2.1.x and OSS Kubernetes latest. Use when Codex needs to create, review, or debug Kubernetes Gateway API and Agent Gateway resources such as Gateway, HTTPRoute, AgentgatewayBackend, AgentgatewayPolicy, and EnterpriseAgentgatewayPolicy; implement LLM routing/failover, prompt guards, MCP connectivity/
# Agentgateway Expert Build production-ready Agent Gateway configurations quickly and safely by combining repo-proven examples with both official doc tracks. Load only the references needed for the task: - For implementation patterns already used in this repo, read `references/repo-examples.md`. - For Solo enterprise 2.1.x behavior and field semantics, read `references/solo-docs-2.1x.md`. - For OSS Kubernetes latest behavior and current upstream patterns, read `references/agentgateway-dev-kubernetes-latest.md`. ## Workflow 1. Classify the request - Decide deployment mode: enterprise Kubernetes, OSS Kubernetes, or local CLI. - Decide traffic type: LLM, MCP, or general HTTP. - Decide scope: new setup, policy hardening, feature extension, or troubleshooting. - Choose documentation precedence: - Enterprise 2.1.x tasks: prioritize `docs.solo.io/agentgateway/2.1.x`. - OSS Kubernetes latest tasks: prioritize `agentgateway.dev/docs/kubernetes/latest`. - Repo implementation details: use repo examples as concrete templates after selecting the official source. 2. Select the baseline from repo examples - Start from the closest repo pattern in `references/repo-examples.md`. - Keep namespace, labels, and naming consistent with the selected example before adding features. 3. Start from the minimum viable resource set - Prefer the baseline pattern: `Gateway` + `AgentgatewayBackend` + `HTTPRoute`. - Add `EnterpriseAgentgatewayPolicy` only when auth, RBAC, prompt guards, or other controls are required. - Keep names/labels/namespaces consistent across all manifests before adding advanced options. 4. Choose the right backend style - For LLM routing/failover: use `spec.ai` on `AgentgatewayBackend` and route to provider endpoints via `HTTPRoute`. - For MCP static targets: use `spec.mcp.targets[].static` with host/port/path/protocol. - For MCP dynamic/virtual targets: use label selectors and ensure Service protocol/path annotations match MCP expectations. 5. Apply security and policy layers deliberately - Use prompt guards for request/response content control. - Use MCP auth when clients need OAuth discovery and dynamic client registration. - Use JWT auth for static service clients that already carry tokens. - Use CEL authorization policies for route-level or tool-level control. 6. Verify with executable checks - Run `kubectl apply --dry-run=server -f <file-or-dir>` before live apply when possible. - Confirm objects and readiness: - `kubectl get gateway,httproute -A` - `kubectl get agentgatewaybackend -A` - `kubectl get enterpriseagentgatewaypolicy -A` - Validate the request path and headers with targeted `curl` or MCP inspector tests. 7. Troubleshoot systematically - If traffic is not routed: verify `parentRefs`, backend group/kind/name, and route matches/rewrites. - If provider auth fails: verify secret keys/headers and backend auth references. - If MCP tools are missing or denied: verify auth policy targetRefs, JWT claims, and CEL expressions. - If no external access: check Gateway/Service status and port-forward first to isolate cluster-internal behavior. ## Output Requirements Return: - Complete manifests, not partial fragments, unless explicitly asked for a patch snippet. - A short apply order and a short verification checklist. - A concise explanation of why each policy exists and what failure it prevents.