feat(dcp): initial DCP bridge for dynamic_context_pruning integration#320
Open
quangdang46 wants to merge 2 commits into
Open
feat(dcp): initial DCP bridge for dynamic_context_pruning integration#320quangdang46 wants to merge 2 commits into
quangdang46 wants to merge 2 commits into
Conversation
- Created src/dcp_bridge.rs with jcode<->DCP message converters
- jcode_to_dcp(): converts jcode messages to DCP canonical IR
- dcp_to_jcode(): converts DCP messages back to jcode format
- Handles ContentBlock->Part mapping (Text, Reasoning, ToolCall,
ToolResult, Image, OpenAICompaction)
- Added dynamic_context_pruning as optional dependency in Cargo.toml
- Added 'dcp' feature flag to enable DCP integration
- Workspace initialized with beads for tracking progress
Build in progress - verifying cargo check --features dcp passes.
Beads tracking: jcode-dcp-integration-w1a
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
Initial DCP (Dynamic Context Pruning) bridge for jcode.
This PR adds:
src/dcp_bridge.rswith jcode<->DCP message convertersdynamic_context_pruningas optional dependencydcpfeature flag to enable DCP integrationChanges
dynamic_context_pruningdependency anddcpfeature flagTest Plan
cargo check --features dcppassesiyvwires DCP intomessages_for_providerNotes
The actual wiring into
Agent::messages_for_provideris deferred to the next bead (iyv). This PR only establishes the bridge infrastructure.🤖 Generated with Claude Code