[codex] prototype codemapd sidecar using sockd#66
Draft
JordanCoin wants to merge 4 commits intomainfrom
Draft
Conversation
Accepts JSON file manifest from stdin instead of reading filesystem. Used by Lens Mac App Store app which can't grant subprocess file access. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This reverts commit 2dccae4.
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
This opens the first real
sockdadoption inside codemap.What is in this prototype:
codemapdsidecar built onsockd::Daemonsockdframe client for hook/context/serve reads.codemap/state.jsoncodemapdduring hook sessions and shut it down on session stop when the sidecar is discoverableThis is intentionally the mirrored-state variant for the first pass: the Go watch daemon still owns
.codemap/state.json, andcodemapdcaches and serves slices of that state over the socket.What Works Now
codemapdis built onsockd, not a reimplementation of the protocolstate.jsonif the daemon is unavailablego test ./...cargo testincodemapdsession-start,pre-edit, andsession-stopCurrent Limits
codemapdcurrently depends on a local siblingsockdcheckoutCODEMAPD_BINor a siblingcodemapdbinarysockdhas a Windows transport storyChecklist For Full Implementation
sockdpath dependency with the publish/install strategy we actually wantcodemapdcodemapdinto release artifacts and installer flowscodemapdvs remain opportunistic