New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

claudecode-harness

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

claudecode-harness

Production-grade Claude Code configuration — hooks, rules, agents, and MCP templates

latest
Source
npmnpm
Version
1.2.0
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

claudecode-harness

Production-grade Claude Code configuration — hooks, rules, agents, and MCP templates. One command to go from vanilla Claude Code to a fully loaded development environment.

npm version license node

Why

Claude Code out of the box is powerful, but raw. No quality gates on commits, no auto-formatting on edits, no security monitoring, no session memory between conversations, no specialized agents for code review or TDD. You set all of that up yourself — or you install this.

claudecode-harness packages a battle-tested, production configuration into a single install. It was extracted from a setup running 38 hooks, 36 agents, 77 rules across 13 languages, and 27 MCP server templates — used daily for real development work.

Before & After

Vanilla Claude CodeWith claudecode-harness
Commit qualityWhatever you pushPre-commit hooks block secrets, check formatting, enforce conventional commits
Code reviewManualAutomatic — dedicated agents for security, code quality, and language-specific review
TestingHope for the bestTDD agent enforces write-tests-first, 80% coverage minimum
Session memoryStarts fresh every timeNeuromcp persistence — picks up where you left off
MCP serversConfigure each one manually27 pre-configured templates, credentials via env vars
SecurityTrust the vibesPre-tool security monitoring, secret detection, config protection
Multi-languageOne language at a timeRules for TypeScript, Python, Go, Rust, Java, Kotlin, Swift, PHP, Perl, C++, C#

Quick Start

$ npx claudecode-harness

claudecode-harness v1.0.1

Preflight checks:
  ✓ Claude CLI found: 2.1.92
  ✓ Node.js 22.22.0 (>= 18.0.0 required)
  ✓ Docker is available
  ✓ Python found: Python 3.12.7

Which layers do you want to install?
  [x] core       Settings template, CLAUDE.md
  [x] hooks      34 hook scripts + shared libraries
  [x] rules      Coding standards (common + language-specific)
  [x] agents     36 specialized agent definitions
  [ ] mcp        27 MCP server templates + .env.example

Installing...
  ✓ hooks (34 files)
  ✓ rules (common, typescript, python)
  ✓ agents (36 files)
  ✓ hooks merged into settings.json
  ✓ CLAUDE.md (standard)
  ✓ 10 essential plugins installed

✓ Installation complete!

Next steps:
  1. Restart Claude Code
  2. Run: claudecode-harness doctor

What's Included

Hooks (38 scripts)

Hooks run automatically before and after tool use. They're the backbone of the quality system.

HookWhat it does
Pre-commit qualityBlocks commits with secrets, debug statements, or missing tests
Config protectionPrevents accidental modification of linter/formatter configs
Security monitoringScans bash commands and file writes for dangerous patterns
Session persistenceSaves work context to neuromcp database on session end
Context injectionRestores previous session context on startup
Cost trackingTracks API usage per session
Desktop notificationsmacOS notifications when long tasks complete
Quality gatesPost-edit lint, format, and type checking
MCP health checksProbes MCP servers and caches status
Telegram cleanupKills zombie Telegram plugin processes to prevent duplicate replies
Session checkpointsSaves periodic work-state snapshots for crash recovery
Neuromcp auto-captureAutomatically captures context to neuromcp memory during work
Task completion soundPlays audio notification when long tasks finish
...and 25 moreTmux reminders, git push checks, governance capture, error learning

Rules (75 files, 13 languages)

Markdown-based coding standards that Claude reads and follows. Common rules apply everywhere, language-specific rules add framework patterns.

Common rules: coding style, testing (80% minimum coverage), security, git workflow, code review, design patterns, agent orchestration, hooks usage, performance optimization, development workflow.

Language rules available for: TypeScript, Python, Go, Rust, Java, Kotlin, Swift, PHP, Perl, C++, C#. Each includes: coding style, testing patterns, security practices, hook configuration, and design patterns.

Chinese translations included for all common rules.

Agents (36 specialists)

Pre-configured agent definitions that Claude dispatches for specific tasks.

CategoryAgents
Code reviewcode-reviewer, typescript-reviewer, python-reviewer, go-reviewer, rust-reviewer, kotlin-reviewer, java-reviewer, cpp-reviewer, flutter-reviewer
Build fixingbuild-error-resolver, go-build-resolver, java-build-resolver, kotlin-build-resolver, rust-build-resolver, cpp-build-resolver, pytorch-build-resolver
Planningplanner, architect, tdd-guide
Securitysecurity-reviewer, healthcare-reviewer
Operationse2e-runner, doc-updater, refactor-cleaner, performance-optimizer
Multi-agentgan-planner, gan-generator, gan-evaluator, loop-operator
Open sourceopensource-forker, opensource-packager, opensource-sanitizer

MCP Server Templates (27 servers)

Pre-configured templates for popular MCP servers. Credentials use environment variables — never hardcoded.

Included: GitHub, Exa, Playwright, Firecrawl, Supabase, Vercel, Railway, Cloudflare (4 servers), ClickHouse, Context7, fal.ai, Ollama, Browserbase, and more.

Each comes with a .env.example documenting the required credentials and where to get them.

Installation Options

npx claudecode-harness

