Skip to content

v0.1: tree-sitter complexity gate binary with Claude/Codex hooks #1

Description

@ElbertePlinio

Goal: ship v0.1 of complexity-gate, the tree-sitter binary specified in docs/spec.md, with hooks for Claude Code and Codex, golden fixtures for JS/TS/TSX, Svelte, Dart, Rust, Python, Go, and release artifacts via cargo-dist.

Agent plan

Checklist:

  • Cargo workspace: crates/core (parse, metrics, config, diff spans), crates/cli
  • Language tables + golden fixtures with reference numbers (strictness invariant test)
  • check (paths, --changed, text/json, exit codes)
  • hook claude, hook codex, loop guard, docs/hooks.md
  • init, doctor --coverage
  • Repo gates: CI (test, clippy -D warnings, llvm-cov ratchet, gitleaks, osv-scanner, self-check), release workflow (cargo-dist, rust-cache)
  • Branch protection requiring CI
  • Validation on real repos (pickscribe, pickforge, a Flutter repo)
  • PR/review

Validation:

  • cargo test --workspace --locked --all-targets
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo run -- check crates (self-gate)
  • cargo run -- check --changed in a repo with a deliberately complex edit → FAIL; after refactor → exit 0

Current status: In progress
Next action: implementation lane from docs/spec.md

Harness package (Pi extension, Claude plugin, Codex skill, installer): pickforge/pickforge-platform, tracked separately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions