Skip to content

Operations and native support

This chapter covers operational surfaces that sit around the main local agent runtime: debug logs, telemetry/traffic policy, updater/doctor and safe-mode recovery paths, crash/error reporting, the embedded enterprise gateway server, cloud/hosted review signals, and native media helpers. The directory retains its historical 05-hosted-agent-ops route for link stability; the reader-facing title reflects the chapter’s broader actual scope.

Read this chapter when the question is: how does Claude Code report, diagnose, update, or support host/native capabilities around a session?

Source-anchor policy

This page is a chapter guide. Linked implementation pages carry concrete cli.renamed.js or Bun-graph anchors.

Semantic aliasMinified anchorScope
Ops chapterN/A — navigation pageGroups diagnostics, telemetry, update, gateway service, crash/debug logs, hosted review signals, and native media modules.
Ops implementation pagesSee linked source-anchor tablesConcrete anchors live in destination pages.

Ops map

flowchart TD
Runtime[Claude Code runtime] --> Debug[Debug logs]
Runtime --> Telemetry[Telemetry / traffic gates]
Runtime --> Update[Doctor / native updater]
Runtime --> Gateway[Enterprise auth / inference / policy gateway]
Runtime --> Hosted[Hosted review and remote ops]
Runtime --> Media[Image/audio native modules]
Debug --> Support[diagnosis]
Telemetry --> Support
Update --> Support
Media --> Attachments[media/input support]

Primary reading order

OrderPageOps question answered
1Diagnostics and debug logsWhich debug flags/writers, user-triggered /debug evidence flow, hidden /heapdump, startup marks, stall diagnostics, and crash/error surfaces exist?
2Telemetry and tracingWhich traffic gates, telemetry sinks, tengu_* signal families, OTEL config, and trace export paths exist?
3Feature gates referenceWhich GrowthBook, tengu_*, env, policy, settings, and CLI gates switch runtime behavior?
4Updater and doctorHow do doctor, update/upgrade, install, native auto-updater state, and hosted preflights work?
5Safe mode and recoveryHow does configuration isolation suppress user/project customizations while preserving managed policy, auth, built-ins, and permissions?
6Environment variables referenceWhich auth, provider, debug, telemetry, feature, MCP, plugin, agent, remote, UI, and update env vars are visible?
7Enterprise gateway serverHow does claude gateway --config join OIDC, Postgres, inference routing, managed settings, spend controls, OTLP relay, and network hardening?
8Media native modulesWhich non-cli.js graph modules are embedded, and how are image/audio native helpers loaded?
9Audio capture and voice modeHow does /voice use local audio capture, recorder fallbacks, a transcription stream, and transcript injection?
10Audio capture native moduleWhich Rust crates (cpal/alsa), ALSA PCM surface, and N-API exports ship inside audio-capture.node?
11Image processor native moduleWhich Rust crates / N-API exports / defensive limits ship inside image-processor.node, and how is it wired into the sharp()-shaped JS facade?
12Operations and native-support architectureHow do debug, telemetry, gateway, updater, doctor, and native helpers sit around the runtime without owning the local agent loop?

Handoffs

Created and maintained by Yingting Huang.