tech-leads-club/harness-toolkit

Steers Cursor and Claude Code agents with gates → follow-up → handoff → policy.

What it solves

It provides a protective layer for AI coding agents like Cursor and Claude Code, ensuring they follow strict safety and operational rules that the agents themselves cannot bypass or disable. It prevents unauthorized destructive actions, secret leaks, and inconsistent agent behavior by intercepting events before the agent can execute them.

How it works

The toolkit acts as a gatekeeper that hooks into the editor's event stream. It evaluates every action against three tiers of rules: a non-configurable "floor" that blocks dangerous commands (like deleting files outside the project), "always-on" checks that monitor for policy tampering, and optional "rails" that you enable to enforce specific workflows like linting, testing, or custom project rules. When a rule is triggered, the harness can deny the action, ask for confirmation, or inject guidance into the agent's conversation.

Who it’s for

It is designed for developers and tech leads who use AI coding agents and need to enforce security, maintain code quality, or ensure consistent development practices across their repositories without relying on the agent's own internal configuration.

Highlights

  • Unbypassable Floor: Eight core rules that cannot be disabled, protecting against destructive commands, secret access, and unauthorized policy changes.
  • Zero Runtime Dependencies: Built for performance and reliability with no external runtime dependencies.
  • Customizable Rails: Twenty-four optional capabilities, including linting/testing enforcement, dependency checks, and shell stall detection.
  • Operator Rules: Allows you to define custom markdown-based rules that mandate specific actions or proofs before an agent can proceed.
  • Observability: Provides detailed reporting commands to audit agent decisions, gate failures, and rule enforcement history.

Related

  • Project
  • Project
  • Project
  • Project