npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

cc-harness

v0.1.1

Published

Harness Engineering audit tool + toolkit for AI coding agents, distilled from Claude Code source architecture

Downloads

127

Readme

cc-harness

Harness Engineering audit tool + toolkit for AI coding agents, distilled from Claude Code source architecture.

Scan any project. Score it against 10 engineering principles. Get actionable fix suggestions.

What is this

cc-harness evaluates whether your AI coding agent workflow (Claude Code, Codex, Cursor, or any custom system) follows proven Harness Engineering principles — extracted from analyzing Claude Code's 4756-file TypeScript source and Codex's Rust codebase.

It combines two layers:

  • Deterministic scan (50 points) — script checks file existence, structure, configuration
  • LLM semantic analysis (50 points) — Claude evaluates content quality and design intent

Total score: /100, with per-dimension breakdown and remediation links.

Quick Start

As a Claude Code plugin (recommended)

Enable in your Claude Code settings:

// .claude/settings.json
{
  "enabledPlugins": {
    "cc-harness@auto-research": true
  }
}

Then run /harness-audit in any project.

Manual skill install

# Clone and install the skill
git clone https://github.com/auto-research/cc-harness.git
cp -r cc-harness/skills/harness-audit ~/.claude/skills/harness-audit

# Run in your project — type: /harness-audit

Global npm install

npm i -g cc-harness

# Scan any project (script layer only, no LLM)
cc-harness scan --root /path/to/your/project

Script-only mode (no install)

git clone https://github.com/auto-research/cc-harness.git
cd cc-harness && npm install

# Scan any project
npm run scan -- --root /path/to/your/project

Sample Output

  ╦ ╦╔═╗╦═╗╔╗╔╔═╗╔═╗╔═╗  ╔═╗╦ ╦╔╦╗╦╔╦╗
  ╠═╣╠═╣╠╦╝║║║║╣ ╚═╗╚═╗  ╠═╣║ ║ ║║║ ║
  ╩ ╩╩ ╩╩╚═╝╚╝╚═╝╚═╝╚═╝  ╩ ╩╚═╝═╩╝╩ ╩
  v0.1.0 · Harness Engineering Compliance Audit

  Project    ai-assistant-hub
  Score      41 / 50 (script layer)

  ──────────────────────────────────────────

  P1  Constraint Codification  █████████░  5/5  PASS
  P2  Control Plane Layering   ████████░░  4/5  PASS
  P3  Workflow Continuity      █████████░  5/5  PASS
  P4  Tool Governance          █████████░  5/5  PASS
  P5  Context Budget           ████████░░  4/5  PASS
  P6  Error Path               ████░░░░░░  2/5  WARN
  P7  Interrupt Recovery       ██████░░░░  3/5  WARN
  P8  Role Separation          █████████░  5/5  PASS
  P9  Independent Verification ██████░░░░  3/5  WARN
  P10 Team Institution         █████████░  5/5  PASS

With Claude Code skill (/harness-audit), you also get the LLM layer for a full /100 score.

The 10 Principles

These principles were extracted from Claude Code's source architecture and validated against Codex's design:

| # | Principle | What it means | |---|-----------|---------------| | 1 | Model is unstable | Don't trust it as a colleague — constrain it as an executor | | 2 | Prompt is control plane | Not personality text — it's a priority chain of behavior blocks | | 3 | Query loop is heartbeat | The core isn't single answers — it's continuous execution | | 4 | Tools are managed interfaces | More power needs finer constraints. Bash is most dangerous | | 5 | Context is working memory | Not a trash can — it's a budgeted resource | | 6 | Error path = main path | prompt too long is inevitable, not exceptional | | 7 | Recovery means continuation | Not rollback — pick up where you left off | | 8 | Multi-agent needs role separation | Not cloning — it's uncertainty partitioning | | 9 | Verification must be independent | Don't let the writer judge the writing | | 10 | Institution > individual skill | Skills are reusable policy slices, hooks attach to lifecycle |

Full details: toolkit/principles.md

Toolkit

The toolkit/ directory contains ready-to-use templates:

Team (3-10 person teams)

| Template | What you get | |----------|-------------| | claude-md-template.md | Three-layer CLAUDE.md structure | | hooks-starter.md | 4 ready-to-use hooks (health check, write guard, bash guard, lint) | | agent-roles-template.md | 3 preset roles (Implementer, Reviewer, Architect) | | governance-starter.md | rules + dont + quality-gates + verification templates | | workflow-template.md | Workflow definition + progress tracking | | checklist.md | 10-minute team audit (10 yes/no questions) |

Enterprise (building your own agent system)

| Reference | What you learn | |-----------|---------------| | architecture.md | 6-component harness architecture | | query-loop-design.md | Query loop state machine design (the most important one) | | tool-governance.md | 8-step tool execution pipeline | | context-management.md | 5-stage compression strategy | | multi-agent-patterns.md | Multi-agent scheduling + verification separation | | error-recovery.md | Error path design for agent systems | | checklist.md | 25-item enterprise design audit |

How it Works

  ┌─────────────────────────────┐
  │  /harness-audit             │
  └──────────┬──────────────────┘
             │
  ┌──────────▼──────────────────┐
  │  Layer 1: scan.ts           │
  │  Deterministic file scan    │
  │  10 dims × 5 checks = 50   │──→ JSON (reproducible)
  │  Same commit = same score   │
  └──────────┬──────────────────┘
             │
  ┌──────────▼──────────────────┐
  │  Layer 2: LLM Analysis      │
  │  Read discovered files      │
  │  10 dims × 5 semantic = 50  │──→ Quality judgment
  │  "Is this actually good?"   │
  └──────────┬──────────────────┘
             │
  ┌──────────▼──────────────────┐
  │  Report                     │
  │  Score /100 + PASS/WARN/FAIL│
  │  Top 3 actions + toolkit    │──→ Terminal or Markdown
  │  links to fix templates     │
  └─────────────────────────────┘

Tool Compatibility

cc-harness is tool-agnostic. It probes configuration paths for multiple AI coding tools:

| Tool | Files Detected | |------|---------------| | Claude Code | CLAUDE.md, .claude/settings.json, .claude/agents/ | | Codex | AGENTS.md, .codex/hooks/, .codex/agents/ | | Cursor | .cursorrules | | Windsurf | .windsurfrules | | GitHub Copilot | copilot-instructions.md, .github/copilot-instructions.md | | Generic | governance/, workflows/, agents/, .husky/, lint-staged |

Contributing

See docs/CONTRIBUTING.md for how to:

  • Add probe paths for new AI tools
  • Add new check items
  • Contribute toolkit templates

Sources

The 10 principles were distilled from three source-code analysis documents:

  • Xiao Tan AIClaude Code 源码架构深度解析 V2.0 (4756-file TypeScript source analysis)
  • @wquguruHarness Engineering: Claude Code 设计指南 (10 principles from CC source)
  • @wquguruClaude Code 和 Codex 的 Harness 设计哲学 (CC vs Codex comparative analysis)

Full source details: docs/sources.md

License

MIT