feat(proxy): add proxy daemon with Claude Desktop telemetry integration#265
Merged
Conversation
- Add proxy daemon process with PID-based lifecycle management and graceful shutdown - Add CLI commands for daemon start/stop/status and Desktop inspection - Add Claude Desktop telemetry adapter with session discovery, parsing, and metrics - Add DesktopTelemetryRuntime with checkpoint-based session tracking - Add GatewayKeyPlugin for SSO proxy authentication - Add spawnDetached() utility to processes.ts for daemon spawning - Update session store and processors with external session ID support - Fix turn continuation to emit only Assistant entry (not User again) - Add tests for daemon-manager, desktop connector, and gateway-key plugin Generated with AI Co-Authored-By: codemie-ai <codemie.ai@gmail.com>
…nError On Linux the function correctly throws ConfigurationError (unsupported platform). The test was written for macOS/Windows only and needs to handle the Linux CI environment. Generated with AI Co-Authored-By: codemie-ai <codemie.ai@gmail.com>
TarasSpashchenko
approved these changes
Apr 29, 2026
8nevil8
approved these changes
Apr 29, 2026
mykolanehrych
pushed a commit
to mykolanehrych/codemie-code
that referenced
this pull request
May 5, 2026
…on (codemie-ai#265) Co-authored-by: codemie-ai <codemie.ai@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a background proxy daemon that integrates with Claude Desktop to collect telemetry (session metrics and conversation history). Includes CLI commands to manage the daemon lifecycle and a gateway key plugin for SSO proxy authentication.
Changes
src/bin/proxy-daemon.ts,bin/proxy-daemon.js) — standalone background process with PID-based lifecycle, graceful SIGTERM shutdown, and atomic state file writessrc/cli/commands/proxy/) —start,stop,status,inspect-desktopsubcommands;DaemonManagerwith process polling for safe stopsrc/telemetry/clients/claude-desktop/) — adapter, session discovery/parsing, metrics collection, and platform-aware path resolution (macOS/Windows; explicit error on unsupported platforms)src/telemetry/runtime/) — checkpoint-based session tracking with boundedsinceMson finalization scanssrc/providers/plugins/sso/proxy/plugins/gateway-key.plugin.ts) — static bearer key validation with Authorization header stripping before upstream forwardingspawnDetached()added tosrc/utils/processes.ts— reusable daemon spawn utilityImpact
New
codemie proxyCLI commands are available. Existing proxy and session flows are unchanged.Checklist