Skip to content
PluginStats

@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

View on npm Fresh · Oct 18, 2026

@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.

Weekly downloads
105,610
Official API · Oct 18, 2026
7-day growth
-36.0%
-59.4K weekly downloads
30-day growth
-5.8%
-6.5K weekly downloads
90-day growth
+445%
+86.2K weekly downloads
Rank
#465
Among tracked npm 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

@ai-sdk/harness-claude-code weekly downloads on npm, last 90 days: 105,610 weekly downloads as of Oct 18, 2026, +445% over 90 days.@ai-sdk/harness-claude-codeWeekly downloads on npm · Last 90 days105,610downloads / week+445% over 90 days050K100K150K200KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
@ai-sdk/harness-claude-code weekly downloads on npm, last 90 days: 105,610 weekly downloads as of Oct 18, 2026, +445% over 90 days.

7/30/90-day growth

@ai-sdk/harness-claude-code weekly downloads growth on npm: -36.0% over 7 days, -5.8% over 30 days, +445% over 90 days.@ai-sdk/harness-claude-codeWeekly downloads growth on npm105,610downloads / week now7-day growth-59,355 weekly downloads-36.0%30-day growth-6,544 weekly downloads-5.8%90-day growth+86,234 weekly downloads+445%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
@ai-sdk/harness-claude-code weekly downloads growth on npm: -36.0% over 7 days, -5.8% over 30 days, +445% over 90 days.

Ranking history

@ai-sdk/harness-claude-code npm ranking history: currently #465 (by weekly downloads).@ai-sdk/harness-claude-codenpm ranking · by weekly downloads · Last 90 days#465current rank#462#464#466#468#470#472Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
@ai-sdk/harness-claude-code npm ranking history: currently #465 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,161 shown · page 24, #5 (overall #465)
All npm: every listing in weekly downloads order

Listing placement

Claude Code255 listings · 13 pages · page 1, #6 (overall #6)
Claude Code: every listing in weekly downloads order

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)
Recent weekly downloads observations for @ai-sdk/harness-claude-code
Date (UTC)Weekly downloadsChange vs. previous
105,610+18.6K
87,035-15.3K
102,353+9.7K
92,665-35.3K
127,957-33.3K
161,2460
161,246-3.7K
164,965+612
164,353-856
165,209-37
165,246+720
164,526+604
163,922-29.9K
193,845—

Data 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.