@ai-sdk/harness-claude-code weekly downloads statistics
By ai-sdk (3 listings) · npm · Claude Code
`HarnessV1` adapter backed by [`@anthropic-ai/claude-agent-sdk`](https://www.npmjs.com/package/@anthropic-ai/claude-agent-sdk), which drives the `claude` CLI. The adapter ships a bridge process that runs inside a sandbox and talks to the host over a WebSo
@ai-sdk/harness-claude-code has 105,610 recorded weekly downloads on npm, a decrease of 5.8% over the past 30 days, ranking #465 of 2,322 tracked listings.
About @ai-sdk/harness-claude-code
AI SDK - Claude Code Harness
HarnessV1 adapter backed by @anthropic-ai/claude-agent-sdk, which drives the claude CLI. The adapter ships a bridge process that runs inside a sandbox and talks to the host over a WebSocket on a sandbox-proxied loopback port.
Setup
npm i @ai-sdk/harness-claude-code @ai-sdk/harness @ai-sdk/sandbox-vercel
The bridge installs @anthropic-ai/claude-agent-sdk and @anthropic-ai/claude-code inside the sandbox the first time the session starts.
Usage
import { HarnessAgent } from '@ai-sdk/harness/agent';
import { createClaudeCode } from '@ai-sdk/harness-claude-code';
import { createVercelNetworkSandboxSession } from '@ai-sdk/sandbox-vercel';
import { tool } from 'ai';
import { z } from 'zod/v4';
const agent = new HarnessAgent({
harness: createClaudeCode({
skills: [
{
name: 'careful-refactors',
description: 'Make minimal diffs and keep tests green.',
content: 'Prefer changes that touch the fewest files possible.',
},
],
}),
id: 'demo',
tools: {
deploy: tool({
description: 'Deploy a service.',
inputSchema: z.object({ env: z.enum(['staging', 'production']) }),
execute: async ({ env }) => ({ url: `https://${env}.example.com` }),
}),
},
harnessOptions: {
'claude-code': {
thinking: { type: 'adaptive', display: 'summarized' },
},
},
});
const sandboxSession = await createVercelNetworkSandboxSession({
runtime: 'node24',
ports: [4000],
template: await agent.getSandboxTemplate(),
});
const session = await agent.createSession({ sandboxSession });
try {
const result = await agent.generate({
session,
prompt: 'Read README.md and summarise the goals.',
});
console.log(result.text);
} finally {
await session.destroy();
await sandboxSession.destroy();
}
The adapter needs a sandbox session with an exposed port. The caller owns the sandbox lifecycle: ending the harness session does not stop the sandbox.
Runtime configuration
Use env to add environment variables to the Claude Code process. Configured
values override variables inherited from the sandbox bridge process.
const harness = createClaudeCode({
env: {
DEPLOYMENT_ENV: 'staging',
},
});
Sub-agent messages and task/background notifications are surfaced as raw
stream parts. agentProgressSummaries adds periodic summaries to raw
task_progress messages, while forwardSubagentText includes sub-agent text
and thinking messages in the raw stream.
Description from the npm listing.
- ai
- harness
- claude-code
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (122)Similar npm Claude Code plugins
All 20 @ai-sdk/harness-claude-code alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@ai-sdk/harness-claude-code. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.