mirror of
https://github.com/harivansh-afk/evaluclaude-harness.git
synced 2026-04-15 04:03:29 +00:00
1.3 KiB
1.3 KiB
Evaluclaude Harness - Agent Instructions
Project Overview
This is a CLI tool for generating evaluation tests for codebases using Claude. The core philosophy is "Zero-to-evals in one command."
Commands
# Build the project
npm run build
# Run typecheck
npm run typecheck
# Run tests
npm test
# Run the CLI
npm start -- intro <path>
Project Structure
src/
├── cli/ # Commander.js CLI
├── introspector/ # Tree-sitter codebase parsing (NO LLM)
│ ├── parsers/ # Language-specific parsers
│ ├── scanner.ts # File discovery
│ ├── git.ts # Git integration
│ └── summarizer.ts # Main analysis logic
└── index.ts # Main exports
Key Principles
- Tree-sitter for introspection: Never send raw code to Claude for structure extraction
- Claude generates specs, not code: EvalSpec JSON is generated by Claude, test code is rendered deterministically
- Git-aware incremental: Only re-analyze changed files
Dependencies
tree-sitter: Native AST parsingtree-sitter-python: Python grammartree-sitter-typescript: TypeScript grammarcommander: CLI frameworkglob: File pattern matching
Testing
Use vitest for testing. Test files go in tests/ directory.