Skip to content
PluginStats

@metaharness/host-claude-code weekly downloads statistics

By metaharness · npm · Claude Code

Claude Code host adapter for MetaHarness: turns a harness spec into .claude/settings.json, hooks and MCP server wiring.

View on npm Outdated · Nov 25, 2026

@metaharness/host-claude-code has 1,130 recorded weekly downloads on npm, a decrease of 63.1% over the past 30 days, ranking #2046 of 3,247 tracked listings.

Weekly downloads
1,130
Official API · Dec 5, 2026
7-day growth
-36.8%
-659 weekly downloads
30-day growth
-63.1%
-1.9K weekly downloads
90-day growth
-57.4%
-1.5K weekly downloads
Rank
#2046
▼ 229 in 7 days

About @metaharness/host-claude-code

@metaharness/host-claude-code

<!-- ruv-seo:start (ADR-356) -->

@metaharness/host-claude-code flow: HarnessSpec, adapter generateConfig, .claude settings and hooks, MCP server wiring, Claude Code loads the harness

@metaharness/host-claude-code turns a MetaHarness harness spec into the files Claude Code reads: .claude/settings.json with hooks, and an install-mcp.sh that registers the harness's MCP servers.

Supported environments: Node.js 20+ on Linux, macOS and Windows. ESM only (import, not require). Depends on @metaharness/kernel for the HostAdapter contract.

Quickstart

mkdir demo && cd demo && npm init -y >/dev/null
npm install @metaharness/host-claude-code
cat > quickstart.mjs <<'JS'
import adapter from '@metaharness/host-claude-code';

const files = adapter.generateConfig({
  name: 'my-bot',
  mcpServers: [{ name: 'my-bot', command: ['npx', '-y', 'my-bot', 'mcp'] }],
  hooks: [{ event: 'PreToolUse', matcher: 'Bash(rm *)', handler: 'block-rm' }],
});
console.log(Object.keys(files));
const settings = JSON.parse(files['.claude/settings.json']);
console.log('hook events:', Object.keys(settings.hooks ?? {}));
JS
node quickstart.mjs

Expected output:

[ '.claude/settings.json', 'install-mcp.sh' ]
hook events: [ 'PreToolUse' ]

Where it fits: npx metaharness new <name> --host claude-code (the default host) adds this package as a dependency of the generated harness, and the generated __tests__/smoke.test.ts imports it.

Next: @metaharness/claude-code — a one-command Claude Code workspace and plugin scaffold built on this adapter.

<!-- ruv-seo:end -->

Reference

Claude Code host adapter for the agent-harness-generator project.

Generates the host-specific config a Claude Code-targeted harness needs:

  • .claude/settings.json with hooks (event → matcher → handler[] three-level shape, 5 handler types)
  • claude mcp add command lines for the harness's MCP servers
  • Permission allow/deny lists

Usage

import adapter from '@metaharness/host-claude-code';

const config = adapter.generateConfig({
  name: 'my-bot',
  mcpServers: [{ name: 'my-bot', command: ['npx', '-y', 'my-bot', 'mcp'] }],
  hooks: [{ event: 'PreToolUse', matcher: 'Bash(rm *)', handler: 'block-rm' }],
});
// config['.claude/settings.json'] = '<JSON>'
// config['install-mcp.sh'] = '<shell commands>'

Notes

  • Claude Code's settings have three scopes: ~/.claude/settings.json (user), .claude/settings.json (project, committed), .claude/settings.local.json (project, gitignored). This adapter generates the project-committed form.
  • Hooks emit JSON to stdout to influence the model (hookSpecificOutput.permissionDecision, additionalContext, updatedInput).

License

MIT

Description from the npm listing.

  • metaharness
  • agent-harness
  • claude-code
  • anthropic
  • mcp
  • model-context-protocol
  • host-adapter
  • hooks
  • claude-code-plugin

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

@metaharness/host-claude-code weekly downloads on npm, last 90 days: 1,130 weekly downloads as of Dec 5, 2026, -57.4% over 90 days.@metaharness/host-claude-codeWeekly downloads on npm · Last 90 days1,130downloads / week-57.4% over 90 days01K2K3K4K5K6KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@metaharness/host-claude-code weekly downloads on npm, last 90 days: 1,130 weekly downloads as of Dec 5, 2026, -57.4% over 90 days.

7/30/90-day growth

@metaharness/host-claude-code weekly downloads growth on npm: -36.8% over 7 days, -63.1% over 30 days, -57.4% over 90 days.@metaharness/host-claude-codeWeekly downloads growth on npm1,130downloads / week now7-day growth-659 weekly downloads-36.8%30-day growth-1,929 weekly downloads-63.1%90-day growth-1,521 weekly downloads-57.4%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@metaharness/host-claude-code weekly downloads growth on npm: -36.8% over 7 days, -63.1% over 30 days, -57.4% over 90 days.

Ranking history

@metaharness/host-claude-code npm ranking history: currently #2046 (by weekly downloads).@metaharness/host-claude-codenpm ranking · by weekly downloads · Last 90 days#2046current rank#1200#1400#1600#1800#2000#2200Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankNov 11, 2026 – Dec 6, 2026 · 16 observations · Updated Dec 5, 2026pluginstats.com
@metaharness/host-claude-code npm ranking history: currently #2046 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 103, #6 (overall #2,046)
All npm: every listing in weekly downloads order

Listing placement

Claude Code614 listings · 31 pages · page 21, #19 (overall #419)
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 (142)
Recent weekly downloads observations for @metaharness/host-claude-code
Date (UTC)Weekly downloadsChange vs. previous
1,130-40
1,170+34
1,136+356
780+44
736-22
758-505
1,263-526
1,789-1.1K
2,923-2.1K
5,048-557
5,605-304
5,909-79
5,988+403
5,585—

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/@metaharness/host-claude-code. First seen Nov 11, 2026; last successful collection Nov 25, 2026. See the methodology.