Use Harness SDK in code review example - #7
Merged
Merged
Conversation
Greptile SummaryThe PR replaces the code-review example’s local Tilde adapters with a commit-pinned Harness SDK integration.
Confidence Score: 5/5The PR appears safe to merge, with no concrete changed-code failure identified. The adapter replacement consistently wires the explicit Harness client through ChatKit, MCP, and sandbox proxy paths, while the source-package aliases and full-commit dependency pin align across the package manifest, lockfile, Next.js, and TypeScript configuration.
|
| Filename | Overview |
|---|---|
| code-review-bot/app/api/code-review/route.ts | Replaces local ChatKit and MCP adapters with the explicit Harness client, SDK session history, and AI SDK message conversion. |
| code-review-bot/lib/code-review/sandbox.ts | Migrates Modal and Git reverse-proxy setup to Harness SDK APIs while retaining the existing sandbox lifecycle. |
| code-review-bot/next.config.ts | Adds webpack aliases and transpilation configuration for the SDK’s source packages. |
| code-review-bot/package.json | Pins the Harness SDK Git dependency to a full commit and selects webpack for Next.js development and production builds. |
| code-review-bot/tsconfig.json | Adds TypeScript path mappings matching the SDK source-package aliases. |
Sequence Diagram
sequenceDiagram
participant T as Tilde ChatKit
participant R as Code Review Route
participant H as Harness SDK
participant M as MCP Server
participant S as Modal Sandbox
participant A as AI Model
T->>R: Signed code-review request
R->>H: Load session history
H-->>R: ChatKit messages
R->>H: Convert messages for AI SDK
R->>H: Create MCP client
H->>M: Connect through configured server
R->>H: Create reverse-proxy integration
H->>S: Create sandbox through Modal proxy
R->>A: Stream review with MCP and sandbox tools
A-->>R: Review response stream
R-->>T: ChatKit response
Reviews (1): Last reviewed commit: "Use Harness SDK in code review example" | Re-trigger Greptile
danielblignaut
force-pushed
the
codex/use-harness-sdk
branch
from
July 30, 2026 15:37
8da1513 to
35af000
Compare
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
mainlib/tilde.tsand pass it to ChatKit, MCP, and reverse-proxy integrationsValidation
pnpm typecheckpnpm lintpnpm test(25 tests)pnpm audit --prod --audit-level high(no known vulnerabilities)pnpm buildwith placeholder server configurationDistribution gate
Harness SDK package-release PR https://github.com/trytilde/harness-sdk/pull/13 is merged and green. It adds versioned
0.1.0packages, npm publishing, export validation, and a clean NodeNext tarball-consumer test.The one-time npm bootstrap is still required. After
@tilde/api-client,@tilde/harness-sdk, and@tilde/harness-sdk-vercel-ai-nodeare published, this PR will replace the private Git dependency and source aliases with ordinary semver dependencies and hosted CI can pass.