SuperAPIAI Directory

heeded

github.com · AI coding

heeded is a command-line tool that runs offline and measures the proportion of times AI coding agents (Claude Code CLI and OpenAI Codex CLI) followed each rule in historical sessions. It reads session logs explicitly specified by the user, computes the "number of applicable opportunities" and the "number of times followed" per rule, reports the compliance rate with a 95% Wilson confidence interval, and supports threshold checks in CI. The tool depends only on the Python 3.9+ standard library, does not use an LLM, and does not access the network, making it suitable for people who want to judge with data rather than anecdotes whether rules in CLAUDE.md, AGENTS.md, etc. are being enforced by agents.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

Purpose heeded is aimed at developers who use AI coding agents and addresses problems like "the agent never follows my rules," which can otherwise only be described through anecdotes. It turns rule compliance into counts with a denominator: how many applicable opportunities each rule had in the session logs, and how many of those were followed, thereby producing a verifiable compliance rate.

Main capabilities

  • Counts rule compliance across session logs from Claude Code CLI and OpenAI Codex CLI, supporting Windows, macOS, and Linux.
  • Rules are defined in the rules array of rules.json; each rule requires id, text, kind, and the corresponding fields; regex uses Python re, is case-sensitive by default, and can ignore case with "flags": "i"; Glob uses / as separator and supports ** to match paths at any depth.
  • Glob is anchored at the session cwd as root: patterns without / match only at the cwd root, **/*.py can match at any depth; Windows-style paths are matched case-insensitively.
  • Rules that never applied have zero opportunities and are judged INCONCLUSIVE rather than 100%.
  • Provides a 95% Wilson confidence interval; the interval is wide when the denominator is small. --fail-under 0.9 returns exit code 1 only when the upper bound of the interval is below 90%, which can be used for CI checks.
  • Supports reading rules from Markdown instruction files, and --rules-md FILE can be passed multiple times; rules without check: are treated as "no signal," and heeded probe --rules-md FILE gives suggested annotations and a prompt to probe with a new session.
  • show displays local violation evidence; export outputs aggregate counts, rates, intervals, rule id/kind/grain, and the number of sessions by vendor and CLI version. Markdown rule ids are replaced with rule-1, rule-2, etc., because they contain file names.

Usage Requires Python 3.9+, standard library only. Uses explicit transcript paths; heeded does not search default locations on its own. You can start by copying the example rules. The repository provides examples: python examples/demo/run.py runs on built-in synthetic sessions, and python examples/demo/make_logs.py can regenerate the logs.

Use cases

  • When you suspect an AI coding agent is ignoring CLAUDE.md or AGENTS.md instructions, verify with data.
  • When you need a measurable compliance rate for each rule rather than anecdotes.
  • When you want to set rule compliance thresholds in CI and fail when they are below the threshold.

Limitations and privacy The tool reads only the paths passed to it, does not read default locations, and makes no network requests. export omits prompts, commands, file paths, cwd, session ids, rule text, and regexes; report --format json and show are local evidence and may contain session record details. The project uses the MIT license. The materials do not provide specific installation commands, pricing information, or performance data.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools