@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.
@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.
About @metaharness/host-claude-code
@metaharness/host-claude-code
<!-- ruv-seo:start (ADR-356) -->@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.
Reference
Claude Code host adapter for the agent-harness-generator project.
Generates the host-specific config a Claude Code-targeted harness needs:
.claude/settings.jsonwith hooks (event → matcher → handler[] three-level shape, 5 handler types)claude mcp addcommand 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
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 (142)Similar npm Claude Code plugins
All 20 @metaharness/host-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/@metaharness/host-claude-code. First seen Nov 11, 2026; last successful collection Nov 25, 2026. See the methodology.