Skip to content

complexity-gate: harness package (Pi extension, Claude plugin, Codex skill, installer) #87

Closed

Description

@ElbertePlinio

Goal: @pickforge/complexity-gate package that installs the complexity-gate binary (github.com/pickforge/complexity-gate) and wires it into Claude Code, Codex, and Pi, mirroring packages/review-tutor.

Agent plan

Checklist:

  • packages/complexity-gate: postinstall downloads the matching release binary (checksum-verified) into the package; bin forwards to it; COMPLEXITY_GATE_BIN override for local builds
  • extensions/complexity-gate.ts (Pi): after edit/write tools → check <file> feedback; at turn end → check --changed, block/re-prompt while FAIL
  • claude-plugin/ with hooks/hooks.json (PostToolUse Edit|Write|MultiEdit, Stop → complexity-gate hook claude) + skill; marketplace entry
  • codex-skill/complexity-gate/SKILL.md + Codex hooks fragment
  • skills/complexity-gate/SKILL.md
  • complexity-gate-install --harness claude,codex,pi | --all | --print (interactive prompt when no flag)
  • Tests: wrapper resolution, hook JSON fragments, extension handlers with a fake exec
  • README
  • PR/review

Validation:

  • bun run typecheck && bun run lint && bun run test && bun run build
  • Manual: install into all three harnesses on the maintainer machine; make a deliberately complex edit; observe block; refactor; observe release.

Current status: In progress
Next action: implementation lane

Binary: pickforge/pickcheck#1

Activity

  1. ElbertePlinio commented on Aug 27, 2026

    @ElbertePlinio
    MemberAuthor

    Progress update:

    • packages/complexity-gate: bin wrapper, checksum-verified postinstall downloader, complexity-gate-install (--harness, --all, --print, interactive), Pi extension, Claude plugin hooks + marketplace entry, Codex hooks fragment, skill mirrored to all three
    • typecheck / lint / tests green (11 package tests, 696 total)
    • Fixed downloader to read the binary from the cargo-dist archive directory (verified against a real dist build archive)
    • Local install on all three harnesses + live runs (Claude/Codex running now; Pi after merge)
    • PR

    PR: pending
    Blocked: none
    Next: live runs → PR

  2. ElbertePlinio commented on Aug 27, 2026

    @ElbertePlinio
    MemberAuthor

    Merged in #88. Remaining: maintainer-machine wiring (Pi package path, canonical skill link, chezmoi), and the first binary release in pickforge/complexity-gate so postinstall can vendor the binary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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