Auth:
- Coast Assist / LOGIN_WITH_GOOGLE uses AuthClient.request() against a
Code Assist backend, NOT the standard Gemini API
- GcliAgentModel must extend BaseLlm directly with dual transport
(API-key via httpOptions.headers, Coast Assist via AuthClient.request())
- OAuth flow, token refresh, credential caching all work as-is
Telemetry:
- Stream-interceptor approach replaced with BasePlugin recommendation
- ClearcutTelemetryPlugin for token counts (afterModelCallback),
per-tool timing (beforeToolCallback/afterToolCallback with functionCallId),
agent lifecycle, and model errors
- Corrects earlier claim: token usage IS available on ADK events
(llm_agent.ts spreads LlmResponse into events)
- HTTP-level metrics captured in GcliAgentModel wrapper
- ~70% of Clearcut metrics stay in existing call sites unchanged
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Codex-generated unified review merging claude and codex design review
findings for the ADK migration design doc. Committing as-is before
applying corrections.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>