Open
Conversation
Contributor
🧪 BenchmarkShould we run the Virtual MCP strategy benchmark for this PR? React with 👍 to run the benchmark.
Benchmark will run on the next push after you react. |
Contributor
Release OptionsShould a new version be published when this PR is merged? React with an emoji to vote on the release type:
Current version: Deployment
|
Contributor
There was a problem hiding this comment.
1 issue found across 12 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="apps/mesh/src/api/routes/decopilot/stream-core.ts">
<violation number="1" location="apps/mesh/src/api/routes/decopilot/stream-core.ts:360">
P2: Tool execution metrics are recorded with `durationMs: 0`, which provides no meaningful timing data for monitoring dashboards. The `claude-code-provider.ts` tracks tool timing internally but doesn't expose it. Consider either passing actual durations through `ccResult.parts` or recording metrics at the actual call site in the provider.
(Based on your team's feedback about recording tool execution metrics at the call site with actual timing.) [FEEDBACK_USED]</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
e7ce030 to
2ea1fb1
Compare
Integrate the Claude Agent SDK as a first-class chat model provider in Decopilot. When "claude-code" is selected, the system creates an ephemeral API key to auto-wire MCP tools, streams responses through the Claude SDK, and revokes the key after completion. Changes: - New claude-code-provider.ts: SDK adapter converting to AI SDK stream format (text, reasoning, tool calls, vision, subtasks) - stream-core.ts: Claude Code branch with ephemeral API key lifecycle - schemas.ts: Add "claude-code" provider and planMode option - constants.ts: Enhanced system prompt with shared tool reference - Chat store: planMode state, resumeStream seeding, transport URL fix - Model selector: Claude Code model tier mappings (opus/sonnet/haiku) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2ea1fb1 to
043219c
Compare
6 tasks
3 tasks
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
shared-prompts.ts)Files Changed
apps/mesh/src/api/routes/decopilot/claude-code-provider.ts— NEW SDK adapter (1,274 lines)apps/mesh/src/api/routes/decopilot/stream-core.ts— Claude Code branch with ephemeral API key lifecycleapps/mesh/src/api/routes/decopilot/schemas.ts— Addclaude-codeprovider +planModeapps/mesh/src/api/routes/decopilot/routes.ts— Skip model permissions for Claude Codeapps/mesh/src/api/routes/decopilot/constants.ts— Enhanced system promptapps/mesh/src/api/routes/decopilot/types.ts— Connection auth + prompt suggestion data partsapps/mesh/src/tools/shared-prompts.ts— NEW shared tool reference promptapps/mesh/src/web/components/chat/store/— planMode state + transport fixesapps/mesh/src/web/components/chat/select-model.tsx— Claude Code tier mappingsapps/mesh/src/web/components/chat/types.ts— planMode metadata fieldTest plan
bun installbun run devbun run lintandbun run checkpass (no new errors)🤖 Generated with Claude Code
Summary by cubic
Adds Claude Code as a local chat provider using
@anthropic-ai/claude-agent-sdk. Streams text, reasoning, tools, and vision into chat with per-session MCP auto-wiring and an optional plan mode.New Features
claude-code:opus,claude-code:sonnet,claude-code:haiku; mapped to tiers; uses local auth and skips model permission checks.plan) and execution (bypassPermissions).Bug Fixes
Written for commit 043219c. Summary will update on new commits.