Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

4.7 KB
Raw Blame
{
  "name": "harness",
  "version": "0.0.1",
  "type": "module",
  "bin": {
    "harness": "dist/cli.js",
    "hn": "dist/cli.js"
  },
  "scripts": {
    "dev": "tsx src/cli.ts",
    "build": "node build.mjs",
    "bundle": "node build-bundle.mjs",
    "typecheck": "tsc --noEmit",
    "start": "node dist/cli.js",
    "test": "vitest run",
    "test:terminal-contract": "RUN_TERMINAL_CONTRACT=1 vitest run src/lib/tmuxBackend.contract.spec.ts src/lib/ptyHostBackend.contract.spec.ts --maxWorkers=1 --passWithNoTests",
    "test:local-models": "vitest run src/lib/localModels.spec.ts src/lib/localModels.integration.spec.ts src/dsh/builtins.spec.ts src/lib/gridFleetRpc.spec.ts --coverage --coverage.include=src/lib/localModels.ts --coverage.include=src/dsh/builtins.ts --coverage.thresholds.lines=100 --coverage.thresholds.statements=100 --coverage.thresholds.functions=100 --coverage.thresholds.branches=100 --coverage.reporter=text --coverage.reporter=json-summary --coverage.reportsDirectory=coverage/local-models",
    "test:orchestrator": "vitest run src/orchestrator --maxWorkers=1 --coverage --coverage.include='src/orchestrator/**' --coverage.thresholds.lines=100 --coverage.thresholds.statements=100 --coverage.thresholds.functions=100 --coverage.thresholds.branches=100 --coverage.reporter=text --coverage.reporter=json --coverage.reportsDirectory=coverage/orchestrator",
    "test:dsh-updates": "vitest run --config vitest.dsh-updates.config.ts",
    "test:sharing": "vitest run src/sharing --coverage --coverage.include='src/sharing/**' --coverage.thresholds.lines=100 --coverage.thresholds.statements=100 --coverage.thresholds.branches=100 --coverage.thresholds.functions=100",
    "test:harnessd": "vitest run --config vitest.harnessd.config.ts",
    "test:core": "vitest run --config vitest.core.config.ts",
    "test:shared-tabs": "vitest run --config vitest.shared-tabs.config.ts",
    "test:super-tabs": "vitest run --config vitest.super-tabs.config.ts",
    "test:e2e": "vitest run --config vitest.e2e.config.ts",
    "test:sharing-e2e": "tsx scripts/share-harness-e2e.ts",
    "test:remote-viewers": "vitest run --config vitest.viewer.config.ts",
    "test:cursor-e2e": "RUN_CURSOR_E2E=1 vitest run src/engines/cursor/localE2e.spec.ts",
    "test:tmux-real": "RUN_REAL_TMUX_DISCOVERY=1 vitest run src/lib/tmuxAgentDiscovery.real.spec.ts src/lib/engineShellStartup.spec.ts src/lib/codexUpdateRestart.real.spec.ts src/lib/restartDiscovery.real.spec.ts src/lib/terminalClose.real.spec.ts src/lib/engineStop.real.spec.ts --reporter=verbose",
    "test:guest-real": "RUN_REAL_GUEST_PARITY=1 vitest run src/lib/guestParity.real.spec.ts --reporter=verbose",
    "test:resume": "vitest run src/lib/controlTranscript.spec.ts src/lib/sessionRepair.spec.ts src/lib/captureResumeIdentity.spec.ts src/lib/resumeStoppedAgent.spec.ts src/lib/resumeAgentService.spec.ts src/lib/stoppedAgents.spec.ts src/lib/stopAgentService.spec.ts --coverage --coverage.include=src/lib/conversationIdentity.ts --coverage.include=src/lib/captureResumeIdentity.ts --coverage.include=src/lib/resumeStoppedAgent.ts --coverage.include=src/lib/resumeAgentService.ts --coverage.include=src/lib/stoppedAgents.ts --coverage.include=src/lib/stopAgentService.ts --coverage.thresholds.lines=100 --coverage.thresholds.statements=100 --coverage.thresholds.branches=100 --coverage.thresholds.functions=100 --coverage.reporter=text --coverage.reporter=json --coverage.reportsDirectory=coverage/resume",
    "test:resume-native": "tsc -p tsconfig.resume-native.json && tsx scripts/resume-native-e2e.ts",
    "test:portability": "vitest run --config vitest.portability.config.ts"
  },
  "dependencies": {
    "@noble/ciphers": "^1.3.0",
    "@noble/curves": "^1.9.7",
    "@noble/hashes": "^1.8.0",
    "@sindresorhus/slugify": "2.2.1",
    "bonjour-service": "^1.4.4",
    "chokidar": "^4.0.0",
    "dotenv": "^17.2.3",
    "pngjs": "^7.0.0",
    "qrcode-generator": "^2.0.4",
    "smol-toml": "1.9.0",
    "werift": "0.24.4",
    "ws": "^8.18.0",
    "yaml": "2.9.1",
    "zod": "^4.0.0"
  },
  "devDependencies": {
    "@types/node": "^20.14.10",
    "@types/pngjs": "^6.0.5",
    "@types/ws": "^8.18.1",
    "@vitest/coverage-v8": "4.1.10",
    "esbuild": "^0.27.2",
    "tsx": "^4.16.2",
    "typescript": "^5.5.3",
    "vitest": "^4.1.10"
  },
  "description": "Run your own coding-agent CLIs (Claude Code, Codex, Cursor, OpenCode, Pi, Hermes, Command Code, Devin, Muse, Amp, Kilo, and Grok) in tmux and drive them from the web or a paired device.",
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/autonomous-ai/openharness.git",
    "directory": "cli"
  },
  "homepage": "https://github.com/autonomous-ai/openharness/tree/main/cli",
  "engines": {
    "node": ">=20"
  }
}