Walks you through layer selection, language detection, and CLAUDE.md profile choice.

Selective layers

npx claudecode-harness --layers hooks,rules

Only install what you need. Available layers: core, hooks, rules, agents, mcp.

Full autonomous mode

npx claudecode-harness --profile jarvis

Installs everything with the "Jarvis" CLAUDE.md — full autonomous operation, broad permissions, multi-agent orchestration.

Standalone (without npx)

curl -fsSL https://raw.githubusercontent.com/AdelElo13/claude-harness/main/setup.sh | bash

CLI Commands

CommandDescription
claudecode-harnessInteractive install (default)
claudecode-harness doctorHealth check — verifies scripts, plugins, env vars
claudecode-harness updateUpdate installed layers to latest version
claudecode-harness uninstallRemove installed layers (selective with --layers)
claudecode-harness listShow what's installed, versions, file counts
claudecode-harness backupSnapshot current ~/.claude configuration

Flags

FlagDescription
--layers=<list>Comma-separated: core,hooks,rules,agents,mcp
--profile=<name>CLAUDE.md profile: minimal, standard, jarvis
--claude-dir=<path>Target directory (default: ~/.claude)
--yesSkip confirmation prompts

CLAUDE.md Profiles

ProfileBest forWhat it sets up
minimalTrying it outBasic tool list, simple routing table
standardDaily developmentTool routing, hook overview, agent roster, MCP docs
jarvisPower usersFull autonomous persona, broad permissions, session continuity, multi-agent orchestration, Telegram remote control

Plugin Tiers

Essential (auto-installed)

These 10 plugins are expected by the hooks, agents, and rules. Installed automatically.

superpowers context7 commit-commands code-review code-simplifier feature-dev pr-review-toolkit claude-md-management hookify plugin-dev

CategoryPluginsInstall
Frontendfrontend-design, playgroundclaude plugin install frontend-design@claude-plugins-official
Securitysecurity-guidanceclaude plugin install security-guidance@claude-plugins-official
Languagestypescript-lsp, pyright-lsp, swift-lspclaude plugin install typescript-lsp@claude-plugins-official
Communicationtelegramclaude plugin install telegram@claude-plugins-official
Developmentagent-sdk-dev, skill-creator, ralph-loopclaude plugin install agent-sdk-dev@claude-plugins-official
Output stylesexplanatory-output-style, learning-output-styleclaude plugin install explanatory-output-style@claude-plugins-official

How It Works

Install: merge, never overwrite

Your existing settings.json is backed up before any changes. Hooks are merged into your config — existing hooks are preserved, new ones are appended. Permissions are never touched.

Tracking: .harness-meta.json

The installer writes ~/.claude/.harness-meta.json tracking exactly what was installed — every file, every layer, every language. This enables clean updates, selective uninstall, and doctor validation.

Credentials: environment variables only

MCP server templates use empty credential fields that inherit from your shell environment. Add your API keys to ~/.zshenv (macOS) or ~/.bashrc (Linux). The .env.example file documents every variable.

Requirements

RequirementRequiredNotes
Node.js >= 18YesHooks are Node scripts
Claude CodeYesThe thing we're configuring
DockerNoUsed by GitHub MCP server
Python 3NoUsed by security monitor hook

Platform Support

PlatformStatus
macOSFull support
LinuxFull support
WSL2Supported
Windows (native)Not supported

FAQ

Will it overwrite my existing config? No. Your settings.json is backed up first. Hooks are merged (append-only), permissions are never touched. If a CLAUDE.md already exists, the template is saved as CLAUDE.md.harness so you can compare.

Can I uninstall cleanly? Yes. claudecode-harness uninstall removes all installed files and hooks. Your backup is preserved. Use --layers hooks for selective removal.

Where are credentials stored? Never in config files. All MCP servers read from environment variables. See .env.example after installing the MCP layer.

Can I install only specific layers? Yes. --layers=hooks,rules installs just those. The core layer is always included as a base.

How do I add a language later? Re-run npx claudecode-harness --layers=rules and select additional languages.

Does it work with existing Claude Code plugins? Yes. It installs alongside your existing setup. No conflicts.

How is this different from karpathy-skills?

karpathy-skills gives you 4 behavioral rules in a CLAUDE.md — think before coding, simplicity first, surgical changes, goal-driven execution.

claudecode-harness gives you 38 automated hooks that enforce those rules, plus 36 specialized agents and 77 language-specific standards.

karpathy-skillsclaudecode-harness
ApproachGuidelines (read and follow)Automation (enforced on every action)
"Think before coding"A rule you hope Claude followsPlanner agent + Plan Mode that structures every task
"Simplicity first"AdvicePost-edit lint hooks + code-reviewer agent that flags overcomplication
"Surgical changes"AdviceConfig protection hooks + diff-scoped review agents
"Goal-driven execution"A suggested patternTDD agent enforces write-tests-first + 80% coverage minimum
Scope1 CLAUDE.md file38 hooks, 36 agents, 77 rules, 27 MCP templates

Rules are nice. Enforcement is better.

Contributing

See CONTRIBUTING.md for how to add hooks, rules, agents, or MCP templates.

License

MIT — see LICENSE.

Keywords

claude

FAQs

Package last updated on 23 Apr 2026

Related posts